chipsalliance / chisel

Chisel: A Modern Hardware Design Language
https://www.chisel-lang.org/
Apache License 2.0
3.81k stars 574 forks source link

Chisel5.1.0 cannot emit verilog #3677

Open isjcliu opened 6 months ago

isjcliu commented 6 months ago

chisel5.1.0 firtool 1.4.3 In the source code, the emitverilog function is a systemverilog instead of verilog. I changed it to verilog, but the generated .v file is not available in vivado and contains the syntax of systemverilog

Gary2342 commented 4 months ago

I have the same problem. Do you find the way to solve this? I find the answer ( #3706 )about this problem saying chisel can only generate systemverilog?

Emin017 commented 4 months ago

You can add firtool option to convert unwanted system verilog syntax

Gary2342 commented 4 months ago

已收到

zhongwujie commented 2 months ago

To avoid the generation of systemverilog syntax like "automatic logic", you can add

firtoolOpts = Array("-lowering-options=disallowLocalVariables")
Gary2342 commented 2 months ago

已收到