mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-18 01:02:19 +00:00
´SMT success only if simulation is equivalent
This commit is contained in:
parent
9700df50d6
commit
cb5f08364c
2 changed files with 4 additions and 1 deletions
|
@ -133,6 +133,9 @@ for command in smt_commands:
|
|||
# smt_io.setup()
|
||||
result = smt_io.check_sat()
|
||||
print(f'SAT result: {result}')
|
||||
if result != 'sat':
|
||||
smt_io.p_close()
|
||||
sys.exit(1)
|
||||
|
||||
value = smt_io.get(f'(Y test_outputs_step_n0)')
|
||||
print(f" Y: {value}")
|
||||
|
@ -197,3 +200,4 @@ def write_vcd(filename, signals, timescale='1 ns', date='today'):
|
|||
|
||||
# Write the VCD file
|
||||
write_vcd(smt_file_path + '.vcd', signals)
|
||||
sys.exit(0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue