ibex
ibex copied to clipboard
memory initialization
My program uses some of the memory addresses as primary inputs. Is there any way to initialize these addresses before stating simulation? I am trying to simulate my software on the Ibex Simple System.
You can initialise those addresses by giving them values in the .elf you load into the verilator simulation. Precise details of how to do this depend upon your toolchain.
Alternatively you could look at the memory initialisation code (https://github.com/lowRISC/ibex/blob/master/vendor/lowrisc_ip/dv/verilator/cpp/verilator_memutil.cc) and extend it to initialise specification addresses to your needs.
I am using RISC-V Compiler Toolchain, GCC version 10.2.0