Professional Documents
Culture Documents
1 2
3 4
5 6
Any redundancy? Partial traffic light controller
Utilize external timer like a subroutine ST resets timer and starts counting
Timer generates a short time pulse (TS) and a long
time pulse (TL)
TL·C HY TS TS is to be used for timing yellow lights and TL for
a FG
HG [ST] HYb [ST] green lights
ST ST
Traffic Light
(TL·C)' TS' Controller Interval
TS TS short
Timer
TL
TL long
9 10
11 12
Moore/Mealy hybrid State encoding
(TL•C)' Reset
Let's use a one-hot encoding:
HG HG = 0001
TL•C / ST TS / ST HY = 0010
TS' HY FY TS' FG = 0100
FY = 1000
TS / ST TL+C' / ST
FG
(TL+C')'
13 14
(TL+C')'
17 18