Why FSMs Model Sequential Behavior
📖 Scenario: Imagine you want to control a simple traffic light system that changes lights in a fixed order: green, yellow, then red, and repeats. This system needs to remember its current light and change to the next one in sequence every time a timer finishes. This is a perfect example of sequential behavior, where the next action depends on the current state.
🎯 Goal: You will build a simple Finite State Machine (FSM) in Verilog that models this traffic light sequence. This will show how FSMs help us model systems that change step-by-step over time.
📋 What You'll Learn
Create a Verilog module with states representing traffic light colors
Use a register to hold the current state
Use a clock input to move from one state to the next
Output the current light color as signals
Print the current state in simulation to observe the sequence
💡 Why This Matters
🌍 Real World
Traffic lights, vending machines, and many control systems use FSMs to remember their current step and decide what to do next.
💼 Career
Understanding FSMs is essential for hardware design, embedded systems, and digital logic jobs where controlling sequences and states is common.
Progress0 / 4 steps