assign reg in always block
This commit is contained in:
@@ -32,8 +32,8 @@ module top(i_clk, o_led, lcol1);
|
|||||||
obuf <= {obuf[6:0], obuf[7]}; // left shift
|
obuf <= {obuf[6:0], obuf[7]}; // left shift
|
||||||
// obuf <= {obuf[0], obuf[7:1]}; // right shift
|
// obuf <= {obuf[0], obuf[7:1]}; // right shift
|
||||||
|
|
||||||
always @(*)
|
always @(posedge clk_12MHz)
|
||||||
o_led = ~obuf;
|
o_led <= ~obuf;
|
||||||
|
|
||||||
assign lcol1 = 1'b0;
|
assign lcol1 = 1'b0;
|
||||||
endmodule
|
endmodule
|
||||||
|
|||||||
Reference in New Issue
Block a user