-
Hello, I am using Yosys to convert Verilog files into BTOR2 format. Below is the Tcl script I'm currently using: set VSRC [lindex $argv 0]
set TOP [lindex $argv 1]
set OUT [lindex $argv 2]
yosys -import
read_verilog -sv -formal ${VSRC};
prep -top ${TOP};
hierarchy -check;
chformal -assume -early;
memory -nomap;
flatten;
setundef -undriven -expose;
write_btor $OUT
show In my Verilog/SystemVerilog code, I have assertions like this: always @* begin
assert(var < 6);
end But I can not find any However, I am unable to find any bad statements in the generated BTOR2 file, which should appear as:
Could you please help me understand why the bad statements are not being generated and how I can resolve this issue? Thank you for your assistance. |
Beta Was this translation helpful? Give feedback.
Answered by
EPTansuo
Aug 14, 2024
Replies: 1 comment 1 reply
-
Does the btor output from SBY do what you're after? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks. I've solved this problem. I was able to solve this problem using the following shell script instead of the yosys script: