Basic bistable element. Chapter 6. Latches vs. flip-flops. Flip-flops

Similar documents
Counters & Shift Registers Chapter 8 of R.P Jain

Engr354: Digital Logic Circuits

WEEK 8.1 Registers and Counters. ECE124 Digital Circuits and Systems Page 1

Module 3: Floyd, Digital Fundamental

Design Example: Counters. Design Example: Counters. 3-Bit Binary Counter. 3-Bit Binary Counter. Other useful counters:

Memory Elements. Combinational logic cannot remember

Latches, the D Flip-Flop & Counter Design. ECE 152A Winter 2012

CHAPTER 11 LATCHES AND FLIP-FLOPS

Lesson 12 Sequential Circuits: Flip-Flops

ECE380 Digital Logic

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa

Sequential Logic Design Principles.Latches and Flip-Flops

Flip-Flops, Registers, Counters, and a Simple Processor

Counters. Present State Next State A B A B

Lecture 8: Synchronous Digital Systems

DIGITAL COUNTERS. Q B Q A = 00 initially. Q B Q A = 01 after the first clock pulse.

Asynchronous Counters. Asynchronous Counters

Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.

Systems I: Computer Organization and Architecture

Digital Fundamentals

Sequential Logic. (Materials taken from: Principles of Computer Hardware by Alan Clements )

Chapter 7. Registers & Register Transfers. J.J. Shann. J. J. Shann

Digital Logic Design Sequential circuits

Theory of Logic Circuits. Laboratory manual. Exercise 3

Sequential Logic: Clocks, Registers, etc.

Chapter 9 Latches, Flip-Flops, and Timers

7. Latches and Flip-Flops

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

Chapter 8. Sequential Circuits for Registers and Counters

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

Chapter 5. Sequential Logic

Asynchronous counters, except for the first block, work independently from a system clock.

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute. 2nd (Spring) term 2012/2013

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

To design digital counter circuits using JK-Flip-Flop. To implement counter using 74LS193 IC.

BINARY CODED DECIMAL: B.C.D.

Counters and Decoders

Digital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng

Flip-Flops and Sequential Circuit Design. ECE 152A Winter 2012

Flip-Flops and Sequential Circuit Design

Counters are sequential circuits which "count" through a specific state sequence.

So far we have investigated combinational logic for which the output of the logic devices/circuits depends only on the present state of the inputs.

CpE358/CS381. Switching Theory and Logical Design. Class 10

ETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies

Lecture-3 MEMORY: Development of Memory:

SEQUENTIAL CIRCUITS. Block diagram. Flip Flop. S-R Flip Flop. Block Diagram. Circuit Diagram

Registers & Counters

Lecture 10 Sequential Circuit Design Zhuo Feng. Z. Feng MTU EE4800 CMOS Digital IC Design & Analysis 2010

Modeling Registers and Counters

Modeling Sequential Elements with Verilog. Prof. Chien-Nan Liu TEL: ext: Sequential Circuit

Take-Home Exercise. z y x. Erik Jonsson School of Engineering and Computer Science. The University of Texas at Dallas

Master/Slave Flip Flops

CHAPTER 3 Boolean Algebra and Digital Logic

ASYNCHRONOUS COUNTERS

Combinational Logic Design Process

CHAPTER IX REGISTER BLOCKS COUNTERS, SHIFT, AND ROTATE REGISTERS

CSE140: Components and Design Techniques for Digital Systems

DEPARTMENT OF INFORMATION TECHNLOGY

Lecture 10: Sequential Circuits

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

Lecture 11: Sequential Circuit Design

2 : BISTABLES. In this Chapter, you will find out about bistables which are the fundamental building blocks of electronic counting circuits.

EE 42/100 Lecture 24: Latches and Flip Flops. Rev B 4/21/2010 (2:04 PM) Prof. Ali M. Niknejad

DATA SHEET. HEF40193B MSI 4-bit up/down binary counter. For a complete data sheet, please also download: INTEGRATED CIRCUITS

Contents COUNTER. Unit III- Counters

CS311 Lecture: Sequential Circuits

Wiki Lab Book. This week is practice for wiki usage during the project.

DM74LS169A Synchronous 4-Bit Up/Down Binary Counter

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

Modeling Latches and Flip-flops

Layout of Multiple Cells

Cascaded Counters. Page 1 BYU

DATA SHEETS DE COMPONENTES DA FAMÍLIA LÓGICA TTL GATES AND INVERTERS POSITIVES NAND GATES AND INVERTERS DESCRIÇÃO

Fig1-1 2-bit asynchronous counter

IE1204 Digital Design F12: Asynchronous Sequential Circuits (Part 1)

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

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute 5. LECTURE: REGISTERS AND RELATED

Sequential Circuits. Combinational Circuits Outputs depend on the current inputs

DM54161 DM74161 DM74163 Synchronous 4-Bit Counters

74F168*, 74F169 4-bit up/down binary synchronous counter

Upon completion of unit 1.1, students will be able to

NOTE: The Flatpak version has the same pinouts (Connection Diagram) as the Dual In-Line Package.

Chapter 4 Register Transfer and Microoperations. Section 4.1 Register Transfer Language


NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

Set-Reset (SR) Latch

Lecture 7: Clocking of VLSI Systems

74LS193 Synchronous 4-Bit Binary Counter with Dual Clock

A Lesson on Digital Clocks, One Shots and Counters

A Lesson on Digital Clocks, One Shots and Counters

LAB #4 Sequential Logic, Latches, Flip-Flops, Shift Registers, and Counters

DM74LS191 Synchronous 4-Bit Up/Down Counter with Mode Control

Sequential Circuit Design

ENEE 244 (01**). Spring Homework 5. Due back in class on Friday, April 28.

PROGETTO DI SISTEMI ELETTRONICI DIGITALI. Digital Systems Design. Digital Circuits Advanced Topics

Lecture 12: More on Registers, Multiplexers, Decoders, Comparators and Wot- Nots

Digital Electronics Detailed Outline

Introduction to CMOS VLSI Design (E158) Lecture 8: Clocking of VLSI Systems

Transcription:

Basic bistable element hapter 6 It is a circuit having two stable conditions (states). It can be used to store binary symbols. Flip-Flops and Simple Flip-Flop Applications.. Huang, 24 igital Logic esign Flip-flops A flip-flop is a bistable device, with inputs, that remains in a given state as long as power is applied and until input signals are applied to cause its output to change. Latches vs. flip-flops Latches are flip-flops for which the timing of the output changes are not controlled. For a latch, the output essentially responds immediately to changes on the input lines (and possibly the presence of a clock pulse). A flip-flop is designed to change its output at the edge of a controlling clock signal... Huang, 24 igital Logic esign 2.. Huang, 24 igital Logic esign 3 SR (Set-Reset) latch Next state If denotes the present state of a memory device, i.e., the state at the time the input signals are applied, we shall use + or (t+) to denote the next state, i.e., the new state assumed by the device in response to the input signals... Huang, 24 igital Logic esign 4.. Huang, 24 igital Logic esign 5

R S latch Gated SR latch.. Huang, 24 igital Logic esign 6.. Huang, 24 igital Logic esign 7 Gated latch iming considerations Propagation delays Minimum pulse width Setup and hold time.. Huang, 24 igital Logic esign 8.. Huang, 24 igital Logic esign 9 Propagation delay he time it takes a change in the input signal to produce a change in the output signal. Minimum pulse width he minimum amount of time a signal must be applied in order to produce a desired result... Huang, 24 igital Logic esign.. Huang, 24 igital Logic esign

Setup and hold times o achieve a satisfactory operation of a gated latch, constraints are normally placed on the time intervals between input changes. he minimum time the input signal must be held fixed before and after the latching action is called the setup time and hold time, respectively. - and -type flip-flops In addition to the SR-type and -type flipflops discussed above, there are two other types, viz., - and -type flip-flops... Huang, 24 igital Logic esign 2.. Huang, 24 igital Logic esign 3 flip-flops flip-flop ( t+ ) () t (a) ircuit A flip-flop works just like an SR flipflop if we consider input as S(et) input and input as R(eset) input, except when both S and R inputs are set to, the output simply flips over. () t (b) ruth table (c) Graphical symbol.. Huang, 24 igital Logic esign 4.. Huang, 24 igital Logic esign 5 -type flip-flops A flip-flop is obtained from a flip-flop by tying the and inputs together to form the input. ' ' Flip-flops here are four different types of flip-flops: SR,,, and types. he properties of these flip-flops are summarized in the following 4 slides. he function and application tables are also known as characteristic and excitation tables, respectively... Huang, 24 igital Logic esign 6.. Huang, 24 igital Logic esign 7

SR-type flip-flop -type flip-flop S R ' (t+) = S + R' SR = ' (t+) = Graphic symbol haracteristic equation Graphic symbol haracteristic equation S R (t+)? Function table (t+) S Application table R X X (t+) (t+) Function table Application table.. Huang, 24 igital Logic esign 8.. Huang, 24 igital Logic esign 9 -type flip-flop -type flip-flop ' (t+) = ' + ' ' (t+) = ' + ' Graphic symbol haracteristic equation Graphic symbol haracteristic equation (t+) ' Function table (t+) Application table X X X X (t+) ' Function table (t+) Application table.. Huang, 24 igital Logic esign 2.. Huang, 24 igital Logic esign 2 Positive and negative edge Edge-triggered flip-flops he transition of a control signal (clock pulse) from its low to high value ( to ) in positive logic is called the positive edge of the control signal, while the transition from high to low ( to ) is called the negative edge... Huang, 24 igital Logic esign 22 Edge triggered flip-flops use just one of the edges of the clock pulse to affect the reading of the input lines. hese flip-flops are designed to be triggered by either the positive or negative edge. In analyzing the behavior of an asynchronous sequential circuit, one often needs to know which edge trigger the flip-flops used... Huang, 24 igital Logic esign 23

lk a a level sensitive latch Serial-in, serial-out unidirectional shift register (a) ircuit b b c c positive-edgetriggered negative-edgetriggered a b c (b) iming diagram.. Huang, 24 igital Logic esign 24.. Huang, 24 igital Logic esign 25 Serial-in, parallel-out unidirectional shift register Parallel-in unidirectional shift register.. Huang, 24 igital Logic esign 26.. Huang, 24 igital Logic esign 27 Universal shift register 4-bit binary ripple (asynchronous) counter with positive-edge triggered flip-flops... Huang, 24 igital Logic esign 28.. Huang, 24 igital Logic esign 29

A 3-bit up-counter 2 2 (a) ircuit Analysis method: onstruct a list of state changes as follows.. Assume that the counter starts with some values, say,. 2. Because = for, will change at the arrival of every clock pulse. omplete the listing for. 3. Because =, and because the flip-flop is triggered by a positive going clock input, for, changes its content whenever changes from to. 4. o the same for the listing for 2. 2 ount 2 3 4 5 6 7 (b) iming diagram he flip-flops are triggered by positive going edge of the clock input... Huang, 24 igital Logic esign 3.. Huang, 24 igital Logic esign 3 Analysis method: 2 A 3-bit down-counter 2 (a) ircuit onstruct a list of state changes as follows.. Assume that the counter starts with some values, say,. 2. Because = for, will change at the arrival of every clock pulse. omplete the listing for. 3. Because =, and because the flip-flop is triggered by a positive going clock input, for, it changes its content whenever changes from to. 4. o the same for the listing for 2. 2 ount 7 6 5 4 3 2 (b) iming diagram he flip-flops are triggered by positive going edge of the clock input.. Huang, 24 igital Logic esign 32.. Huang, 24 igital Logic esign 33 he following synchronous counter can be analyzed similarly Four-bit synchronous binary counter 2 2.. Huang, 24 igital Logic esign 34.. Huang, 24 igital Logic esign 35

Four-bit synchronous binary counter variation Four-bit synchronous binary counter with parallel load inputs.. Huang, 24 igital Logic esign 36.. Huang, 24 igital Logic esign 37 Synchronous mod- counter 8-bit synchronous binary counter constructed from two 4-bit synchronous binary counters.. Huang, 24 igital Logic esign 38.. Huang, 24 igital Logic esign 39 Mod-4 ring counter Mod-8 twisted-ring counter (or ohnson counter).. Huang, 24 igital Logic esign 4.. Huang, 24 igital Logic esign 4

Mod-7 twisted-ring counter ontrol signal generators A control signal generator is a sequential circuit that generate a sequence of bit patterns, each of which contains only one. It is used to activate various devices in turn. Shown in the next slide are the wave forms of 4-bit control signals... Huang, 24 igital Logic esign 42.. Huang, 24 igital Logic esign 43 4-bit control pulses ontrol-signal generator (continued) P 2 here are three ways to generate control signals (with n bits):. Use an n-bit ring counter (need n flip-flops) 2. Use a binary counter and a decoder ( need k flip-flops and n AN gates with k inputs, where n 2 k ) 3. Use a ohnson counter (need n/2 flip-flops) and n 2-input AN gates. 3.. Huang, 24 igital Logic esign 44.. Huang, 24 igital Logic esign 45 2 3 n y y y 2 y 3 2-to-4 decoder w w En lear Up-counter Reset A part of the control circuit for the processor.. Huang, 24 igital Logic esign 46 Reset An n-bit ohnson counter, augmented with 2n AN-gates, will generate 2n-bit control signals. It uses n/2 flip-flops, 2n 2-input, AN gates. Figure 7.3 ohnson counter.. Huang, 24 igital Logic esign 47

A B ounting sequence of a 3-bit ohnson counter A B. A' ' A B' B ' 2 Reset A A' 3 4 Figure 7.3 A 3-bit ohnson counter A ohnson counter, augmented with a bank of AN gates, becomes a control-signal generator B' 5.. Huang, 24 igital Logic esign 48.. Huang, 24 igital Logic esign 49 Synchronous counters A synchronous counter is a special kind of synchronous sequential circuit, the analysis and design of such a circuit will be discussed in the next chapter... Huang, 24 igital Logic esign 5