yosys/examples/smtbmc/Makefile

25 lines
701 B
Makefile
Raw Normal View History

2016-07-13 02:49:05 -05:00
2016-08-20 11:44:27 -05:00
all: demo1 demo2
2016-07-13 02:49:05 -05:00
demo1: demo1.smt2
2016-08-20 09:07:59 -05:00
yosys-smtbmc --dump-vcd demo1.vcd demo1.smt2
yosys-smtbmc -i --dump-vcd demo1.vcd demo1.smt2
2016-07-13 02:49:05 -05:00
2016-08-20 11:44:27 -05:00
demo2: demo2.smt2
2016-08-22 09:48:46 -05:00
yosys-smtbmc -g --dump-vcd demo2.vcd --dump-vlogtb demo2_tb.v --dump-constr demo2.smtc demo2.smt2
2016-08-20 11:44:27 -05:00
iverilog -g2012 -o demo2_tb demo2_tb.v demo2.v
vvp demo2_tb +vcd=demo2_tb.vcd
2016-07-13 02:49:05 -05:00
demo1.smt2: demo1.v
2016-08-20 11:44:27 -05:00
yosys -p 'read_verilog -formal demo1.v; prep -top demo1 -nordff; write_smt2 -wires -mem -bv demo1.smt2'
demo2.smt2: demo2.v
yosys -p 'read_verilog -formal demo2.v; prep -top demo2 -nordff; write_smt2 -wires -mem -bv demo2.smt2'
2016-07-13 02:49:05 -05:00
clean:
2016-08-20 11:44:27 -05:00
rm -f demo1.smt2 demo1.vcd
rm -f demo2.smt2 demo2.vcd demo2_tb.v demo2_tb demo2_tb.vcd
2016-07-13 02:49:05 -05:00
.PHONY: demo1 clean