Design a sequential traffic light controller for theintersection of street A and street B. Each street has trafficsensors which detect the presence of vehicles approaching orstopped at intersection.
Sa=1 means a vehicle is approaching on street A.
Sb=1 means a vehicle is approaching on street B.
There are 3 outputs of each streets RedA, YellowA and GreenA,RedB, YellowB, and GreenB.
Condition: “StreetA” is a main street and has a green light forat least 50s, after 50s if there is a car approaches on “StreetB”,the light changed to yellow then red and “StreetB” has green lightfor 50s.
At the end of 50s, the light change back unless there is a caron “StreetB” and none on “StreetA”
Present the code and develop a waveform using the Quartus Prime19.1 Lite edition.