Boot Flow
Verilator reads a raw software binary from build/sw/<board>/<app>/ and passes its path to the harness as +bootrom=<path>.
Flow
- After reset, the CPU fetches from the SoC boot address through SPI Flash.
- The harness receives the raw Flash image path through
+bootrom=<path>. - The Flash DPI model returns bytes when RTL performs SPI reads.
sw/ecos/start.Sinitializes the stack, clears.bss, and callsmain.- Platform drivers use the board-package headers under
sw/ecos/.
Use a .bin image. Passing an ELF makes the model treat ELF container bytes as raw Flash contents.