2024-01-07 14:23:36 +01:00
|
|
|
module top;
|
|
|
|
|
logic [9:0] pipe = 0;
|
|
|
|
|
logic [4:0] i;
|
|
|
|
|
logic clk = 0;
|
|
|
|
|
|
|
|
|
|
always #1 clk = ~clk;
|
|
|
|
|
|
|
|
|
|
always_ff @(posedge clk) begin
|
|
|
|
|
for (i=0; i<9; i++) begin
|
|
|
|
|
pipe[i+1] <= pipe[i];
|
|
|
|
|
end
|
|
|
|
|
pipe[0] <= pipe[9];
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
initial begin
|
|
|
|
|
pipe[0] = 1'b1;
|
2024-01-20 20:25:35 +01:00
|
|
|
|
2024-01-07 14:23:36 +01:00
|
|
|
for (int j=0; j<10; j++) begin
|
|
|
|
|
$display(pipe[9]);
|
|
|
|
|
#2;
|
|
|
|
|
end
|
2024-01-20 20:25:35 +01:00
|
|
|
|
2024-01-07 14:23:36 +01:00
|
|
|
$finish(0);
|
|
|
|
|
end
|
|
|
|
|
endmodule
|