aboutsummaryrefslogtreecommitdiffstats
path: root/tests/simple/retime.v
blob: 30b6087dc865dd4ad67be21441b7ff39030d305b (plain)
1
2
3
4
5
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