I have the following code:
module one_second(OUT,clk);
output reg [3:0]OUT;
input clk;
always @(posedge (clk))
begin
OUT<=4'b1110; //LINE 1
OUT<=4'b1101; //LINE 2
OUT<=4'b1011; //LINE 3
OUT<=4'b0111; //LINE 4
end
endmodule
I want the variable "OUT" to have different values from LINE 1- LINE 4 one by one after each clock pulse. After the 4th pulse it should repeat again.