yosys/tests/arch/ice40/dffs.ys

19 lines
729 B
Plaintext
Raw Permalink Normal View History

2019-10-18 05:19:59 -05:00
read_verilog ../common/dffs.v
design -save read
hierarchy -top dff
2019-08-22 14:30:49 -05:00
proc
2019-08-22 14:35:35 -05:00
equiv_opt -assert -map +/ice40/cells_sim.v synth_ice40 # equivalency check
2019-08-21 13:52:07 -05:00
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
2019-10-18 05:19:59 -05:00
cd dff # Constrain all select calls below inside the top module
2019-08-21 13:52:07 -05:00
select -assert-count 1 t:SB_DFF
2019-10-18 05:19:59 -05:00
select -assert-none t:SB_DFF %% t:* %D
design -load read
hierarchy -top dffe
proc
equiv_opt -assert -map +/ice40/cells_sim.v synth_ice40 # equivalency check
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
cd dffe # Constrain all select calls below inside the top module
2019-08-22 14:20:18 -05:00
select -assert-count 1 t:SB_DFFE
2019-10-18 05:19:59 -05:00
select -assert-none t:SB_DFFE %% t:* %D