aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2019-09-12 12:26:28 +0100
committerGitHub <noreply@github.com>2019-09-12 12:26:28 +0100
commit6044fff074f026676312f047cfd5a7c862ff987f (patch)
tree67b1bdced6f74eb2551f087df2adb2e17556e974 /tests
parentf72765090cd001ff4dc54d5a9c01a2d4b3339865 (diff)
parentc43e52d2d7d16c26b1a4a9c20fad83c9f4577910 (diff)
downloadyosys-6044fff074f026676312f047cfd5a7c862ff987f.tar.gz
yosys-6044fff074f026676312f047cfd5a7c862ff987f.tar.bz2
yosys-6044fff074f026676312f047cfd5a7c862ff987f.zip
Merge pull request #1370 from YosysHQ/dave/equiv_opt_multiclock
Add equiv_opt -multiclock
Diffstat (limited to 'tests')
-rw-r--r--tests/various/equiv_opt_multiclock.ys12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/various/equiv_opt_multiclock.ys b/tests/various/equiv_opt_multiclock.ys
new file mode 100644
index 000000000..81e36d018
--- /dev/null
+++ b/tests/various/equiv_opt_multiclock.ys
@@ -0,0 +1,12 @@
+read_verilog <<EOT
+module top(input clk, pre, d, output reg q);
+ always @(posedge clk, posedge pre)
+ if (pre)
+ q <= 1'b1;
+ else
+ q <= d;
+endmodule
+EOT
+
+prep
+equiv_opt -assert -multiclock -map +/simcells.v synth