aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEddie Hung <eddieh@ece.ubc.ca>2019-04-05 16:30:17 -0700
committerEddie Hung <eddieh@ece.ubc.ca>2019-04-05 16:30:17 -0700
commit4afcad70e264d58bcbb8cddcffd19673c3570fc6 (patch)
treeaddfda1969a4ad443b1c763420c2fb5171858e39 /tests
parenta5f33b5409d9325730204eb776e0046726d55d2c (diff)
parentad602438b8313c3dd243c5fabf6f20036487d1ba (diff)
downloadyosys-4afcad70e264d58bcbb8cddcffd19673c3570fc6.tar.gz
yosys-4afcad70e264d58bcbb8cddcffd19673c3570fc6.tar.bz2
yosys-4afcad70e264d58bcbb8cddcffd19673c3570fc6.zip
Merge branch 'eddie/fix_retime' into xc7srl
Diffstat (limited to 'tests')
-rw-r--r--tests/simple/retime.v6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/simple/retime.v b/tests/simple/retime.v
new file mode 100644
index 000000000..30b6087dc
--- /dev/null
+++ b/tests/simple/retime.v
@@ -0,0 +1,6 @@
+module retime_test(input clk, input [7:0] a, output z);
+ reg [7:0] ff = 8'hF5;
+ always @(posedge clk)
+ ff <= {ff[6:0], ^a};
+ assign z = ff[7];
+endmodule