課程名稱 : 數位邏輯設計 P-1/ /6/11

Similar documents
課程名稱 : 數位邏輯設計 P-1/ /6/11

COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

Decoding A Counter. svbitec.wordpress.com 1

Introduction EE 224: INTRODUCTION TO DIGITAL CIRCUITS & COMPUTER DESIGN. Lecture 6: Sequential Logic 3 Registers & Counters 5/9/2010

PGT104 Digital Electronics. PGT104 Digital Electronics

COE 202: Digital Logic Design Sequential Circuits Part 4. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

Chapter #7: Sequential Logic Case Studies Contemporary Logic Design

ELCT201: DIGITAL LOGIC DESIGN

Chapter 7. Sequential Circuits Registers, Counters, RAM

King Fahd University of Petroleum and Minerals College of Computer Science and Engineering Computer Engineering Department

L4: Sequential Building Blocks (Flip-flops, Latches and Registers)

Synchronous Sequential Logic

Digital Fundamentals

L4: Sequential Building Blocks (Flip-flops, Latches and Registers)

Counters. We ll look at different kinds of counters and discuss how to build them

6 Synchronous State Machine Design

DE58/DC58 LOGIC DESIGN DEC 2014

Counters. Clocked sequential circuit whose state diagram contains a single cycle. Modulus number of states in the cycle. Counters with nonpower

Sequential Logic Design

Digital Electronics Circuits 2017

Review: Designing with FSM. EECS Components and Design Techniques for Digital Systems. Lec 09 Counters Outline.

Unit 12 Problem Solutions

ECE/Comp Sci 352 Digital Systems Fundamentals. Charles R. Kime Section 2 Fall Logic and Computer Design Fundamentals

SYNCHRONOUS SEQUENTIAL CIRCUITS

A B D 1 Y D 2 D 3. Truth table for 4 to 1 MUX: A B Y 0 0 D D D D 3

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

LOGIC CIRCUITS. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D.

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

Chapter 5 Synchronous Sequential Logic

Synchronous Sequential Logic. Chapter 5

Chapter 7: Digital Components. Oregon State University School of Electrical Engineering and Computer Science. Review basic digital design concepts:

Roger L. Tokheim. Chapter 8 Counters Glencoe/McGraw-Hill

Overview of Chapter 4

Design of Sequential Circuits

Design at the Register Transfer Level

S.E. Sem. III [ETRX] Digital Circuit Design. t phl. Fig.: Input and output voltage waveforms to define propagation delay times.

Time Allowed 3:00 hrs. April, pages

Chapter 7. Synchronous Sequential Networks. Excitation for

10/12/2016. An FSM with No Inputs Moves from State to State. ECE 120: Introduction to Computing. Eventually, the States Form a Loop

Vidyalankar S.E. Sem. III [ETRX] Digital Circuits and Design Prelim Question Paper Solution

Digital Logic Design - Chapter 4

Digital Electronics Sequential Logic

Unit 7 Sequential Circuits (Flip Flop, Registers)

Lecture 3 Review on Digital Logic (Part 2)

Digital Electronics. Part A

King Fahd University of Petroleum and Minerals College of Computer Science and Engineering Computer Engineering Department

EECS150 - Digital Design Lecture 17 - Sequential Circuits 3 (Counters)

Sample Test Paper - I

Logic Design II (17.342) Spring Lecture Outline

Philadelphia University Student Name: Student Number:

EECS150 - Digital Design Lecture 18 - Counters

EECS150 - Digital Design Lecture 18 - Counters

Digital Logic and Design (Course Code: EE222) Lecture 19: Sequential Circuits Contd..

Sequential Circuits Sequential circuits combinational circuits state gate delay

S.Y. Diploma : Sem. III [CO/CM/IF/CD/CW] Digital Techniques

FYSE420 DIGITAL ELECTRONICS

ELEC Digital Logic Circuits Fall 2014 Sequential Circuits (Chapter 6) Finite State Machines (Ch. 7-10)

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

EE141. Lecture 28 Multipliers. Lecture #20. Project Phase 2 Posted. Sign up for one of three project goals today

Computers also need devices capable of Storing data and information Performing mathematical operations on such data

I. Motivation & Examples

EECS150 - Digital Design Lecture 11 - Shifters & Counters. Register Summary

CHW 261: Logic Design

CS221: Digital Design. Dr. A. Sahu. Indian Institute of Technology Guwahati

( c) Give logic symbol, Truth table and circuit diagram for a clocked SR flip-flop. A combinational circuit is defined by the function

ELCT201: DIGITAL LOGIC DESIGN

Sequential Logic. Rab Nawaz Khan Jadoon DCS. Lecturer COMSATS Lahore Pakistan. Department of Computer Science

Appendix B. Review of Digital Logic. Baback Izadi Division of Engineering Programs

MATC DIGITAL ELECTRONICS LAB ASYNCHRONOUS RIPPLE COUNTERS

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

Digital Electronics Final Examination. Part A

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 9 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

Sequential vs. Combinational

Sequential Circuit Analysis

Digital Logic Design. Midterm #2

Philadelphia University Student Name: Student Number:

ELE2120 Digital Circuits and Systems. Tutorial Note 9

Integrated Circuits & Systems

Introduction to Digital Logic

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

The Design Procedure. Output Equation Determination - Derive output equations from the state table

Vidyalankar S.E. Sem. III [EXTC] Digital Electronics Prelim Question Paper Solution ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD = B

Synchronous Sequential Circuit Design. Dr. Ehab A. H. AL-Hialy Page 1

Vidyalankar S.E. Sem. III [CMPN] Digital Logic Design and Analysis Prelim Question Paper Solution

Fundamentals of Boolean Algebra

Sequential Logic Worksheet

Digital Design. Sequential Logic

TYPICAL QUESTIONS & ANSWERS

Menu. Excitation Tables (Bonus Slide) EEL3701 EEL3701. Registers, RALU, Asynch, Synch

Sequential Logic Circuits

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

CSCI 2150 Intro to State Machines

ECE 341. Lecture # 3

Sequential Circuit Design

Review: Designing with FSM. EECS Components and Design Techniques for Digital Systems. Lec09 Counters Outline.

11.1 As mentioned in Experiment 10, sequential logic circuits are a type of logic circuit where the output of

Module 10: Sequential Circuit Design

Lab 3 Revisited. Zener diodes IAP 2008 Lecture 4 1

Sequential Circuits. CS/EE 3700 : Fundamentals of Digital System Design

Exam for Physics 4051, October 31, 2008

Transcription:

課程名稱 : 數位邏輯設計 P-1/41 2012/6/11 extbook: igital esign, 4 th. Edition M. Morris Mano and Michael. iletti Prentice-Hall, Inc. 教師 : 蘇慶龍 INSRUOR : HING-LUNG SU E-mail: kevinsu@yuntech.edu.tw

hapter 6 P-2/41 2012/6/11 hapter 6 Registers and ounters

Outline of hapter 6 P-3/41 2012/6/11 6.1 Registers 6.2 Shift Registers 6.3 Ripple ounters 6.4 Synchronous ounters 6.5 Other ounters 6.6 HL for Registers and ounters

6.1 Registers P-4/41 2012/6/11 6.1 Registers 6.2 Shift Registers 6.3 Ripple ounters 6.4 Synchronous ounters 6.5 Other ounters 6.6 HL for Registers and ounters

6.1 Registers P-5/41 2012/6/11 Registers 1. A register is a group of flip-flops. 2. An n-bit register consists of a group of n flip-flops capable of storing n bits of binary information. 3. A counter is essentially a register that goes through a predetermined sequence of states. 4. he simplest register is one that consists of only flipflop without any gates 5. he common clock input triggers all flip-flop on the positive or negative clock edges. 6. he clear inputs asynchronously goes to the R (reset) input of all four flip-flops. 7. he R inputs must be maintained at logic 1 during normal clocked operation.

6.1 Registers P-6/41 2012/6/11 I 0 A 0 R I 1 A 1 4-Bit Registers R I 2 A 2 lear = 0 ; A x =0 lock = ; A x = I x Normal Operation ; lear = 1 R I 3 A 3 lock R lear (Active Low)

6.1 Registers P-7/41 2012/6/11 1/0 0/1 1/0 Load A 0 I 0 0/1 A 1 Register with Parallel Load I 1 1/0 A 2 Parallel Load ( ) No hange ( ) I 2 A 3 I 3 lock

6.2 Shift Registers P-8/41 2012/6/11 6.1 Registers 6.2 Shift Registers 6.3 Ripple ounters 6.4 Synchronous ounters 6.5 Other ounters 6.6 HL for Registers and ounters

6.2 Shift Registers P-9/41 2012/6/11 4-Bit Shift Registers Serial Input SI SO Serial Output lock

6.2 Shift Registers P-10/41 2012/6/11 Serial ransfer vs. Parallel ransfer 1. Serial Mode of igital Systems: Manipulation one bit at a time. 2. Serial ransfer: ransferring one bit at a time by shifting the bits out of the source register into the destination register. 3. Parallel ransfer: All the bits of the register are transferred at the same time.

6.2 Shift Registers P-11/41 2012/6/11 Serial ransfer form Register A to Register B Block iagram Shift ontrol External lock External lock Shift Register A Shift Register B SI SO SI SO Internal lock iming iagram Shift ontrol Internal lock 1 2 3 4 4-bit ata randferring

Self-copy 6.2 Shift Registers P-12/41 2012/6/11 iming of Serial ransfer Example iming Pulse Shift Register A Shift Register B Initial Value 1 0 1 1 0 0 1 0 After 1 1 1 0 1 1 0 0 1 After 2 1 1 1 0 1 1 0 0 After 3 0 1 1 1 0 1 1 0 After 4 1 0 1 1 1 0 1 1 Serial ransfer

6.2 Shift Registers P-13/41 2012/6/11 Serial Addition: Slower but requiring less equipment Shift ontrol lock Serial Input Shift Register A Shift Register B x y z FA S Q R Register A + Register B = Register A + (Augend) (Addend) (Sum) lear

6.2 Shift Registers P-14/41 2012/6/11 Second Form of Serial Adder: Implemented with JK FF State able for Serial Adder Present Next Flip-Flop State Inputs State Output Input Q( in ) x y Q( out ) S J Q K Q 0 0 0 0 0 0 X 0 0 1 0 1 0 X 0 1 0 0 1 0 X 0 1 1 1 0 1 X 1 0 0 0 1 X 1 1 0 1 1 0 X 0 1 1 0 1 0 X 0 1 1 1 1 1 X 0 Simplified Equation J Q = xy K Q = x y = (x+y) S = x + y + Q

6.2 Shift Registers P-15/41 2012/6/11 Second Form of Serial Adder: ircuit iagram Shift ontrol lock Shift Register A x S Serial Input Shift Register B y J Q ( in/out ) K lear

6.2 Shift Registers P-16/41 2012/6/11 General Shift Register 1. A clear control to clear the register to 0 2. A clock input to synchronize the operations 3. A shift-right control to enable the shift right operation and the serial input and output lines associated with the shift right 4. A shift-left control to enable the shift left operation and the serial input and output lines associated with the shift left 5. A parallel-load control to enable a parallel load transfer and n input lines associated with the parallel transfer 6. n parallel output lines 7. A control state that leaves the information in the register unchanged in the presence of the clock

6.2 Shift Registers P-17/41 2012/6/11 lassification of Shift Register 1. Unidirectional Shift Register: A register capable of shifting in one direction 2. Bidirectional Shift Register: A register can shift in both directions 3. Universal Shift Register: Bidirectional shift register + parallel load capability

6.2 Shift Registers P-18/41 2012/6/11 4-bit Universal Shift Register ircuit iagram A 3 A 2 A 1 A 0 Function able Mode ontrol Register S 1 S 0 Operation 0 0 No hange 0 1 Shift Right 1 0 Shift Left 1 1 Parallel Load lear lock S 1 S 0 4 1 MUX 3 2 1 0 4 1 MUX 3 2 1 0 4 1 MUX 3 2 1 0 4 1 MUX 3 2 1 0 Serial Input for Shift-right Serial Input for Shift-left I 3 I 2 I 1 I 0 Parallel Inputs

6.3 Ripple ounters P-19/41 2012/6/11 6.1 Registers 6.2 Shift Registers 6.3 Ripple ounters 6.4 Synchronous ounters 6.5 Other ounters 6.6 HL for Registers and ounters

6.3 Ripple ounters P-20/41 2012/6/11 ounters 1. ounter: A register that goes through a prescribed sequence of status upon the application of input pulses is called a counter. 2. he input pulses may be clock pulse or they may originate from some external source and may occur at a fixed interval of time or at random. 3. he sequence of status may follow the binary sequence is called a binary counter. 4. An n-bit binary counter consists of n flip-flop and can count in binary from 0 to 2 n -1.

6.3 Ripple ounters P-21/41 2012/6/11 Ripple ounters vs. Synchronous ounters 1. Ripple ounters: he flip-flop output transition servers as a source for triggering other flip-flops. he inputs of some or all flip-flops are triggered not by the common clock pluses. 2. Synchronous ounters: he input of all flip-flops receive the common clock.

6.3 Ripple ounters P-22/41 2012/6/11 4-Bit Binary Ripple ounters Binary ounter with -FF Binary ounter with -FF ount R A 0 ount R A 0 Ripple Propagation Binary ounter Sequence A 1 A 1 A 3 A 2 A 1 A 0 R R A 2 R R A 2 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0 A 3 A 3 Negative Edge rigger R R Reset 1 Reset

ount Sequence 6.3 Ripple ounters P-23/41 2012/6/11 4-Bit Binary Ripple ount-own ounters Binary ounter with -FF Binary ounter with -FF ount R A 0 ount R A 0 Ripple Propagation Binary ounter Sequence A 1 A 1 A 3 A 2 A 1 A 0 R R A 2 R R A 2 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0 A 3 A 3 R R Positive Edge rigger Reset 1 Reset

6.3 Ripple ounters P-24/41 2012/6/11 B Ripple ounters State iagram of a ecimal B ounter B ounter Sequence 0000 0001 0010 0011 0100 1001 1000 0111 0110 0101 rigger Higher igit If Q 8 = 1 then Q 2 = 0 2 Q 8 Q 4 Q 2 Q 1 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0 1 0 0 1 4 If (Q 2 or Q 4 = 0) and Q 1 then Q 8 Remain at 0 If (Q 2 and Q 4 = 1 and Q 1 ) then Q 8 omplement 3 1

6.3 Ripple ounters P-25/41 2012/6/11 ircuit of B Ripple ounters B ounter ount J K Q 1 J K J K Q 2 Q 4 Q 8 Q 4 Q 2 Q 1 B ounter 3 ecimal B ounter Q 8 Q 4 Q 2 Q 1 B ounter Q 8 Q 4 Q 2 Q 1 B ounter 10 2 igit 10 1 igit 10 0 igit J K Q 8 1

6.4 Synchronous ounters P-26/41 2012/6/11 6.1 Registers 6.2 Shift Registers 6.3 Ripple ounters 6.4 Synchronous ounters 6.5 Other ounters 6.6 HL for Registers and ounters

6.4 Synchronous ounters P-27/41 2012/6/11 Review of Ripple and Synchronous ounters 1. Ripple ounters: he flip-flop output transition servers as a source for triggering other flip-flops. he inputs of some or all flip-flops are triggered not by the common clock pluses. 2. Synchronous ounters: he input of all flip-flops receive the common clock.

6.4 Synchronous ounters P-28/41 2012/6/11 State ransition of 4-bit Binary ounters A 3 A 2 A 1 A 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0 1 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1

6.4 Synchronous ounters P-29/41 2012/6/11 ount Enable (E) J K A 0 A 0 and E =1 J K A 1 If (A 0 and E) =1 and lcok hen A 1 = A 1 4-Bit Synchronous Binary ounters J K A 2 A 0 ~A 2 and E =1 J K A 3 If (A 0 ~A 2 and E) =1 and lcok hen A 3 = A 3 o Next Stage lock

ount Sequence 6.4 Synchronous ounters P-30/41 2012/6/11 State ransition of 4-bit Binary own ounters A 3 A 2 A 1 A 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0 1 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1 A 0

6.4 Synchronous ounters P-31/41 2012/6/11 Up own A 0 4-bit Binary Up- own ounters A 1 A 2 Function able Up own Function 0 0 No hange 0 1 own ount 1 0 Up ount 1 1 Up ount A 3 lock

6.4 Synchronous ounters P-32/41 2012/6/11 B ounters Excitation able Q(t) Q(t+1) Present State Next State Output Flip-Flop Inputs Q 8 Q 4 Q 2 Q 1 Q 8 Q 4 Q 2 Q 1 y Q 8 Q 4 Q 2 Q 1 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0 0 1 0 0 0 0 1 1 0 0 1 0 0 0 1 1 0 0 0 0 1 0 0 1 1 0 1 0 0 0 0 1 1 1 0 1 0 0 0 1 0 1 0 0 0 0 1 0 1 0 1 0 1 1 0 0 0 0 1 1 0 1 1 0 0 1 1 1 0 0 0 0 1 0 1 1 1 1 0 0 0 0 1 1 1 1 1 0 0 0 1 0 0 1 0 0 0 0 1 1 0 0 1 0 0 0 0 1 1 0 0 1 K-Map Q1 = 1 Q2 = Q 8 Q 1 Q4 = Q 2 Q 1 Q8 = Q 8 Q 1 + Q 4 Q 2 Q 1 y = Q 8 Q 1

6.4 Synchronous ounters P-33/41 2012/6/11 ount 4-Bit Binary ounter with Parallel Load Load 1 0 1 I 0 J K A 0 I 1 J K A 1 Function able lear lock Load ount Function I 2 J K A 2 0 X X X lear to 0 1 1 X load Inputs 1 0 1 Up ount 1 0 0 No hange I 3 J K A 3 lear lock arry- Output

6.4 Synchronous ounters P-34/41 2012/6/11 Implementation B ounters Using ounters with Parallel Load ount to 9 Load 0 After ount to 9 lear to 0 A 3 A 2 A 1 A 0 A 3 A 2 A 1 A 0 Load ounter with Parallel Load ount=1 lear=1 lock lear ounter with Parallel Load ount=1 Load=0 lock Inputs=0 Input have no effect

6.5 Other ounters P-35/41 2012/6/11 6.1 Registers 6.2 Shift Registers 6.3 Ripple ounters 6.4 Synchronous ounters 6.5 Other ounters 6.6 HL for Registers and ounters

6.5 Other ounters P-36/41 2012/6/11 ounter with Unused States Sate able Present Next State Stare Flip-Flop Inputs A B A B J A K A J B K B J K 0 0 0 0 0 1 0 X 0 X 1 X 0 0 1 0 1 0 0 X 1 X X 1 0 1 0 1 0 0 1 X X 1 0 X 1 0 0 1 0 1 X 0 0 X 1 X 1 0 1 1 1 0 X 0 1 X X 1 1 1 0 0 0 0 X 1 X 1 0 X Boolean Function J A =B K A =B J B = K B =1 J =B K =1

6.5 Other ounters P-37/41 2012/6/11 omplement omplement ounter with Unused States (ontinued) 1 1 1 1 J A K 1 J B K 0 Unused State 111 000 001 110 010 101 1 0 Reset 1 J K 1 100 011 lock Unused State

6.5 Other ounters P-38/41 2012/6/11 4-Bit Ring ounter iming Sequence Shift Right 0 1 2 3 lock Ring ounter with Initial Value = 0 0 0 1 2 3 1 2 2X4 ecoder 3 ount Enable 2-Bit ounter Ring ounter Implemented by ecoder

6.5 Other ounters P-39/41 2012/6/11 4-Bit Johnson ounter: k-bit ounter with 2k states 4-Stage Switch-ail Ring ounter A B E E lock ount Sequence and Required ecoding Sequence Flip-Flop Outputs AN gate required Number A B E for output 1 0 0 0 0 A E 2 1 0 0 0 A B 3 1 1 0 0 B 4 1 1 1 0 E 5 1 1 1 1 A E 6 0 1 1 1 A B 7 0 0 1 1 B 8 0 0 0 1 E

6.6 HL for Registers and ounters P-40/41 2012/6/11 6.1 Registers 6.2 Shift Registers 6.3 Ripple ounters 6.4 Synchronous ounters 6.5 Other ounters 6.6 HL for Registers and ounters

6.6 HL for Registers and ounters P-41/41 2012/6/11 Referred to A