yosys/tests/arch/efinix/adffs.ys

49 lines
1.7 KiB
Plaintext
Raw Permalink Normal View History

2019-10-18 12:19:59 +02:00
read_verilog ../common/adffs.v
2019-10-04 12:48:27 +02:00
design -save read
hierarchy -top adff
2019-10-18 09:13:06 +02:00
proc
2019-10-18 11:00:27 +02: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 12:48:27 +02: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 12:48:27 +02:00
design -load read
hierarchy -top adffn
2019-10-18 09:13:06 +02:00
proc
2019-10-18 11:00:27 +02:00
equiv_opt -async2sync -assert -map +/efinix/cells_sim.v synth_efinix # equivalency check
2019-10-04 12:48:27 +02: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 12:48:27 +02:00
select -assert-none t:EFX_FF t:EFX_GBUFCE %% t:* %D
design -load read
hierarchy -top dffs
2019-10-18 09:13:06 +02:00
proc
2019-10-18 11:00:27 +02:00
equiv_opt -async2sync -assert -map +/efinix/cells_sim.v synth_efinix # equivalency check
2019-10-04 12:48:27 +02: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
2020-07-20 23:19:51 +02:00
select -assert-none t:EFX_FF t:EFX_GBUFCE %% t:* %D
2019-10-04 12:48:27 +02:00
design -load read
hierarchy -top ndffnr
2019-10-18 09:13:06 +02:00
proc
2019-10-18 11:00:27 +02:00
equiv_opt -async2sync -assert -map +/efinix/cells_sim.v synth_efinix # equivalency check
2019-10-04 12:48:27 +02: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
2020-07-20 23:19:51 +02:00
select -assert-none t:EFX_FF t:EFX_GBUFCE %% t:* %D