Chapter 4. Sequential Logic Circuits

Similar documents
Sequential Logic Circuits

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

Chapter 5 Synchronous Sequential Logic

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

Synchronous Sequential Logic

Sequential Circuit Analysis

Sequential vs. Combinational

Latches. October 13, 2003 Latches 1

Problem Set 9 Solutions

ELCT201: DIGITAL LOGIC DESIGN

Digital Logic Design - Chapter 4

Lecture 17: Designing Sequential Systems Using Flip Flops

Topic 8: Sequential Circuits

Lecture 14: State Tables, Diagrams, Latches, and Flip Flop

Lecture 7: Logic design. Combinational logic circuits

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

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

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

Sequential Circuits Sequential circuits combinational circuits state gate delay

Introduction to Digital Logic

CS/COE1541: Introduction to Computer Architecture. Logic Design Review. Sangyeun Cho. Computer Science Department University of Pittsburgh

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING BENG (HONS) ELECTRICAL & ELECTRONICS ENGINEERING EXAMINATION SEMESTER /2017

Sample Test Paper - I

CPE100: Digital Logic Design I

Logic design? Transistor as a switch. Layered design approach. CS/COE1541: Introduction to Computer Architecture. Logic Design Review.

I. Motivation & Examples

I. Motivation & Examples

EET 310 Flip-Flops 11/17/2011 1

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

Clocked Synchronous State-machine Analysis

Lecture 10: Synchronous Sequential Circuits Design

Topic 8: Sequential Circuits. Bistable Devices. S-R Latches. Consider the following element. Readings : Patterson & Hennesy, Appendix B.4 - B.

Chapter 7 Sequential Logic

Konstruktion av Vippor och Latchar

Time Allowed 3:00 hrs. April, pages

CS/COE0447: Computer Organization

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

Chapter 7. Sequential Circuits Registers, Counters, RAM

Chapter 14 Sequential logic, Latches and Flip-Flops

Topics. CMOS Design Multi-input delay analysis. John A. Chandy Dept. of Electrical and Computer Engineering University of Connecticut

DIGITAL LOGIC CIRCUITS

Philadelphia University Student Name: Student Number:

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

Using the NOT realization from the NAND, we can NOT the output of the NAND gate making it a NOT NOT AND or simply an AND gate.

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

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

Unit 7 Sequential Circuits (Flip Flop, Registers)

Memory Elements I. CS31 Pascal Van Hentenryck. CS031 Lecture 6 Page 1

Sequential Synchronous Circuit Analysis

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

EE 209 Spiral 1 Exam Solutions Name:

Computer Science Final Examination Friday December 14 th 2001

ALU A functional unit

CSE140: Components and Design Techniques for Digital Systems. Midterm Information. Instructor: Mohsen Imani. Sources: TSR, Katz, Boriello & Vahid

Week-5. Sequential Circuit Design. Acknowledgement: Most of the following slides are adapted from Prof. Kale's slides at UIUC, USA.

P2 (10 points): Given the circuit below, answer the following questions:

Synchronous Sequential Circuit

Digital Design. Sequential Logic

CS/COE0447: Computer Organization

Lecture 7: Sequential Networks

Analysis of Clocked Sequential Circuits

ELCT201: DIGITAL LOGIC DESIGN

Sequential Logic Worksheet

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

Analysis and Design of Sequential Circuits: Examples

Digital Circuits. 1. Inputs & Outputs are quantized at two levels. 2. Binary arithmetic, only digits are 0 & 1. Position indicates power of 2.

Chapter #6: Sequential Logic Design

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

3. Complete the following table of equivalent values. Use binary numbers with a sign bit and 7 bits for the value

Boolean Algebra and Digital Logic 2009, University of Colombo School of Computing

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

DIGITAL LOGIC CIRCUITS

CS61C : Machine Structures

Reg. No. Question Paper Code : B.E./B.Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER Second Semester. Computer Science and Engineering

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

Lecture 13: Sequential Circuits, FSM

CS61C : Machine Structures

Experiment 9 Sequential Circuits

Different encodings generate different circuits

S.Y. Diploma : Sem. III [DE/ED/EI/EJ/EN/ET/EV/EX/IC/IE/IS/IU/MU] Principles of Digital Techniques

Sequential Logic (3.1 and is a long difficult section you really should read!)

Dr. Nicola Nicolici COE/EE2DI4 Midterm Test #2 Nov 22, 2006

Fundamentals of Boolean Algebra

Mealy & Moore Machines

UNIVERSITI TENAGA NASIONAL. College of Information Technology

Overview of Chapter 4

Preparation of Examination Questions and Exercises: Solutions

Schedule. ECEN 301 Discussion #25 Final Review 1. Date Day Class No. 1 Dec Mon 25 Final Review. Title Chapters HW Due date. Lab Due date.

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

Sequential Circuit Design

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

EE 209 Logic Cumulative Exam Name:

Integrated Circuits & Systems

Digital Circuits ECS 371

PGT104 Digital Electronics. PGT104 Digital Electronics

Unit II Chapter 4:- Digital Logic Contents 4.1 Introduction... 4

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

Chapter 13. Clocked Circuits SEQUENTIAL VS. COMBINATIONAL CMOS TG LATCHES, FLIP FLOPS. Baker Ch. 13 Clocked Circuits. Introduction to VLSI

Lecture 3 Review on Digital Logic (Part 2)

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

Transcription:

Chapter 4 Sequential Logic Circuits 1

2 Chapter 4 4 1 The defining characteristic of a combinational circuit is that its output depends only on the current inputs applied to the circuit. The output of a sequential circuit, on the other hand, depends both on the current input values as well as the past inputs. This dependence on past inputs gives the property of memory for sequential circuits.

Chapter 4 3 4 2 The sequence of past inputs is encoded into a set of variables. The feedback circuit stores this information and feeds it to the input.

4 Chapter 4 4 3 When the propagation delay is zero, theoretically, signals at the input and output of the inverter change at the same time. This means the output of the AND gate is always zero.

Chapter 4 5 4 4 When S and R are 1, both outputs are forced to take 0. To see why this combination is undesirable, consider what happens when S and R inputs are changed from S = R = 1 to S = R = 0. It is only in theory that we can assume that both inputs change simultaneously. In practice, there is always some finite time difference between the two signal changes. If the S input goes low earlier than the R signal, the sequence of input changes is SR = 11! 01! 00. Because of the intermediate SR = 01, the output will be =0and = 1. If, on the other hand, the R signal goes low before the S signal does, the sequence of input changes is SR = 11! 10! 00. Because the transition goes through the SR = 10 intermediate, the output will be = 1 and = 0. Thus, when the input changes from 11 to 00, the output is indeterminate. This is the reason for avoiding this.

6 Chapter 4 4 5 The truth table is shown below: S R 0 0 0 1 1 0 1 1 n+1 1 0 1 n It can se seen from this truth table that is not exactly the same as that given for the NOR gate version. However, it is closely related in the sense it is the dual of the other truth table.

Chapter 4 7 4 6 The D-latch avoids the SR = 11 input combination by using a single inverter to provide only complementary inputs at S and R inputs of the clocked SR latch as shown below: S CP R Clock

8 Chapter 4 4 7 Flip-flops are edge-triggered devices whereas latches are level sensitive.

Chapter 4 9 4 8 The circuit is shown below: 0 1 2 3 High S S S S Clock CP CP CP CP Reset C FF0 C FF1 C FF2 C High FF3

10 Chapter 4 4 9 The circuit is shown below: 0 1 2 3 4 High High High High Clock CP CP CP CP CP High

Chapter 4 11 4 10 The circuit is shown below: D C B A Clock C C C C High

12 Chapter 4 4 11 We need four flip-flops to implement this four-bit counter. The design table is shown below: Next flip-flop inputs A B C D A B C D A A B B C C D D 0 0 0 0 0 0 1 0 0 d 0 d 1 d 0 d 0 0 0 1 d d d d d d d d 0 0 1 0 0 1 0 0 0 d 1 d d 1 0 d 0 0 1 1 d d d d d d d d 0 1 0 0 0 1 1 0 0 d d 0 1 d 0 d 0 1 0 1 d d d d d d d d 0 1 1 0 1 0 0 0 1 d d 1 d 1 0 d 0 1 1 1 d d d d d d d d 1 0 0 0 1 0 1 0 d 0 0 d 1 d 0 d 1 0 0 1 d d d d d d d d 1 0 1 0 1 1 0 0 d 0 1 d d 1 0 d 1 0 1 1 d d d d d d d d 1 1 0 0 1 1 1 0 d 0 d 0 1 d 0 d 1 1 0 1 d d d d d d d d 1 1 1 0 0 0 0 0 d 1 d 1 d 1 0 d 1 1 1 1 d d d d d d d d Using the arnaugh map method, we can get the simplified logical expressions for the and inputs as follows: A = BC; A = BC B = C, B = C C =1; C =1 D =0; D = d Notice that the D flip-flop is not necessary as its output is always 0. The circuit is shown below:

Chapter 4 13 D C B A C C C High Clock

14 Chapter 4 4 12 We need three flip-flops to implement this four-bit counter. The design table is shown below: Next flip-flop inputs A B C A B C A A B B C C 0 0 0 0 0 1 0 d 0 d 1 d 0 0 1 0 1 1 0 d 1 d d 0 0 1 0 1 1 0 1 d d 0 0 d 0 1 1 0 1 0 0 d d 0 d 1 1 0 0 0 0 0 d 1 0 d 0 d 1 0 1 1 0 0 d 0 0 d d 1 1 1 0 1 1 1 d 0 d 0 1 d 1 1 1 1 0 1 d 0 d 1 d 0 Using the arnaugh map method, we can get the simplified logical expressions for the and inputs as follows: A = BC; B = A C; A = B C B = AC C = A B + AB; The circuit is shown below: C = A B + A B C B A C C C Clock

Chapter 4 15 4 13 The table is shown below: Next Output X=0 X=1 X=0 X=1 S0 S0 S1 0 1 S1 S1 S0 1 0 Simple assignment: S0 = 0 and S1 = 1. Next flip-flop inputs A X A Y A A 0 0 0 0 0 d 0 1 1 1 1 d 1 0 1 1 d 0 1 1 0 0 d 1 Using the arnaugh map method, we can get the simplified logical expressions for the and inputs and the output Y as follows: A = X; A = X Y = A X + A X The circuit is shown below: Y Clock C X

16 Chapter 4 4 14 The arnaugh map for the assignment is shown below: A BC 00 01 11 10 0 S0 S3 S5 1 S1 S6 S4 S2 Final assignment is shown below: State A B C S0 = 0 0 0 S1 = 1 0 0 S2 = 1 1 0 S3 = 0 0 1 S4 = 1 1 1 S5 = 0 1 0 S6 = 1 0 1 The design table is shown below:

Chapter 4 17 Next flip-flop inputs A B C X A B C Y A A B B C C 0 0 0 0 1 1 0 0 1 d 1 d 0 d 0 0 0 1 1 0 0 0 1 d 0 d 0 d 0 0 1 0 1 1 1 0 1 d 1 d d 0 0 0 1 1 0 0 1 0 0 d 0 d d 0 0 1 0 0 1 1 1 1 1 d d 0 1 d 0 1 0 1 0 0 1 0 0 d d 1 1 d 1 0 0 0 1 1 1 0 d 0 1 d 1 d 1 0 0 1 0 0 1 0 d 1 0 d 1 d 1 0 1 0 1 0 1 0 d 0 0 d d 0 1 0 1 1 0 1 0 1 d 1 1 d d 1 1 1 0 0 1 0 1 0 d 0 d 1 1 d 1 1 0 1 0 1 0 0 d 1 d 0 0 d 1 1 1 0 1 0 1 1 d 0 d 1 d 0 1 1 1 1 0 1 0 0 d 1 d 0 d 1 Using the arnaugh map method, we can get the simplified logical expressions for the and inputs as follows: A = X + B C; A = X B = C X + A X + ACX; B = A X + A X C = A B + A B + A X; C = AX The Y output logical expression is: Y = A B CX + BCX + A B X It is straightforward to complete the solution using these expressions (similar to what is shown in Figures 4.27 and 4.28).

18 Chapter 4 4 15 We can use the same circuit; all we have to do is invert the input.

Chapter 4 19 4 16 The diagram is shown below: You can see from this diagram that the design remains the same as that for the pattern recognition example on page 134 (see Example 2). However, we need to modify the output Y. In the Y column in Table 4.8, the last two 1s should be zero. This gives us the following expression for the only 1 in that column: Y = A BCX. The implementation is as shown in Figure 4.28 (substitute the following circuit for the Y logic circuit given in Figure 4.8b): A B C Y X

20 Chapter 4 4 17 The diagram is shown below: Next Output X=0 X=1 X=0 X=1 S0 S1 S0 0 0 S1 S1 S2 0 0 S2 S0 S0 1 0 Heuristic 1 groupings: (S0, S1) (S0, S2) Heuristic 2 groupings: (S0, S1) (S0, S2) These groupings suggest the following assignment: A B 0 1 0 S0 S1 1 S2 Final assignment is shown below: State A B S0 = 0 0 S1 = 0 1 S2 = 1 0 The design table is shown below:

Chapter 4 21 Next flip-flop inputs A B X A B Y A A B B 0 0 0 0 1 0 0 d 1 d 0 0 1 0 0 0 0 d 0 d 0 1 0 0 1 0 0 d d 0 0 1 1 1 0 0 1 d d 1 1 0 0 0 0 1 d 1 0 d 1 0 1 0 0 0 d 1 0 d Using the arnaugh map method, we can get the simplified logical expressions for the and inputs as follows: A = BX; A =1 B = A X; B = X The Y output logical expression is: Y = A X The implementation is shown below: C B C A Y X High Clock

22 Chapter 4 4 18 The diagram is shown below: 01/0 01/0 01/0 01/0 01/0 01/1 00/0 S0 S1 S2 S3 S4 S5 00/0 00/0 00/0 00/0 00/0 10/1 10/0 10/0 10/0 10/1 10/0 The table is shown below: Next Output Z XY=00 XY=01 XY=10 XY = 00 XY = 01 XY = 10 S0 S0 S1 S2 0 0 0 S1 S1 S2 S3 0 0 0 S2 S2 S3 S4 0 0 0 S3 S3 S4 S5 0 0 0 S4 S4 S5 S5 0 1 1 S5 S5 S1 S2 0 0 0 Heuristic 1 groupings: (S0, S5) 2 (S3, S4) Heuristic 2 groupings: (S1, S2) 3 (S2, S3) 2 (S4, S5) 2 (S3, S4) 2 Heuristic 3 groupings: None These groupings suggest the following assignment:

Chapter 4 23 A BC 00 01 11 10 0 S0 S3 S2 1 S5 S4 S1 Final assignment is shown below: State A B C S0 = 0 0 0 S1 = 1 1 1 S2 = 0 1 1 S3 = 0 0 1 S4 = 1 0 1 S5 = 1 0 0 The design table is shown below:

24 Chapter 4 Next flip-flop inputs A B C XY A B C Z A A B B C C 0 0 0 00 0 0 0 0 0 d 0 d 0 d 0 0 0 01 1 1 1 0 1 d 1 d 1 d 0 0 0 10 0 1 1 0 0 d 1 d 1 d 0 0 1 00 0 0 1 0 0 d 0 d d 0 0 0 1 01 1 0 1 0 1 d 0 d d 0 0 0 1 10 1 0 0 0 1 d 0 d d 1 0 1 1 00 0 1 1 0 0 d d 0 d 0 0 1 1 01 0 0 1 0 0 d d 1 d 0 0 1 1 10 1 0 1 0 1 d d 1 d 0 1 0 0 00 1 0 0 0 d 0 0 d 0 d 1 0 0 01 1 1 1 0 d 0 1 d 1 d 1 0 0 10 0 1 1 0 d 1 1 d 1 d 1 0 1 00 1 0 1 0 d 0 0 d d 0 1 0 1 01 1 0 0 1 d 0 0 d d 1 1 0 1 10 1 0 0 1 d 0 0 d d 1 1 1 1 00 1 1 1 0 d 0 d 0 d 0 1 1 1 01 0 1 1 0 d 1 d 0 d 0 1 1 1 10 0 0 1 0 d 1 d 1 d 0 Using the arnaugh map method, we can get the simplified logical expressions for the and inputs as follows: A = B Y + CX; A = BX + BY + C X B = C X + C Y; B = X + A Y C = X + Y; C = B CXY + A B C X Y The Z output logical expression is: Z = A B C (X Y + X Y) It is straightforward to complete the solution using these expressions (similar to what is shown in

Chapter 4 25 Figures 4.27 and 4.28).

26 Chapter 4 4 19 The diagram is shown below: 01/00 01/00 01/00 01/00 01/00 01/00 01/01 00/00 S0 S1 S2 S3 S4 S5 S6 00/00 00/00 00/00 00/00 00/00 00/00 10/00 10/00 10/00 10/10 10/11 10/00 10/00 Note that the output is represented by two bits: CZ. The C bit indicates change due and the Z bit indicates activation of the selection circuit (as in the last exercise). The table is shown below: Next Output CZ XY=00 XY=01 XY=10 XY = 00 XY = 01 XY = 10 S0 S0 S1 S2 00 00 00 S1 S1 S2 S3 00 00 00 S2 S2 S3 S4 00 00 00 S3 S3 S4 S5 00 00 00 S4 S4 S5 S5 00 01 11 S5 S5 S1 S2 00 00 00 S6 S6 S1 S2 00 00 00 Heuristic 1 groupings: (S0, S5, S6) 2 (S3, S4) Heuristic 2 groupings: (S1, S2) 4 (S2, S3) 2 (S4, S5) 2 (S3, S4) 2 Heuristic 3 groupings: None These groupings suggest the following assignment:

Chapter 4 27 A BC 00 01 11 10 0 S0 S3 S2 1 S5 S4 S1 S6 Final assignment is shown below: State A B C S0 = 0 0 0 S1 = 1 1 1 S2 = 0 1 1 S3 = 0 0 1 S4 = 1 0 1 S5 = 1 0 0 S6 = 1 1 0 The design table is shown below:

28 Chapter 4 Next flip-flop inputs A B C XY A B C CZ A A B B C C 0 0 0 00 0 0 0 00 0 d 0 d 0 d 0 0 0 01 1 1 1 00 1 d 1 d 1 d 0 0 0 10 0 1 1 00 0 d 1 d 1 d 0 0 1 00 0 0 1 00 0 d 0 d d 0 0 0 1 01 1 0 1 00 1 d 0 d d 0 0 0 1 10 1 0 0 00 1 d 0 d d 1 0 1 1 00 0 1 1 00 0 d d 0 d 0 0 1 1 01 0 0 1 00 0 d d 1 d 0 0 1 1 10 1 0 1 00 1 d d 1 d 0 1 0 0 00 1 0 0 00 d 0 0 d 0 d 1 0 0 01 1 1 1 00 d 0 1 d 1 d 1 0 0 10 0 1 1 00 d 1 1 d 1 d 1 0 1 00 1 0 1 00 d 0 0 d d 0 1 0 1 01 1 0 0 01 d 0 0 d d 1 1 0 1 10 1 0 0 11 d 0 0 d d 1 1 1 0 00 1 1 0 00 d 0 d 0 0 d 1 1 0 01 1 1 1 00 d 0 d 0 1 d 1 1 0 10 0 1 1 00 d 1 d 0 1 d 1 1 1 00 1 1 1 00 d 0 d 0 d 0 1 1 1 01 0 1 1 00 d 1 d 0 d 0 1 1 1 10 0 0 1 00 d 1 d 1 d 0 Using the arnaugh map method, we can get the simplified logical expressions for the and inputs as follows: A = B Y + CX; B = C X + C Y; A = BX + BCY + C X B = X + A Y

Chapter 4 29 C = X + Y; C = B CXY + A B C X Y The C and Z output logical expressions are: C = ABC X Y Z = A B C (X Y + X Y) It is straightforward to complete the solution using these expressions (similar to what is shown in Figures 4.27 and 4.28).