Difference between revisions of "CSC270 Homework 4"

From dftwiki3
Jump to: navigation, search
(New page: © --~~~~ <br /> Back to Weekly Schedule ---- This assignment is due on Wednesday, March 4th, at 7:00 p.m. =Exercise 1= Generate the logic diagram, showing flip-flops...)
 
(40px Exercise 3)
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
&copy; --[[User:Thiebaut|D. Thiebaut]] 15:59, 25 February 2009 (UTC)
+
[[Image:CSC270_animatedTrafficLight.gif | right | 50px]] &copy; --[[User:Thiebaut|D. Thiebaut]] 15:59, 25 February 2009 (UTC)
  
 
<br />
 
<br />
[[CSC270 | Back ]] to Weekly Schedule
+
[[CSC270_Class_Page | Back ]] to Weekly Schedule
 
----
 
----
  
 
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.
  
=Exercise 1=
+
 
 +
=[[Image:CSC270_trafficLight.jpg | 40px]] Exercise 1=
  
 
Generate the logic diagram, showing flip-flops, AND-, OR-, INVERTERS and/or other gates for a sequencer that activates a <font color="green">Green</font>, a <font color="orange">Yellow</font> and a <font color="red">Red</font> 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.
 
Generate the logic diagram, showing flip-flops, AND-, OR-, INVERTERS and/or other gates for a sequencer that activates a <font color="green">Green</font>, a <font color="orange">Yellow</font> and a <font color="red">Red</font> 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.
Line 15: Line 16:
 
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=
 
  
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:
+
=[[Image:CSC270_trafficLight.jpg | 40px]] 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'     
 
  D0 = Q0'     
Line 27: Line 29:
  
 
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).
 +
 +
=[[Image:CSC270_trafficLight.jpg | 40px]] 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.
 +
 +
The only available clock signal on the kit is a 1Hz signal.
 +
 +
Come up with a circuit that will generate such a signal.  Show all the details of your derivation.

Latest revision as of 11:32, 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.

The only available clock signal on the kit is a 1Hz signal.

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