diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-08-20 12:00:12 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-08-20 12:00:12 -0700 |
commit | c4d4c6db3f4bff22b2fa3a152c5c33d648af81f8 (patch) | |
tree | b465265f1bc72f0b943fc6e4be7f4661e4e5734d /tests/proc | |
parent | 1f03154a0cc08c1bde59036d6b0a4a40a3898c3d (diff) | |
parent | 14c03861b6d178c85d6963e673ed51bc142457e1 (diff) | |
download | yosys-c4d4c6db3f4bff22b2fa3a152c5c33d648af81f8.tar.gz yosys-c4d4c6db3f4bff22b2fa3a152c5c33d648af81f8.tar.bz2 yosys-c4d4c6db3f4bff22b2fa3a152c5c33d648af81f8.zip |
Merge remote-tracking branch 'origin/master' into xaig_dff
Diffstat (limited to 'tests/proc')
-rw-r--r-- | tests/proc/.gitignore | 1 | ||||
-rw-r--r-- | tests/proc/bug_1268.v | 23 | ||||
-rw-r--r-- | tests/proc/bug_1268.ys | 5 | ||||
-rwxr-xr-x | tests/proc/run-test.sh | 6 |
4 files changed, 35 insertions, 0 deletions
diff --git a/tests/proc/.gitignore b/tests/proc/.gitignore new file mode 100644 index 000000000..397b4a762 --- /dev/null +++ b/tests/proc/.gitignore @@ -0,0 +1 @@ +*.log diff --git a/tests/proc/bug_1268.v b/tests/proc/bug_1268.v new file mode 100644 index 000000000..698ac937a --- /dev/null +++ b/tests/proc/bug_1268.v @@ -0,0 +1,23 @@ +module gold (input clock, ctrl, din, output reg dout); + always @(posedge clock) begin + if (1'b1) begin + if (1'b0) begin end else begin + dout <= 0; + end + if (ctrl) + dout <= din; + end + end +endmodule + +module gate (input clock, ctrl, din, output reg dout); + always @(posedge clock) begin + if (1'b1) begin + if (1'b0) begin end else begin + dout <= 0; + end + end + if (ctrl) + dout <= din; + end +endmodule diff --git a/tests/proc/bug_1268.ys b/tests/proc/bug_1268.ys new file mode 100644 index 000000000..b73e94449 --- /dev/null +++ b/tests/proc/bug_1268.ys @@ -0,0 +1,5 @@ +read_verilog bug_1268.v +proc +equiv_make gold gate equiv +equiv_induct +equiv_status -assert diff --git a/tests/proc/run-test.sh b/tests/proc/run-test.sh new file mode 100755 index 000000000..44ce7e674 --- /dev/null +++ b/tests/proc/run-test.sh @@ -0,0 +1,6 @@ +#!/bin/bash +set -e +for x in *.ys; do + echo "Running $x.." + ../../yosys -ql ${x%.ys}.log $x +done |