CSC270 Lab #7
Experiment 1: A traffic light sequencer
Design a traffic light sequencer that has 4 states. The Green light stays on for two periods of the clock, while the Yellow and Red lights for one only.
You will be using 7474 D-Flip-Flops to implement this sequencer
Current State |
Green | Yellow | Red |
---|---|---|---|
  |
  |
  |
|
  |
  |
  |
|
  |
  |
  |
|
  |
  |
  |
Number of states = N = _______ Number of flip-flops = F =______ Make sure that the following property holds: 2F >= N
State | QA | QB |
---|---|---|
  |
  |
|
  |
  |
|
  |
  |
|
  |
  |
Current QA |
Current QB |
Next QA |
Next QB |
Current Green |
Current Yellow |
Current Red |
---|---|---|---|---|---|---|
  |
  |
  |
  |
  |
  |
|
  |
  |
  |
  |
  |
  |
|
  |
  |
  |
  |
  |
  |
|
  |
  |
  |
  |
  |
  |
DA = Next QA = ___________________ DB = Next QB = ___________________
Experiment 2: Adding an input switch...
Same experiment, but this time add a switch that is normally 0. When it is pressed, though, the sequencer remains stuck in the state that activates the Red light. When the switch is released, the sequencer goes back through its regular cycle.
Your new design should not be close enough to the previous one that you might be able to use most of your wiring!
Record the timing diagram of the variation of the clock signal, Q1, Q2, Green, Yellow, and Red, when the switch is activated (first timing diagram), and when it is not (second timing diagram).