Is there a standard way to extract the base addresses in sopc info file into a VHDL file?
For an FGPA fabric AvalonMM master, it is very important that the base addresses be correctly defined in a HDL source file so it can make use of them. The base addresses can change easily as we make some modifications in the Qsys system.
The base addresses are stored in the .sopcinfo file which is basically a XML file by the look of it. Although I can come up with my own tcl or python based solution to extract the base addresses from this sopcinfo file, is there a standard way to extract the base addresses into a VHDL/Verilog/SystemVerilog file e.g an already existing tcl, perl or python script that can be executed as soon as the user presses the compile button and update the HDL file from the sopcinfo file?
Updating the base addresses manually by reading them from Qsys and writing them into a HDL file is prone to errors and is not reliable.