yosys/examples/aiger/demo.sh

15 lines
348 B
Bash
Raw Normal View History

2016-12-01 06:42:17 -06:00
#!/bin/bash
set -ex
yosys -p '
read_verilog -formal demo.v
prep -flatten -nordff -top demo
write_smt2 -wires demo.smt2
flatten demo; delete -output
2016-12-01 06:42:17 -06:00
memory_map; opt -full
techmap; opt -fast
abc -fast -g AND; opt_clean
write_aiger -map demo.aim demo.aig
2016-12-01 06:42:17 -06:00
'
super_prove demo.aig > demo.aiw
yosys-smtbmc --dump-vcd demo.vcd --aig demo demo.smt2