Hades logo    Hades applet banner

TAMS / Java / Hades / applets (print version): contents | previous | next

Traffic light controller (2/4)

Traffic light controller (2/4) screenshot

Description

Another traffic light controller. (Click the clock and nreset switches, or type the 'c' and 'r' bindkeys).

In this example, the state-encoding is chosen so that each flipflop directly encodes one output: flipflop z0 drives the red LED, z1 the yellow LED, and z2 the green LED. Therefore, no additional gates are required for the 'lambda' circuit of the Moore model. However, one additional flipflop and a more complex 'delta' circuit are required in comparison the realization demonstrated in the previous applet.

Over the years, many different and elaborate algorithms have been proposed to automatically find good solutions to the state-encoding and logic-minimization problems. Note that the quality of a solution largely depends on technological constraints like implementation technology (bipolar, CMOS), architecture (full-custom, FPGA), required clock-frequency, power-consumption, etc.

state       encoding   next state
            z2 z1 z0   z2* z1* z0*
----------------------------------
reset        0  0  0     0   0   1
red          0  0  1     0   1   1
red+yellow   0  1  1     1   0   0
green        1  0  0     0   1   0
yellow       0  1  0     0   0   1

Run the applet | Run the editor (via Webstart)


Impressum | 24.11.06
http://tams.informatik.uni-hamburg.de/applets/hades/webdemos/18-fsm/10-trafficlight/ampel_42_print.html