yosys/tests/arch/efinix/adffs.ys

51 lines
1.7 KiB
Plaintext
Raw Normal View History

read_verilog adffs.v
2019-10-04 05:48:27 -05:00
design -save read
hierarchy -top adff
2019-10-18 02:13:06 -05:00
proc
2019-10-18 04:00:27 -05:00
equiv_opt -async2sync -assert -map +/efinix/cells_sim.v synth_efinix # equivalency check
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
2019-10-04 05:48:27 -05:00
cd adff # Constrain all select calls below inside the top module
select -assert-count 1 t:EFX_FF
select -assert-count 1 t:EFX_GBUFCE
select -assert-none t:EFX_FF t:EFX_GBUFCE %% t:* %D
2019-10-04 05:48:27 -05:00
design -load read
hierarchy -top adffn
2019-10-18 02:13:06 -05:00
proc
2019-10-18 04:00:27 -05:00
equiv_opt -async2sync -assert -map +/efinix/cells_sim.v synth_efinix # equivalency check
2019-10-04 05:48:27 -05:00
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
cd adffn # Constrain all select calls below inside the top module
select -assert-count 1 t:EFX_FF
select -assert-count 1 t:EFX_GBUFCE
2019-10-04 05:48:27 -05:00
select -assert-none t:EFX_FF t:EFX_GBUFCE %% t:* %D
design -load read
hierarchy -top dffs
2019-10-18 02:13:06 -05:00
proc
2019-10-18 04:00:27 -05:00
equiv_opt -async2sync -assert -map +/efinix/cells_sim.v synth_efinix # equivalency check
2019-10-04 05:48:27 -05:00
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
cd dffs # Constrain all select calls below inside the top module
select -assert-count 1 t:EFX_FF
select -assert-count 1 t:EFX_GBUFCE
select -assert-count 1 t:EFX_LUT4
select -assert-none t:EFX_FF t:EFX_GBUFCE t:EFX_LUT4 %% t:* %D
design -load read
hierarchy -top ndffnr
2019-10-18 02:13:06 -05:00
proc
2019-10-18 04:00:27 -05:00
equiv_opt -async2sync -assert -map +/efinix/cells_sim.v synth_efinix # equivalency check
2019-10-04 05:48:27 -05:00
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
cd ndffnr # Constrain all select calls below inside the top module
select -assert-count 1 t:EFX_FF
select -assert-count 1 t:EFX_GBUFCE
select -assert-count 1 t:EFX_LUT4
select -assert-none t:EFX_FF t:EFX_GBUFCE t:EFX_LUT4 %% t:* %D