Unit 7 Sequential Circuits (Flip Flop, Registers)

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

Sample Test Paper - I

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

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

Sequential Logic Circuits

ELCT201: DIGITAL LOGIC DESIGN

PGT104 Digital Electronics. PGT104 Digital Electronics

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

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

Lecture 17: Designing Sequential Systems Using Flip Flops

Shift Register Counters

Chapter 4. Sequential Logic Circuits

CSE370 HW6 Solutions (Winter 2010)

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

Design of Sequential Circuits

Chapter 7. Sequential Circuits Registers, Counters, RAM

Latches. October 13, 2003 Latches 1

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

Philadelphia University Student Name: Student Number:


Chapter 14 Sequential logic, Latches and Flip-Flops

Digital Electronics Circuits 2017

CHW 261: Logic Design

Sequential Circuit Analysis

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

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

DE58/DC58 LOGIC DESIGN DEC 2014

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

EE 209 Logic Cumulative Exam Name:

EECS150 - Digital Design Lecture 18 - Counters

EECS150 - Digital Design Lecture 18 - Counters

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

SIR C.R.REDDY COLLEGE OF ENGINEERING ELURU DIGITAL INTEGRATED CIRCUITS (DIC) LABORATORY MANUAL III / IV B.E. (ECE) : I - SEMESTER

Combinatorial Logic Design Multiplexers and ALUs CS 64: Computer Organization and Design Logic Lecture #13

Vidyalankar S.E. Sem. III [INFT] Analog and Digital Circuits Prelim Question Paper Solution

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)

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

Topic 8: Sequential Circuits

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

Digital Circuits and Systems

Fundamentals of Digital Design

Integrated Circuits & Systems

MODEL ANSWER SUMMER 17 EXAMINATION Subject Title: Principles of Digital Techniques

PAST EXAM PAPER & MEMO N3 ABOUT THE QUESTION PAPERS:

COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

ESE 570: Digital Integrated Circuits and VLSI Fundamentals

Logic Design II (17.342) Spring Lecture Outline

DIGITAL LOGIC CIRCUITS

Dept. of ECE, CIT, Gubbi Page 1

EET 310 Flip-Flops 11/17/2011 1

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

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

State and Finite State Machines

Decoding A Counter. svbitec.wordpress.com 1

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

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

CPE100: Digital Logic Design I

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified)

on candidate s understanding. 7) For programming language papers, credit may be given to any other program based on equivalent concept.

Introduction to Digital Logic

Sequential Circuits Sequential circuits combinational circuits state gate delay

I. Motivation & Examples

Lecture 13: Sequential Circuits, FSM

Chapter 3 Digital Logic Structures

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

(Boolean Algebra, combinational circuits) (Binary Codes and -arithmetics)

Chapter 7 Sequential Logic

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

Arithme(c logic units and memory

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

Sequential vs. Combinational

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

Lecture 10: Synchronous Sequential Circuits Design

CMPE12 - Notes chapter 2. Digital Logic. (Textbook Chapters and 2.1)"

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

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

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

Digital Fundamentals

Lecture Outline. ESE 570: Digital Integrated Circuits and VLSI Fundamentals. Total Power. Energy and Power Optimization. Worksheet Problem 1

Digital Fundamentals

GMU, ECE 680 Physical VLSI Design

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

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

9/18/2008 GMU, ECE 680 Physical VLSI Design

I. Motivation & Examples

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

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

Digital Integrated Circuits A Design Perspective

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

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

Design at the Register Transfer Level

ELEN Electronique numérique

Jan M. Rabaey Anantha Chandrakasan Borivoje Nikolic. November Digital Integrated Circuits 2nd Sequential Circuits

EECS150 - Digital Design Lecture 25 Shifters and Counters. Recap

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

Lecture 13: Sequential Circuits, FSM

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

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

CpE358/CS381. Switching Theory and Logical Design. Summer

Transcription:

College of Computer and Information Sciences Department of Computer Science CSC 220: Computer Organization Unit 7 Sequential Circuits (Flip Flop, Registers)

2

SR Flip-Flop The SR flip-flop, also known as a SR Latch, can be considered as one of the most basic sequential logic circuit possible. This simple flip-flop is basically a one-bit memory bistable device It has two inputs, one which will SET the device (meaning the output = 1 ), and is labelled S and another which will RESET the device (meaning the output = 0 ), labelled R. 3

4

5

6

7

8

9

Give Examples 10

The output of the flip flop would always change on every pulse applied to this data input. To avoid this an additional input called the CLOCK or ENABLE input is used to isolate the data input from the flip flop s latching circuitry after the desired data has been stored. The effect is that D input condition is only copied to the output Q when the clock input is active. This then forms the basis of another sequential device called a D Flip Flop. 11

12

It can be seen from the frequency waveforms above, that by feeding back the output from Q to the input terminal D, the output pulses at Q have a frequency that are exactly one half ( ƒ/2 ) that of the input clock frequency, ( ƒ IN ). In other words the circuit produces frequency division as it now divides the input frequency by a factor of two (an octave) as Q = 1 once every two clock cycles. 13

D Flip Flops as Data Latches A data latch can be used as a device to hold or remember the data present on its data input, thereby acting a bit like a single bit memory device and IC s such as the TTL 74LS74 or the CMOS 4042 are available in Quad format exactly for this purpose. By connecting together four, 1-bit data latches so that all their clock inputs are connected together and are clocked at the same time, a simple 4-bit Data latch can be made as shown below. 14

Both the S and the R inputs of the previous SR bistable have now been replaced by two inputs called the J and K inputs, respectively after its inventor Jack Kilby. Then this equates to: J = S and K = R.

16

17

18

19

20 Regisrers

21

22 Dr Mohamed A Berbar

23

24

25

26 Dr Mohamed A Berbar

MUX 2-1 MUX 2-1 27

28

29 Serial-in to Serial-out (SISO) Shift Register

30

Serial Parallel MUX 2-1 MUX 2-1 31 Dr Mohamed A Berbar

32

33

S1 S0 0 0 0 1 No change Shift left (down 1 0 (Shift right (up 1 1 Parallel load 34 Dr Mohamed A Berbar

Other types of shift registers Logical shifts Standard shifts like we just saw. In the absence of a SI input, 0 occupies the vacant position. Left: 0110 -> 1100 Right: 0110 -> 0011 Circular shifts (also called ring counters or rotates) The shifted out bit wraps around to the vacant position. Left: 1001 -> 0011 Right: 1001 -> 1100 Switch-tail ring counter (aka Johnson counter) Similar to the ring counter, but the serial input is the complement of the serial output. Left: 1001 -> 0010 Right: 1001 -> 0100 Arithmetical shifts Left shifting is the same as a logical shift. Right shifting however maintains the MSB. Left: 0110 -> 1100 Right: 0110 -> 0011; 1011 -> 1101 35

Consider a 4-bit register with the following inputs parallel data inputs ABCD = 0011 left serial input LSI = 1 (This is the serial input for a left shift.) right serial input RSI = 0 (This is the serial input for a right shift.) The three control inputs S 2, S 1, S 0 operate as shown in the table to the right. Let the initial register content be Q A Q B Q C Q D = 0101 Example S2 S1 S0 Operation 0 0 0 left shift 0 0 1 circular left shift 0 1 0 right shift 0 1 1 circular right shift 1 0 0 no change 1 0 1 parallel load 1 1 0 complement each bit 1 1 1 set to 1111 36

Example S2 S1 S0 Q A Q B Q C Q D 0 1 0 1 0 0 0 0 0 1 0 1 0 1 0 0 0 1 1 1 0 1 1 1 1 0 0 0 1 37 1 0 S2 S1 S0 Operation 0 0 0 left shift 0 0 1 circular left shift 0 1 0 right shift 0 1 1 circular right shift 1 0 0 no change 1 0 1 parallel load 1 1 0 complement each bit 1 1 1 set to 1111 Other Information Parallel Load ABCD = 0011 LS1 1 RSI 0

Example S2 S1 S0 Q A Q B Q C Q D 0 1 0 1 0 0 0 0 0 1 0 1 0 1 0 0 0 1 1 1 0 1 1 1 1 0 0 0 1 1 0 38 S2 S1 S0 Operation 0 0 0 left shift 0 0 1 circular left shift 0 1 0 right shift 0 1 1 circular right shift 1 0 0 no change 1 0 1 parallel load 1 1 0 complement each bit 1 1 1 set to 1111 Other Information Parallel Load ABCD = 0011 LS1 1 RSI 0

Example S2 S1 S0 Q A Q B Q C Q D 0 1 0 1 0 0 0 0 0 1 0 1 0 1 0 0 0 1 1 1 0 1 1 1 1 0 0 0 1 39 1 0 1 0 1 1 S2 S1 S0 Operation 0 0 0 left shift 0 0 1 circular left shift 0 1 0 right shift 0 1 1 circular right shift 1 0 0 no change 1 0 1 parallel load 1 1 0 complement each bit 1 1 1 set to 1111 Other Information Parallel Load ABCD = 0011 LS1 1 RSI 0

Example S2 S1 S0 Q A Q B Q C Q D 0 1 0 1 0 0 0 0 0 1 0 1 0 1 0 0 0 1 1 1 0 1 1 1 1 0 0 0 1 40 1 0 1 0 1 1 0 1 1 1 S2 S1 S0 Operation 0 0 0 left shift 0 0 1 circular left shift 0 1 0 right shift 0 1 1 circular right shift 1 0 0 no change 1 0 1 parallel load 1 1 0 complement each bit 1 1 1 set to 1111 Other Information Parallel Load ABCD = 0011 LS1 1 RSI 0

Example S2 S1 S0 Q A Q B Q C Q D 0 1 0 1 0 0 0 0 0 1 0 1 0 1 0 0 0 1 1 1 0 1 1 1 1 0 0 0 1 1 0 41 1 0 1 1 0 1 1 1 0 0 1 1 S2 S1 S0 Operation 0 0 0 left shift 0 0 1 circular left shift 0 1 0 right shift 0 1 1 circular right shift 1 0 0 no change 1 0 1 parallel load 1 1 0 complement each bit 1 1 1 set to 1111 Other Information Parallel Load ABCD = 0011 LS1 1 RSI 0

Example S2 S1 S0 Q A Q B Q C Q D 0 1 0 1 0 0 0 0 0 1 0 1 0 1 0 0 0 1 1 1 0 1 1 1 1 0 0 0 1 42 1 0 1 0 1 1 0 1 1 1 0 0 1 1 0 0 1 1 S2 S1 S0 Operation 0 0 0 left shift 0 0 1 circular left shift 0 1 0 right shift 0 1 1 circular right shift 1 0 0 no change 1 0 1 parallel load 1 1 0 complement each bit 1 1 1 set to 1111 Other Information Parallel Load ABCD = 0011 LS1 1 RSI 0

Example S2 S1 S0 Q A Q B Q C Q D 0 1 0 1 0 0 0 0 0 1 0 1 0 1 0 0 0 1 1 1 0 1 1 1 1 0 0 0 1 43 1 0 1 0 1 1 0 1 1 1 0 0 1 1 0 0 1 1 1 0 0 1 S2 S1 S0 Operation 0 0 0 left shift 0 0 1 circular left shift 0 1 0 right shift 0 1 1 circular right shift 1 0 0 no change 1 0 1 parallel load 1 1 0 complement each bit 1 1 1 set to 1111 Other Information Parallel Load ABCD = 0011 LS1 1 RSI 0

Example S2 S1 S0 Q A Q B Q C Q D 0 1 0 1 0 0 0 0 0 1 0 1 0 1 0 0 0 1 1 1 0 1 1 1 1 0 0 0 1 44 1 0 1 0 1 1 0 1 1 1 0 0 1 1 0 0 1 1 1 0 0 1 0 0 1 1 S2 S1 S0 Operation 0 0 0 left shift 0 0 1 circular left shift 0 1 0 right shift 0 1 1 circular right shift 1 0 0 no change 1 0 1 parallel load 1 1 0 complement each bit 1 1 1 set to 1111 Other Information Parallel Load ABCD = 0011 LS1 1 RSI 0

Example S2 S1 S0 Q A Q B Q C Q D 0 1 0 1 0 0 0 0 0 1 0 1 0 1 0 0 0 1 1 1 0 1 1 1 1 0 0 0 1 45 1 0 1 0 1 1 0 1 1 1 0 0 1 1 0 0 1 1 1 0 0 1 0 0 1 1 1 1 1 1 S2 S1 S0 Operation 0 0 0 left shift 0 0 1 circular left shift 0 1 0 right shift 0 1 1 circular right shift 1 0 0 no change 1 0 1 parallel load 1 1 0 complement each bit 1 1 1 set to 1111 Other Information Parallel Load ABCD = 0011 LS1 1 RSI 0

Example S2 S1 S0 Q A Q B Q C Q D 0 1 0 1 0 0 0 0 0 1 0 1 0 1 0 0 0 1 1 1 0 1 1 1 1 0 0 0 1 46 1 0 1 0 1 1 0 1 1 1 0 0 1 1 0 0 1 1 1 0 0 1 0 0 1 1 1 1 1 1 1 1 1 1 S2 S1 S0 Operation 0 0 0 left shift 0 0 1 circular left shift 0 1 0 right shift 0 1 1 circular right shift 1 0 0 no change 1 0 1 parallel load 1 1 0 complement each bit 1 1 1 set to 1111 Other Information Parallel Load ABCD = 0011 LS1 1 RSI 0

Example S2 S1 S0 Q A Q B Q C Q D 0 1 0 1 0 0 0 0 0 1 0 1 0 1 0 0 0 1 1 1 0 1 1 1 1 0 0 0 1 47 1 0 1 0 1 1 0 1 1 1 0 0 1 1 0 0 1 1 1 0 0 1 0 0 1 1 1 1 1 1 1 1 1 1 0 0 0 0 S2 S1 S0 Operation 0 0 0 left shift 0 0 1 circular left shift 0 1 0 right shift 0 1 1 circular right shift 1 0 0 no change 1 0 1 parallel load 1 1 0 complement each bit 1 1 1 set to 1111 Other Information Parallel Load ABCD = 0011 LS1 1 RSI 0