aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ice40/tribuf.ys
diff options
context:
space:
mode:
authorSergeyDegtyar <sndegtyar@gmail.com>2019-08-21 21:52:07 +0300
committerSergeyDegtyar <sndegtyar@gmail.com>2019-08-21 21:52:07 +0300
commitd945b8a357c567f5f3565983da09f24c0f295461 (patch)
treee5b74e096ae940628d547acbf0cb139519918f24 /tests/ice40/tribuf.ys
parentb835ec37cbb56bc3b55fe53eb85375ad5ac98f27 (diff)
downloadyosys-d945b8a357c567f5f3565983da09f24c0f295461.tar.gz
yosys-d945b8a357c567f5f3565983da09f24c0f295461.tar.bz2
yosys-d945b8a357c567f5f3565983da09f24c0f295461.zip
Fix all comments from PR
Diffstat (limited to 'tests/ice40/tribuf.ys')
-rw-r--r--tests/ice40/tribuf.ys12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/ice40/tribuf.ys b/tests/ice40/tribuf.ys
index b319e6622..9b7ea1eab 100644
--- a/tests/ice40/tribuf.ys
+++ b/tests/ice40/tribuf.ys
@@ -1,6 +1,8 @@
-synth_ice40
-equiv_opt -assert -map +/ice40/cells_sim.v -map +/simcells.v synth_ice40
-design -load postopt
-select -assert-count 1 t:SB_LUT4
-select -assert-count 1 t:SB_CARRY
+read_verilog tribuf.v
+hierarchy -top top
+synth -flatten -run coarse # technology-independent coarse grained synthesis
+equiv_opt -map +/ice40/cells_sim.v synth_ice40 # equivalency check same as technology-dependent fine-grained synthesis
+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 1 t:$_TBUF_
+select -assert-none t:$_TBUF_ %% t:* %D