tweaks in tut 2

This commit is contained in:
2020-10-23 12:48:46 -05:00
parent 12829a3e9c
commit 3a3830b443

View File

@@ -11,7 +11,9 @@ module blinky(i_clk, o_led, lcol1);
always @(posedge i_clk)
counter <= counter + 1'b1;
assign o_led = counter[WIDTH-1];
assign o_led = counter[WIDTH-1]; // normal, symmetrical blinking
// assign o_led = ~(&counter[WIDTH-1:WIDTH-3]); // short on, long off (strobe)
// assign o_led = ~(counter[5:0] < counter[WIDTH-1:WIDTH-6]); // PWM, dimmer
assign lcol1 = 1'b0;
endmodule