Commit Graph

7 Commits

Author SHA1 Message Date
Andrew Waterman 2315f4bfd8
Bump firrtl for RANDOMIZE_DELAY macro (#1590) 2018-08-21 17:44:45 -07:00
Edmond Cote cd2c3413d9
add option --output_file,-o, optional
existing API maintained, when -o not set, output is passed to stdout as usual
2018-04-11 08:25:56 -07:00
Edmond Cote 34244efee7
Add -b/--blackbox option, retain existing API
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
~~~~
2018-04-10 16:59:23 -07:00
Andrew Waterman 31b75987ca Avoid width warning 2017-08-08 20:57:31 -07:00
Yunsup Lee 8705b0e070 memgen: also randomize ren and rand register 2017-08-08 20:41:53 -07:00
Andrew Waterman b0f32c8f09 Randomize disabled read ports in vlsi_mem_gen 2017-08-07 20:35:40 -07:00
Yunsup Lee 6ef8ee5d4d tilelink: add mask rom 2017-07-31 21:34:04 -07:00