itec 352
DESCRIPTION
ITEC 352. Lecture 9 Flip Flops. Review. Questions? HW #2 posted, due next Friday at 10PM Floating point numbers. Outline. Rationale SR D T JK. Gates. So far what have we seen circuitry wise? What can we do with what we have learned? What can’t we do?. Idea. - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: ITEC 352](https://reader035.vdocuments.us/reader035/viewer/2022062310/568162ab550346895dd32dc4/html5/thumbnails/1.jpg)
ITEC 352
Lecture 9Flip Flops
![Page 2: ITEC 352](https://reader035.vdocuments.us/reader035/viewer/2022062310/568162ab550346895dd32dc4/html5/thumbnails/2.jpg)
Flip flops
Review
• Questions?• HW #2 posted, due next Friday at
10PM• Floating point numbers
![Page 3: ITEC 352](https://reader035.vdocuments.us/reader035/viewer/2022062310/568162ab550346895dd32dc4/html5/thumbnails/3.jpg)
Flip flops
Outline
• Rationale• SR• D• T• JK
![Page 4: ITEC 352](https://reader035.vdocuments.us/reader035/viewer/2022062310/568162ab550346895dd32dc4/html5/thumbnails/4.jpg)
Flip flops
Gates
• So far what have we seen circuitry wise?
• What can we do with what we have learned?
• What can’t we do?
![Page 5: ITEC 352](https://reader035.vdocuments.us/reader035/viewer/2022062310/568162ab550346895dd32dc4/html5/thumbnails/5.jpg)
Flip flops
Idea
• Have the output tied to the input
![Page 6: ITEC 352](https://reader035.vdocuments.us/reader035/viewer/2022062310/568162ab550346895dd32dc4/html5/thumbnails/6.jpg)
Flip flops
Why?
• State–Why is the state of a machine
important?– How does this relate to programming?–What does hooking up the output to the
input do to our idea of timing?• Not a new idea– Back in 1918
![Page 7: ITEC 352](https://reader035.vdocuments.us/reader035/viewer/2022062310/568162ab550346895dd32dc4/html5/thumbnails/7.jpg)
Flip flops
SR
• Set and reset latch– Can be implemented with NAND gates
What is the truth table for this set of gates?What input set should we stay away from?
![Page 8: ITEC 352](https://reader035.vdocuments.us/reader035/viewer/2022062310/568162ab550346895dd32dc4/html5/thumbnails/8.jpg)
Flip flops
Gating the gates
• What does this image bring to mind?
![Page 9: ITEC 352](https://reader035.vdocuments.us/reader035/viewer/2022062310/568162ab550346895dd32dc4/html5/thumbnails/9.jpg)
Flip flops
Issue
• Changes in the input immediately change the output
• Sometimes keeping the state the same even though the input changes is required
What is the truth table?What do you think E does
![Page 10: ITEC 352](https://reader035.vdocuments.us/reader035/viewer/2022062310/568162ab550346895dd32dc4/html5/thumbnails/10.jpg)
Flip flops
D Latch
• Adding the 1/1 combination– Just like an SR latch except it handles
the 1 1 input condition gracefully
![Page 11: ITEC 352](https://reader035.vdocuments.us/reader035/viewer/2022062310/568162ab550346895dd32dc4/html5/thumbnails/11.jpg)
Flip flops
Clock cycles
• Some sort of order needed– Conductor in an orchestra
• Need to preserve values through each “beat”
• Behavior– Designed to delay the output by 1 cycle– Allows access to previous cycles result
Clock pulse
![Page 12: ITEC 352](https://reader035.vdocuments.us/reader035/viewer/2022062310/568162ab550346895dd32dc4/html5/thumbnails/12.jpg)
Flip flops
T Flip/flop
• Toggles value when T is 1• Clock pulse changes values
![Page 13: ITEC 352](https://reader035.vdocuments.us/reader035/viewer/2022062310/568162ab550346895dd32dc4/html5/thumbnails/13.jpg)
Flip flops
JK Flip/Flop
• Universal flip/flop• J=set, K=reset• 0 0 is hold• 1 1 is toggle
![Page 14: ITEC 352](https://reader035.vdocuments.us/reader035/viewer/2022062310/568162ab550346895dd32dc4/html5/thumbnails/14.jpg)
Flip flops
Next steps
• Have the capability to store information
• Have the capability to manipulate binary bits for mathematical and boolean tasks
• How does it all fit together to form a computer?
![Page 15: ITEC 352](https://reader035.vdocuments.us/reader035/viewer/2022062310/568162ab550346895dd32dc4/html5/thumbnails/15.jpg)
Flip flops
Summary
• Flip flops• Latches• Storing bits