chisel icon indicating copy to clipboard operation
chisel copied to clipboard

Chisel5.1.0 cannot emit verilog

Open isjcliu opened this issue 1 year ago • 5 comments

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

isjcliu avatar Dec 06 '23 03:12 isjcliu

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?

Gary2342 avatar Feb 19 '24 11:02 Gary2342

You can add firtool option to convert unwanted system verilog syntax

Emin017 avatar Feb 29 '24 03:02 Emin017

已收到

Gary2342 avatar Feb 29 '24 03:02 Gary2342

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

firtoolOpts = Array("-lowering-options=disallowLocalVariables")

zhongwujie avatar Apr 22 '24 12:04 zhongwujie

已收到

Gary2342 avatar Apr 22 '24 12:04 Gary2342