aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2019-10-04 11:00:49 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2019-10-04 11:00:49 +0200
commit91ad3ab717159da311b72531f4b9c77a7522702a (patch)
tree3927efa12c4351e144dd554a5cb3f94ae8fb01c0
parent3d3479b0af0d2d59708a0828cfa785257c52d6fd (diff)
downloadyosys-91ad3ab717159da311b72531f4b9c77a7522702a.tar.gz
yosys-91ad3ab717159da311b72531f4b9c77a7522702a.tar.bz2
yosys-91ad3ab717159da311b72531f4b9c77a7522702a.zip
check ff's separately
-rw-r--r--tests/anlogic/dffs.v22
-rw-r--r--tests/anlogic/dffs.ys18
2 files changed, 14 insertions, 26 deletions
diff --git a/tests/anlogic/dffs.v b/tests/anlogic/dffs.v
index d97840c43..3418787c9 100644
--- a/tests/anlogic/dffs.v
+++ b/tests/anlogic/dffs.v
@@ -13,25 +13,3 @@ module dffe
if ( en )
q <= d;
endmodule
-
-module top (
-input clk,
-input en,
-input a,
-output b,b1,
-);
-
-dff u_dff (
- .clk (clk ),
- .d (a ),
- .q (b )
- );
-
-dffe u_ndffe (
- .clk (clk ),
- .en (en),
- .d (a ),
- .q (b1 )
- );
-
-endmodule
diff --git a/tests/anlogic/dffs.ys b/tests/anlogic/dffs.ys
index a15c6f24e..38dffa326 100644
--- a/tests/anlogic/dffs.ys
+++ b/tests/anlogic/dffs.ys
@@ -1,10 +1,20 @@
read_verilog dffs.v
-hierarchy -top top
+design -save read
+
proc
-flatten
+hierarchy -top dff
equiv_opt -assert -map +/anlogic/cells_sim.v synth_anlogic # equivalency check
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
-cd top # Constrain all select calls below inside the top module
+cd dff # Constrain all select calls below inside the top module
+select -assert-count 1 t:AL_MAP_SEQ
+select -assert-none t:AL_MAP_SEQ %% t:* %D
+
+design -load read
+proc
+hierarchy -top dffe
+equiv_opt -assert -map +/anlogic/cells_sim.v synth_anlogic # 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
select -assert-count 1 t:AL_MAP_LUT3
-select -assert-count 2 t:AL_MAP_SEQ
+select -assert-count 1 t:AL_MAP_SEQ
select -assert-none t:AL_MAP_LUT3 t:AL_MAP_SEQ %% t:* %D