Question: Please provide the Verilog code for this problem. A busy highway is intersected by a little used farm road. Detectors C sense the presence of
Please provide the Verilog code for this problem.
A busy highway is intersected by a little used farm road. Detectors C sense the presence of cars waiting on the farm road. With no car on farm road, light remain green in highway direction. If vehicle on the farm road, highway lights go from Green to Yellow to Red, allowing the farm road lights to become green. These stay green only as long as a farm road car is detected but never longer than a set interval. When these are met, farm lights transition from Green to Yellow to Red, allowing highway to return to green. Even if farm road vehicles are waiting, highway gets at least a set interval as green. Assume you have an interval timer that generates a short time pulse (TS) and a long time pulse (TL) in response to a set (ST) signal. TS is to be used for timing yellow lights and TL for green lights. Picture of Highway/Farm road Intersection

Design Requirements: Your design must obey the following rules: 1. When the light is green on A Street and a car is waiting on B Street, give A Street a yellow light for one clock cycle and then give A Street a red light and B Street a green light for at least two cycles. 2. When the light is green on A Street and there is no car on B Street, leave the light green on A Street. 3. When the is green on B Street (and weve finished the two cycles from step 1) and a car is waiting on A Street, give B Street a yellow light for one clock cycle and then give B Street a red light and A Street a green light for at least two cycles. 4. When the light is green on B Street and there is no car on A Street, leave the light green on B Street. 5. When you press the reset switch, after no more than six cycles, the light should be initially green on A Street and red on B Street and the controller should be ready for operation.


Fanmroad HL Highway Highway> oO HL Fanmroad
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
