Name:
Problem 8 (15 pts): Moore Finite State Machine, (Crosswalk Control)
Description:
You are designing a controller for crosswalk lights. As is typical at crosswalks, the
crosswalk light (X) is initially red. A pedestrian (P) pushes a button (B) when he or
she wishes to cross the street. After some time, the vehicle traffic light (V) turns
yellow, then red, and the crosswalk light (X) turns green to indicate that the
pedestrian may cross. After an additional period, the crosswalk light (X) turns
yellow to indicate that the safe crossing time is expiring, and after yet another
additional period, the crosswalk light (X) turns red, indicating pedestrians must
exit the crosswalk, and the vehicle light (V) turns green allowing vehicles to
continue on their way. You may assume that the timer intervals are set within the
timers, so you will not need to specify each timer. Instead, you may use "T" for
each "generic" timer. Use "1" for a timer running and "0" for a timer "run out".
Draw your state diagram on the following page and the next state truth table on
the page following that. Number each state and include the which lights are on in
each state X(R) V(G) etc. Include the state transition "arrows" both for remaining
in the same state and progressing to a new state and indicate the element related
to the transition, i.e., T (0), T (1)