Browse Source

Add make targets and SymbiYosys tasks for cover, bmc & prove

master
T. Meissner 5 years ago
parent
commit
367343cff5
2 changed files with 23 additions and 5 deletions
  1. +11
    -2
      vai_reg/Makefile
  2. +12
    -3
      vai_reg/symbiyosys.sby

+ 11
- 2
vai_reg/Makefile View File

@ -1,6 +1,15 @@
vai_reg: vai_reg.vhd symbiyosys.sby
sby --yosys "yosys -m ghdl" -f -d work symbiyosys.sby
.PHONY: cover prove all clean
all: cover bmc prove
cover: vai_reg.vhd symbiyosys.sby
sby --yosys "yosys -m ghdl" -f -d work/vai_reg-$@ symbiyosys.sby $@
bmc: vai_reg.vhd symbiyosys.sby
sby --yosys "yosys -m ghdl" -f -d work/vai_reg-$@ symbiyosys.sby $@
prove: vai_reg.vhd symbiyosys.sby
sby --yosys "yosys -m ghdl" -f -d work/vai_reg-$@ symbiyosys.sby $@
clean: clean:
rm -rf work rm -rf work

+ 12
- 3
vai_reg/symbiyosys.sby View File

@ -1,9 +1,18 @@
[tasks]
cover
bmc
prove
[options] [options]
depth 30
mode bmc
depth 20
cover: mode cover
bmc: mode bmc
prove: mode prove
[engines] [engines]
smtbmc z3
cover: smtbmc z3
bmc: abc bmc3
prove: abc pdr
[script] [script]
ghdl --std=08 -fpsl vai_reg.vhd -e vai_reg ghdl --std=08 -fpsl vai_reg.vhd -e vai_reg


Loading…
Cancel
Save