Sequential Logic Circuits

Similar documents
Chapter 4. Sequential Logic Circuits

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

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

Chapter 5 Synchronous Sequential Logic

Sequential Circuit Analysis

Synchronous Sequential Logic

Sequential vs. Combinational

Latches. October 13, 2003 Latches 1

Problem Set 9 Solutions

ELCT201: DIGITAL LOGIC DESIGN

Lecture 17: Designing Sequential Systems Using Flip Flops

Topic 8: Sequential Circuits

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

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

Digital Logic Design - Chapter 4

Sequential Circuits Sequential circuits combinational circuits state gate delay

Introduction to Digital Logic

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

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

Lecture 7: Logic design. Combinational logic circuits

I. Motivation & Examples

I. Motivation & Examples

EET 310 Flip-Flops 11/17/2011 1

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

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

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

Konstruktion av Vippor och Latchar

CPE100: Digital Logic Design I

Sample Test Paper - I

Chapter 14 Sequential logic, Latches and Flip-Flops

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

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

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.

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

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

Unit 7 Sequential Circuits (Flip Flop, Registers)

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

ALU A functional unit

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

Lecture 7: Sequential Networks

Time Allowed 3:00 hrs. April, pages

CS/COE0447: Computer Organization

DIGITAL LOGIC CIRCUITS

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

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

ELCT201: DIGITAL LOGIC DESIGN

Sequential Logic Worksheet

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

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

Philadelphia University Student Name: Student Number:

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

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

Clocked Synchronous State-machine Analysis

CS61C : Machine Structures

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

Lecture 13: Sequential Circuits, FSM

CS61C : Machine Structures

Different encodings generate different circuits

Computer Science Final Examination Friday December 14 th 2001

CS/COE0447: Computer Organization

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

Mealy & Moore Machines

Overview of Chapter 4

Preparation of Examination Questions and Exercises: Solutions

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

EE 209 Logic Cumulative Exam Name:

Integrated Circuits & Systems

Digital Circuits ECS 371

Chapter 7. Sequential Circuits Registers, Counters, RAM

PGT104 Digital Electronics. PGT104 Digital Electronics

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)

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

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

DIGITAL LOGIC CIRCUITS

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

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

ELEN Electronique numérique

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

Lecture 13: Sequential Circuits, FSM

Clocked Sequential Circuits UNIT 13 ANALYSIS OF CLOCKED SEQUENTIAL CIRCUITS. Analysis of Clocked Sequential Circuits. Signal Tracing and Timing Charts

Timing Constraints in Sequential Designs. 63 Sources: TSR, Katz, Boriello & Vahid

Lecture 8: Sequential Networks and Finite State Machines

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

University of Toronto Faculty of Applied Science and Engineering Edward S. Rogers Sr. Department of Electrical and Computer Engineering

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

Gates and Flip-Flops

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) State any two Boolean laws. (Any 2 laws 1 mark each)

UNIT 8A Computer Circuitry: Layers of Abstraction. Boolean Logic & Truth Tables

Fundamentals of Boolean Algebra

Finite State Machine. By : Ali Mustafa

Transcription:

Chapter 4 Sequential Logic Circuits 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. 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 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 ND gate is always zero. 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. 4 5 The truth table is shown below: S R 0 0 0 1 1 0 1 1 n+1 1 0 1 n 1

2 Chapter 4 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. 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 R Clock 4 7 Flip-flops are edge-triggered devices whereas latches are level sensitive. 4 8 The circuit is shown below: 0 1 2 3 S S S S Clock Reset C FF0 C FF1 C FF2 C FF3 4 9 The circuit is shown below: 0 1 2 3 4 Clock 4 10 The circuit is shown below:

Chapter 4 3 D C B Clock C C C C 4 11 We need four flip-flops to implement this four-bit counter. The design table is shown below: Next flip-flop inputs B C D B C D 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

4 Chapter 4 Using the arnaugh map method, we can get the simplified logical expressions for the and inputs as follows: = BC; = 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: D C B C C C Clock 4 12 We need three flip-flops to implement this four-bit counter. The design table is shown below: Next flip-flop inputs B C B C 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:

Chapter 4 5 = BC; = B C B = C; B = C C = B + B; C = B + B The circuit is shown below: C B C C C Clock 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 X Y 0 0 0 0 0 d 0 1 1 1 1 d 1 0 1 1 d 0 1 1 0 0 d 1

6 Chapter 4 Using the arnaugh map method, we can get the simplified logical expressions for the and inputs and the output Y as follows: = X; = X Y = X + X The circuit is shown below: Y Clock C X 4 14 The arnaugh map for the assignment is shown below: BC 00 01 11 10 0 S0 S3 S5 1 S1 S6 S4 S2 Final assignment is shown below: State 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 7 Next flip-flop inputs B C X B C Y 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: = X + B C; = X B = C X + X + CX; C = B + B + X; B = X + X C = X The Y output logical expression is: Y = B CX + BCX + B X It is straightforward to complete the solution using these expressions (similar to what is shown in Figures 4.27 and 4.28). 4 15 We can use the same circuit; all we have to do is invert the input. 4 16 The diagram is shown below:

8 Chapter 4 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 = BCX. The implementation is as shown in Figure 4.28 (substitute the following circuit for the Y logic circuit given in Figure 4.8b): B C Y X 4 17 The diagram is shown below:

Chapter 4 9 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: B 0 1 0 S0 S1 1 S2 Final assignment is shown below: State B S0 = 0 0 S1 = 0 1 S2 = 1 0 The design table is shown below:

10 Chapter 4 Next flip-flop inputs B X B Y 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: = BX; =1 B = X; B = X The Y output logical expression is: Y = X The implementation is shown below: C B C Y X Clock 4 18 The diagram is shown below:

Chapter 4 11 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:

12 Chapter 4 BC 00 01 11 10 0 S0 S3 S2 1 S5 S4 S1 Final assignment is shown below: State 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:

Chapter 4 13 Next flip-flop inputs B C XY B C Z 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: = B Y + CX; = BX + BY + C X B = C X + C Y; B = X + Y C = X + Y; C = B CXY + B C X Y The Z output logical expression is: Z = B C (X Y + X Y) It is straightforward to complete the solution using these expressions (similar to what is shown in

14 Chapter 4 Figures 4.27 and 4.28). 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

Chapter 4 15 Heuristic 3 groupings: None These groupings suggest the following assignment: BC 00 01 11 10 0 S0 S3 S2 1 S5 S4 S1 S6 Final assignment is shown below: State 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:

16 Chapter 4 Next flip-flop inputs B C XY B C CZ 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: = B Y + CX; B = C X + C Y; = BX + BCY + C X B = X + Y

Chapter 4 17 C = X + Y; C = B CXY + B C X Y The C and Z output logical expressions are: C = BC X Y Z = 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).