LED Blinker

Easy Verilog FSM
Solve this problem

Create a simple LED blinking module using a counter. The LED toggles when the counter overflows.

Constraints

  • Counter must be 24 bits.
  • Reset clears LED to 0 and counter to 0.
  • Toggle LED on overflow.
  • Synchronous logic only.
Starter codeVerilog
1module led_blink(2    input wire clk,3    input wire rst,4    output reg led5);6 7// TODO8 9endmodule