Question: Design a digital system that controls traffic lights. The system generates the color of the traffic light according to parameters. There is only one output
Design a digital system that controls traffic lights. The system generates the color of
the traffic light according to parameters. There is only one output of the
system, lighto that changes its value between RED, YELLOW, and GREEN
synchronously with respect to the rising edge of the system clock input signal,
named clki
The lighto signal should follow the sequence of RED YELLOW GREEN
YELLOW RED continuously when updating the color of the traffic light.
The system also incDesign a digital system that controls traffic lights. The system generates the color of the traffic light according to parameters. There is only one output of the system, lighto that changes its value between RED, YELLOW, and GREEN synchronously with respect to the rising edge of the system clock input signal, named clki The lighto signal should follow the sequence of RED YELLOW GREEN YELLOW RED continuously when updating the color of the traffic light. The system also includes an activehigh reset input signal, rsti synchronous to the rising edge of the clki signal. When the rsti signal is set to logic the output resets to the RESETCOLOR state. The following parameters govern the behavior of the system: REDDURATION, YELLOWDURATION, and GREENDURATION: Represent the durations of the RED, YELLOW, and GREEN lights, respectively. These durations are defined in terms of the number of clki cycles. RESETCOLOR: Defines the state of lighto when the reset signal rsti is asserted to logic ENABLEYELLOW: A boolean parameter that enables or disables the YELLOW light. When set to the lighto signal sequence is RED YELLOW GREEN YELLOW RED. When set to the YELLOW color is removed, and the sequence becomes RED GREEN RED. The system must adhere to the following requirements: The lighto output signal should update only on the rising edge of the clki signal. Upon assertion of the rsti signal, the lighto output should immediately reset to the value defined by the RESETCOLOR parameter. Implementation Requirements: Implement the system in Verilog. Develop a testbench in Verilog or SystemVerilog to verify the functionality of your design. The testbench should: o Generate clock and reset signals. o Monitor the lighto output and validate that the sequence and timing match the expected behavior based on the provided parameters. o Include stimulus to test the functionality with ENABLEYELLOW set to both and o Test the reset functionality and ensure the system resets to RESETCOLOR.
ALSO DON'T USE AI IF YOU DON'T KNOW HOW TO SOLVE JUST DON'T TAKE THE QUESTON PLS APPRECATE T
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
