Issue creating file for loading program into memory (MMU tests)
Created by: duncangraham-Imperas
When I attempt to run one of my tests in the cvw environment I am finding that the infrastructure uses a Python script to convert the binary to a hex file (${RISCV}/lib/python2.7/site-packages/freedom-bin2hex.py) for loading into memory.
My test has pages distributed through the memory space and this causes a huge file to be generated, filling intermediate (unused) address space with 0's.
If I use a comamnd line such as the objcopy shown below; I get a file containing only the code sections required to run but I have no mechanism, I am aware of, to load this file.
${RISCV}/bin/riscv64-unknown-elf-objcopy -O verilog test-S_0.elf outfile
Before I start trying to modify the testbench to load using a file such as this output format into the verilog memory I wanted to reach out to see if you have observed this issue before and if you have a recommented approach to handle it.
Thanks