tools/genrammem: Create wrc.mem file to use with Vivado's `updatemem` command
Hi,
this MR adds another piece for updating the firmware after bitstream generation (first part: general-cores!66 (merged)). For using the updatemem
command, the file needs to have a certain format documented here: https://docs.amd.com/r/en-US/ug1580-updatemem/Memory-Files
The format is very similar to the already existing .mif
generator. Hence the tool is very similar to tools/genrammif.c
, just without the header and line numbering.
In summary, after building the wrpc-sw firmware, another memory file is generated which is compatible with Xilinx's/AMD's tools for updating BRAM blocks.