diff --git a/fsm/rtl/top.v b/fsm/rtl/top.v index 3366aa1..0709da2 100644 --- a/fsm/rtl/top.v +++ b/fsm/rtl/top.v @@ -26,10 +26,11 @@ module top(i_clk, o_led, lcol1); always @(posedge clk_12MHz) {strobe, counter} <= counter + 1'b1; - // shifting bit, to the left + // shifting bit always @(posedge clk_12MHz) if (strobe) - obuf <= {obuf[6:0], obuf[7]}; + obuf <= {obuf[6:0], obuf[7]}; // left shift + // obuf <= {obuf[0], obuf[7:1]}; // right shift always @(*) o_led = ~obuf;