mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-10 21:20:53 +00:00
Progress in SMV back-end
This commit is contained in:
parent
8e84418225
commit
8a86162ae9
4 changed files with 147 additions and 24 deletions
33
tests/smv/run-single.sh
Normal file
33
tests/smv/run-single.sh
Normal file
|
@ -0,0 +1,33 @@
|
|||
#!/bin/bash
|
||||
|
||||
cat > $1.tpl <<EOT
|
||||
%module main
|
||||
INVARSPEC ! bool(_trigger)
|
||||
EOT
|
||||
|
||||
cat > $1.ys <<EOT
|
||||
echo on
|
||||
|
||||
read_ilang $1.il
|
||||
hierarchy; proc; opt
|
||||
rename -top uut
|
||||
design -save gold
|
||||
|
||||
synth
|
||||
design -stash gate
|
||||
|
||||
design -copy-from gold -as gold uut
|
||||
design -copy-from gate -as gate uut
|
||||
miter -equiv -flatten gold gate main
|
||||
hierarchy -top main
|
||||
|
||||
dump
|
||||
write_smv -tpl $1.tpl $1.smv
|
||||
EOT
|
||||
|
||||
set -ex
|
||||
|
||||
../../yosys -l $1.log -q $1.ys
|
||||
NuSMV -bmc $1.smv >> $1.log
|
||||
grep "^-- invariant .* is true" $1.log
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue