chisel-template icon indicating copy to clipboard operation
chisel-template copied to clipboard

Add Main Method to Generate Verilog

Open seldridge opened this issue 5 years ago • 3 comments

Proposal to add a main that will generate Verilog into a target directory.

I'm finding that I always add this whenever I clone chisel-template and it's likely reasonable to just include this upstream.

seldridge avatar Sep 18 '19 16:09 seldridge

When I started using Chisel, a side effect of not having this was that it forced me to write tests to generate hardware...

edwardcwang avatar Sep 18 '19 17:09 edwardcwang

That's a good point. Gating (by default) Verilog generation on tests having passed would be safer. However, I think it's an anti-pattern to go diving through test_run_dir to find the generated Verilog. Or: that's the issue that I'm trying to address here.

seldridge avatar Sep 18 '19 17:09 seldridge

I'd also like to see generating Verilog output added to the template, since it's ultimately something that every project will need to do, and the canonical way to generate Verilog in Chisel seems to change relatively often.

hutch31 avatar Feb 10 '22 13:02 hutch31

It would be really convenient to have a code that generates Verilog, as this is always a confusing aspect of Chisel and people need it.

kazutomo avatar Jan 13 '24 16:01 kazutomo

I proposed a PR with it : https://github.com/chipsalliance/chisel-template/pull/126

Martoni avatar Mar 07 '24 13:03 Martoni