My process involves:
- Run Make on a c++ file and generate a binary file
- Run readelf on binary file generated and dump contents in HEX form into NEW_File
*- Import data from generated file into c++ file vector as 8 bit hex words
*- other VLSI related sections
*implemented
After a ton of help from some very helpful people on this site I have the last step complete but now I would like to carry out the other two automatically. The current structure of my project is:
C++ top file emulates OS
-->Verilog file ("MIPS.v") emulates MIPS I processor
---->Other verilog modules are instantiated within MIPS.v file
Ideally I want to have my c++ file structured in the following way
main()
{
compile c++ file
run readelf on c++ file and dump into NEW_File
fill vector accordingly
(...other VLSI related sections...)
}
Is there a way to do the first two steps within my c++ file?