machxo2: Add believed-to-be-correct tribuf test.
authorWilliam D. Jones <thor0505@comcast.net>
Fri, 27 Nov 2020 03:34:46 +0000 (22:34 -0500)
committerMarcelina Koƛcielnicka <mwk@0x04.net>
Tue, 23 Feb 2021 16:39:58 +0000 (17:39 +0100)
tests/arch/machxo2/tribuf.ys [new file with mode: 0644]

diff --git a/tests/arch/machxo2/tribuf.ys b/tests/arch/machxo2/tribuf.ys
new file mode 100644 (file)
index 0000000..7f3cd32
--- /dev/null
@@ -0,0 +1,9 @@
+read_verilog ../common/tribuf.v
+hierarchy -top tristate
+proc
+flatten
+equiv_opt -assert -map +/machxo2/cells_sim.v synth_machxo2 # equivalency check
+design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
+cd tristate # Constrain all select calls below inside the top module
+select -assert-count 3 t:FACADE_IO
+select -assert-none t:FACADE_IO %% t:* %D