2. (20 points) Design a HLSM for a traffic light controller. The light goes through red (30 sec), green (25 sec) and yel
Posted: Sun May 15, 2022 3:16 pm
2. (20 points) Design a HLSM for a traffic light controller. The light goes through red (30 sec), green (25 sec) and yellow (5 sec), then repeat. The clock runs at 1Hz. An input PED signal will short-cut the green light immediately to yellow, if the light is green, or do nothing otherwise. The outputs are R, G and Y, which will turn on the red, green and yellow lights, respectively. You need to show the following steps: a) Draw the FSM diagram (5 points). b) Build the data path (5 points). c) Encode the FSM states and show the truth table (5 points). d) Implement the FSM based on the truth table (5 points).