Expand description
The hart’s RTL, as Verilog source files the board image and the simulations read. The hart is held to
super::model (and its decompressor to super::rvc) by hart_rtl_lock; the computer around it, to the board
model super::soc::Board by hart_soc_lock; the DDR2 controller, to the part’s data sheet by hart_ddr2_lock.
Constants§
- DDR2_
PARAMS - The DDR2’s parameters, which the controller includes.
- DEFINES
- The memory map’s
defines, which the computer’s files include.
Functions§
- board_
files - What the board’s top adds around the computer and its DDR2: the queue that carries bytes between the hart’s clock and the terminal’s.
- bringup_
files - The bring-up image: the computer alone on Board B (
hart_bringup_top), booting from the flash with its log on the USB UART —board_files, the log UART’s transmitter, the top and its pins. - core_
files - The hart itself: (file name, source).
- cpu_
files - The hart with its caches,
hart_cpu: the hart’s files, the instruction and data caches, their one way to memory, and the maintenance (fence.i, restart) they share. - ddr2_
files - The DDR2 controller,
hart_ddr2, withDDR2_PARAMSwritten fromsuper::ddr2::verilog_paramsfor the board’s part, and its Artix-7 PHY,hart_ddr2_phy(device primitives: the board’s build reads it, simulations do not). - fingerprint
- A bitstream’s fingerprint — what a boot image is built for, and what
SYS_RTL_MD5reports: the md5 of every file the bitstream is built from, in order, then of the boot ROM’s words, so a changed ROM is another bitstream too. - fingerprint_
words - A fingerprint as the SoC’s
RTL_MD5_LO/RTL_MD5_HIparameters take it: the wordsSYS_RTL_MD5_LOandSYS_RTL_MD5_HIread as, its bytes little-endian. - loopback_
files - The DDR2 PHY’s board probe,
hart_ddr2_loopback_top: the PHY driving its own pads with the DDR2 held idle and sending what it reads back on the UART; its pins are the bring-up image’s, those its ports use. - rom_hex
- The boot ROM as the
$readmemhwords its block RAM starts with: a 64-bit little-endian word a line, zeros to the ROM’s end. - soc_
files - The whole computer,
hart_soc:cpu_files, the boot ROM, the scratch RAM, the device registers, andDEFINESwritten fromsoc::verilog_defines. The boot ROM’s contents come from theROM_INITfile the build names (rom_hex).