Open eldrickm opened 3 years ago
Related to issue https://github.com/upscale-project/sqed-generator/issues/5, Yosys seems to be more tolerant when handling inputs that contain non-Verilog or non-standard Verilog features.
In particular, Yosys supports a subset of SystemVerilog for formal verification, including assume
, cf. http://www.clifford.at/papers/2016/yosys-synth-formal/slides.pdf
To resolve this issue (and also https://github.com/upscale-project/sqed-generator/issues/5), we could add an optional "strict mode" to the generator to output only standard Verilog.
I suggest to make that strict mode optional because we still want to use the features of Yosys of handling a subset of SystemVerilog.
Issue:
The generator outputs an
inst_constraint.v
file, a Verilog file with anassume property
definition to constrain instructions to valid instructions only.QuestaSim's vlog compiler seems to not allow
assume
in Verilog files. Error trace given below.:The particular errors are:
Potential Fix
Simply changing the filetype to a System Verilog file allows compilation for QuestaSim vlog Compiler.
mv inst_constraint.v inst_constraint.sv