5 # NB: *.aag and *.aig must contain a symbol table naming the primary
6 # inputs and outputs, otherwise ABC and Yosys will name them
7 # arbitrarily (and inconsistently with each other).
10 # Since ABC cannot read *.aag, read the *.aig instead
11 # (which would have been created by the reference aig2aig utility,
12 # available from http://fmv.jku.at/aiger/)
13 ..
/..
/yosys-abc
-c "read -c ${aag%.*}.aig; write ${aag%.*}_ref.v"
15 read_verilog ${aag%.*}_ref.v
18 read_aiger -clk_name clock $aag
21 design -import gold -as gold
22 design -import gate -as gate
23 miter -equiv -flatten -make_assert -make_outputs gold gate miter
24 sat -verify -prove-asserts -show-ports -seq 16 miter
29 ..
/..
/yosys-abc
-c "read -c $aig; write ${aig%.*}_ref.v"
31 read_verilog ${aig%.*}_ref.v
34 read_aiger -clk_name clock $aig
37 design -import gold -as gold
38 design -import gate -as gate
39 miter -equiv -flatten -make_assert -make_outputs gold gate miter
40 sat -verify -prove-asserts -show-ports -seq 16 miter