aboutsummaryrefslogtreecommitdiffstats
path: root/tests/efinix/div_mod.ys
diff options
context:
space:
mode:
Diffstat (limited to 'tests/efinix/div_mod.ys')
-rw-r--r--tests/efinix/div_mod.ys10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/efinix/div_mod.ys b/tests/efinix/div_mod.ys
new file mode 100644
index 000000000..3b6f2f0f4
--- /dev/null
+++ b/tests/efinix/div_mod.ys
@@ -0,0 +1,10 @@
+read_verilog div_mod.v
+hierarchy -top top
+flatten
+equiv_opt -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)
+cd top # Constrain all select calls below inside the top module
+
+select -assert-count 95 t:EFX_ADD
+select -assert-count 114 t:EFX_LUT4
+select -assert-none t:EFX_ADD t:EFX_LUT4 %% t:* %D