The Traffic Light Example

You must encode, using Ticc, a traffic light controller. You can find a pre-built Ticc executable for linux at /projects/bubble/code/ticc/trunk/ticc . You can also copy /projects/bubble/code/ticc/trunk to any other machine and recompile. Follow the included instructions. The traffic light controller is composed of four units, which are identical except that signals may be renamed; you can use both local and global variables. Each unit is in charge of one of the 4 directions of traffic.

Inputs

Each unit has at least the following inputs. You may, or may not, do something when you receive one of these input actions: start from a minimal implementation that does not do anything, then improve it.

Private variables

Each unit has at least the following boolean private variables, which in an implementation would be connected to lights. Some variables, marked with [1], are optional. First implement the rest, then worry about them.

Communication between units

You can use input and output signals (in addition to the above) for communication between units, as well as global variables.

Specification

Your solution should have the following properties:

CMPE 278 2007 HW 4 (last edited 2007-11-13 08:53:45 by LucaDeAlfaro)