Add retime test
authorEddie Hung <eddieh@ece.ubc.ca>
Fri, 5 Apr 2019 23:28:46 +0000 (16:28 -0700)
committerEddie Hung <eddieh@ece.ubc.ca>
Fri, 5 Apr 2019 23:28:46 +0000 (16:28 -0700)
tests/simple/retime.v [new file with mode: 0644]

diff --git a/tests/simple/retime.v b/tests/simple/retime.v
new file mode 100644 (file)
index 0000000..30b6087
--- /dev/null
@@ -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