aboutsummaryrefslogtreecommitdiffstats
path: root/tests/opt/opt_rmdff.ys
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-08-07 21:35:48 -0700
committerEddie Hung <eddie@fpgeh.com>2019-08-07 21:35:48 -0700
commit2b6cdfb39f9010861cb203809b295d1c36d58aa5 (patch)
tree8c595c18ef61fae52c9bb304add2c7ba56c0d821 /tests/opt/opt_rmdff.ys
parentd5e8c0e6d33de71493855eca72fcc454a67a6140 (diff)
downloadyosys-2b6cdfb39f9010861cb203809b295d1c36d58aa5.tar.gz
yosys-2b6cdfb39f9010861cb203809b295d1c36d58aa5.tar.bz2
yosys-2b6cdfb39f9010861cb203809b295d1c36d58aa5.zip
Move tests/various/opt* into tests/opt/
Diffstat (limited to 'tests/opt/opt_rmdff.ys')
-rw-r--r--tests/opt/opt_rmdff.ys26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/opt/opt_rmdff.ys b/tests/opt/opt_rmdff.ys
new file mode 100644
index 000000000..081f81782
--- /dev/null
+++ b/tests/opt/opt_rmdff.ys
@@ -0,0 +1,26 @@
+read_verilog -icells opt_rmdff.v
+prep
+design -stash gold
+read_verilog -icells opt_rmdff.v
+proc
+opt_rmdff
+
+select -assert-count 0 c:remove*
+select -assert-min 7 c:keep*
+select -assert-count 0 t:$dffe 7:$_DFFE_* %u c:noenable* %i
+
+design -stash gate
+
+design -import gold -as gold
+design -import gate -as gate
+
+equiv_make gold gate equiv
+hierarchy -top equiv
+equiv_simple -undef
+equiv_status -assert
+
+design -load gold
+stat
+
+design -load gate
+stat