Difference between revisions of "CSC270 Homework 4"

From dftwiki3
Jump to: navigation, search
(Exercise 3)
Line 1: Line 1:
© --[[User:Thiebaut|D. Thiebaut]] 15:59, 25 February 2009 (UTC)
+
[[Image:CSC270_animatedTrafficLight.gif | right | 50px]] © --[[User:Thiebaut|D. Thiebaut]] 15:59, 25 February 2009 (UTC)
  
 
<br />
 
<br />
 
[[CSC270 | Back ]] to Weekly Schedule
 
[[CSC270 | Back ]] to Weekly Schedule
 
----
 
----
[[Image:CSC270_trafficLight.jpg | right | 50px]]
+
 
 
This assignment is due on Wednesday, March 4th, at 7:00 p.m.
 
This assignment is due on Wednesday, March 4th, at 7:00 p.m.
 +
 +
<center>[[Image:CSC270_trafficLight.jpg | right | 50px]]</center>
  
 
=Exercise 1=
 
=Exercise 1=
Line 15: Line 17:
 
Verify your boolean with a python program, which you will include with your answers.
 
Verify your boolean with a python program, which you will include with your answers.
  
=Exercise 2 [[Image:CSC270_animatedTrafficLight.gif | right | 50px]]=
+
<center>[[Image:CSC270_trafficLight.jpg | right | 50px]]</center>
 +
 
 +
=Exercise 2=
  
 
What is the full '''state diagram''' of a sequencer with 3 flipflops, Q2, Q1, and Q0, and three outputs, G, Y, and R, having the following equations:
 
What is the full '''state diagram''' of a sequencer with 3 flipflops, Q2, Q1, and Q0, and three outputs, G, Y, and R, having the following equations:
Line 28: Line 32:
 
Be careful to include all possible states.  In particular, when you turn the sequencer on, the flipflops can be in any of the 8 possible combinations of 3 bits.    So you can just as well start in the state (Q2=0, Q1=1, Q0=0), as in the state (Q2=1,Q1=1, Q0=1).
 
Be careful to include all possible states.  In particular, when you turn the sequencer on, the flipflops can be in any of the 8 possible combinations of 3 bits.    So you can just as well start in the state (Q2=0, Q1=1, Q0=0), as in the state (Q2=1,Q1=1, Q0=1).
  
 +
<center>[[Image:CSC270_trafficLight.jpg | right | 50px]]</center>
 
=Exercise 3=
 
=Exercise 3=
  
Line 33: Line 38:
  
 
Come up with a circuit that will generate such a signal.  Show all the details of your derivation.
 
Come up with a circuit that will generate such a signal.  Show all the details of your derivation.
 +
 +
<center>[[Image:CSC270_trafficLight.jpg | right | 50px]]</center>

Revision as of 11:15, 25 February 2009

CSC270 animatedTrafficLight.gif
© --D. Thiebaut 15:59, 25 February 2009 (UTC)


Back to Weekly Schedule


This assignment is due on Wednesday, March 4th, at 7:00 p.m.

CSC270 trafficLight.jpg

Exercise 1

Generate the logic diagram, showing flip-flops, AND-, OR-, INVERTERS and/or other gates for a sequencer that activates a Green, a Yellow and a Red signal. The green signal stays on for a while, then the yellow signal turns on at the same time the green turns off, and when the yellow signal turns off, the red signal turns on. As soon as the red signal turns off, the green signal is back on.

The green signal stays on three times longer than the red signal. The yellow signal stays on the same amount of time as the red signal does.

Verify your boolean with a python program, which you will include with your answers.

CSC270 trafficLight.jpg

Exercise 2

What is the full state diagram of a sequencer with 3 flipflops, Q2, Q1, and Q0, and three outputs, G, Y, and R, having the following equations:

D0 = Q0'     
D1 = Q1.Q0' + Q2.Q1 + Q2'.Q1'.Q0
D2 = Q2
G = Q2'. ( Q1.Q0 )'
Y = Q2.Q1'.Q0
R = Q1.Q0

Be careful to include all possible states. In particular, when you turn the sequencer on, the flipflops can be in any of the 8 possible combinations of 3 bits. So you can just as well start in the state (Q2=0, Q1=1, Q0=0), as in the state (Q2=1,Q1=1, Q0=1).

CSC270 trafficLight.jpg

Exercise 3

Assume that you want to generate a square wave signal with one of the digital kit. This signal stays low for 3 seconds, high for 3 seconds, then repeats. Its frequency is 1/6sec = 0.166 Hz.

Come up with a circuit that will generate such a signal. Show all the details of your derivation.

CSC270 trafficLight.jpg