Recall & Review
beginner
What is a Finite State Machine (FSM) in the context of a traffic light controller?
An FSM is a model that controls the traffic light by moving through a set of defined states (like green, yellow, red) in a specific order based on timing or events.
Click to reveal answer
beginner
In Verilog, how do you represent states for a traffic light controller FSM?
States are usually represented using parameters or localparams with unique binary values, for example: parameter GREEN = 2'b00, YELLOW = 2'b01, RED = 2'b10.
Click to reveal answer
beginner
What is the role of the clock signal in a traffic light FSM implemented in Verilog?
The clock signal triggers state changes at regular intervals, ensuring the traffic light changes colors in a timed sequence.
Click to reveal answer
beginner
Why do we use a reset signal in a traffic light controller FSM?
The reset signal initializes the FSM to a known starting state (usually RED) when the system powers on or needs to restart safely.
Click to reveal answer
intermediate
How does the traffic light controller FSM ensure safe transitions between states?
It uses a defined sequence and timing for states, for example, green to yellow to red, preventing conflicting signals and ensuring safety.
Click to reveal answer
What does FSM stand for in a traffic light controller?
✗ Incorrect
FSM means Finite State Machine, a model used to control sequences like traffic lights.
Which Verilog construct is commonly used to define states in a traffic light FSM?
✗ Incorrect
Parameters or localparams define constant state values for clarity and easy state management.
What triggers the state transitions in a traffic light FSM?
✗ Incorrect
The clock signal controls when the FSM moves from one state to the next.
Why is a reset signal important in a traffic light FSM?
✗ Incorrect
Reset sets the FSM to a known safe state, usually red, when starting or recovering.
What is the correct sequence of states in a simple traffic light FSM?
✗ Incorrect
The safe and common sequence is green, then yellow, then red.
Explain how a traffic light controller FSM works in Verilog, including states, clock, and reset.
Think about how the traffic light changes colors step by step.
You got /4 concepts.
Describe why timing and state order are important in a traffic light FSM.
Consider what happens if lights change too fast or in wrong order.
You got /4 concepts.