diff options
author | Eddie Hung <eddieh@ece.ubc.ca> | 2019-04-05 16:28:46 -0700 |
---|---|---|
committer | Eddie Hung <eddieh@ece.ubc.ca> | 2019-04-05 16:28:46 -0700 |
commit | ad602438b8313c3dd243c5fabf6f20036487d1ba (patch) | |
tree | bce58374326bfcba3a5898d17fdffbc59ef563fa /tests | |
parent | d55902300772d90aee09555d412079e17fd4bde7 (diff) | |
download | yosys-ad602438b8313c3dd243c5fabf6f20036487d1ba.tar.gz yosys-ad602438b8313c3dd243c5fabf6f20036487d1ba.tar.bz2 yosys-ad602438b8313c3dd243c5fabf6f20036487d1ba.zip |
Add retime test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/simple/retime.v | 6 |
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 |