I wanted an option to write out blackbox versions of memories.
Please review this PR. Recommend changes or alternate solution, if available.
A few test cases follow.
No arguments added. Position argument works as before.
~~~~
$ ./vlsi_mem_gen ../ExampleRocketSystem.conf
< no change in output >
~~~~
Positional argument for .conf file.
~~~~
$ ./vlsi_mem_gen
usage: vlsi_mem_gen [-h] [--blackbox] .conf file
vlsi_mem_gen: error: too few arguments
~~~~
No arguments added. Result: no change.
~~~~
$ ./vlsi_mem_gen ../ExampleRocketSystem.conf
< no change in output >
~~~~
Positional argument for .conf file and with -b option. Result: empty module body.
~~~~
$ ./vlsi_mem_gen -b ../ExampleRocketSystem.conf
module data_arrays_0_ext(
input RW0_clk,
input [11:0] RW0_addr,
input RW0_en,
input RW0_wmode,
input [3:0] RW0_wmask,
input [31:0] RW0_wdata,
output [31:0] RW0_rdata
);
endmodule
~~~~