FSM Toggle
Problem Description
Implement a simple finite state machine that toggles between two states on each clock cycle.
Module Interface
- Inputs:
clk
: Clock signalreset
: Reset signal (active high)
- Output:
state
: Current state (1-bit)
Expected Behavior
- On reset: state = 0
- On each clock edge: state toggles between 0 and 1
No Waveform Data
Submit your Verilog code using Cmd+Enter to see the simulation results and waveform visualization.