efabless / caravel_mgmt_soc_litex

https://caravel-mgmt-soc-litex.readthedocs.io/en/latest/
Apache License 2.0
25 stars 15 forks source link

sim: ELF file is deleted after compiling #121

Open xobs opened 1 year ago

xobs commented 1 year ago

The build system generates a .hex file that is pulled into the SPI ROM as part of the simulation test bench. However, after this hexfile is generated, it removes the .elf file. In doing so, this makes it more difficult to debug the simulated CPU as it is no longer possible to trace which functions the CPU is executing.

As a workaround, it is possible to remove the .hex file and copy the .elf file out during the build, however this must be done before the build system removes the ELF file.