yosys/tests/csa_tree/csa_tree_sub_equiv.ys

40 lines
869 B
Plaintext

read_verilog equiv_sub_narrow.v
hierarchy -top equiv_sub_mixed
proc; opt_clean
equiv_opt csa_tree
design -load postopt
select -assert-count 3 t:$fa
select -assert-count 1 t:$add
design -reset
log "equiv_sub_mixed: ok"
read_verilog equiv_sub_narrow.v
hierarchy -top equiv_sub_all
proc; opt_clean
equiv_opt csa_tree
design -load postopt
select -assert-count 3 t:$fa
select -assert-count 1 t:$add
design -reset
log "equiv_sub_all: ok"
read_verilog equiv_sub_narrow.v
hierarchy -top equiv_sub_3op
proc; opt_clean
equiv_opt csa_tree
design -load postopt
select -assert-count 2 t:$fa
select -assert-count 1 t:$add
design -reset
log "equiv_sub_3op: ok"
read_verilog equiv_sub_narrow.v
hierarchy -top equiv_sub_signed
proc; opt_clean
equiv_opt csa_tree
design -load postopt
select -assert-count 3 t:$fa
select -assert-count 1 t:$add
design -reset
log "equiv_sub_signed: ok"