ENGIN 112 Intro to Electrical and Computer Engineering



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

Lesson 12 Sequential Circuits: Flip-Flops

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

Engr354: Digital Logic Circuits

Memory Elements. Combinational logic cannot remember

BINARY CODED DECIMAL: B.C.D.

Lecture 8: Synchronous Digital Systems

Theory of Logic Circuits. Laboratory manual. Exercise 3

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

Lecture-3 MEMORY: Development of Memory:

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

CHAPTER 11 LATCHES AND FLIP-FLOPS

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

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.

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

Master/Slave Flip Flops

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

Sequential Logic Design Principles.Latches and Flip-Flops

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

Combinational Logic Design Process

CHAPTER 11: Flip Flops

Set-Reset (SR) Latch

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

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

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

CS311 Lecture: Sequential Circuits

7. Latches and Flip-Flops

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

Counters and Decoders

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

Flip-Flops and Sequential Circuit Design

Sequential Logic: Clocks, Registers, etc.

ASYNCHRONOUS COUNTERS

Module 3: Floyd, Digital Fundamental

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

Decimal Number (base 10) Binary Number (base 2)

Upon completion of unit 1.1, students will be able to

Gates, Circuits, and Boolean Algebra

The components. E3: Digital electronics. Goals:

1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1.

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

Counters & Shift Registers Chapter 8 of R.P Jain

Asynchronous Counters. Asynchronous Counters

Chapter 5. Sequential Logic

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

CHAPTER 3 Boolean Algebra and Digital Logic

Chapter 2 Logic Gates and Introduction to Computer Architecture

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

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

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

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

ECE380 Digital Logic

Contents COUNTER. Unit III- Counters

Chapter 9 Latches, Flip-Flops, and Timers

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

Modeling Latches and Flip-flops

CS 61C: Great Ideas in Computer Architecture Finite State Machines. Machine Interpreta4on

Lecture 7: Clocking of VLSI Systems

Counters. Present State Next State A B A B

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

Layout of Multiple Cells

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

Lecture 11: Sequential Circuit Design

Lecture 10: Sequential Circuits

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

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

Sequential Circuits. Combinational Circuits Outputs depend on the current inputs

Cascaded Counters. Page 1 BYU

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

Digital Fundamentals

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

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

GETTING STARTED WITH PROGRAMMABLE LOGIC DEVICES, THE 16V8 AND 20V8

Finite State Machine. RTL Hardware Design by P. Chu. Chapter 10 1

Fig1-1 2-bit asynchronous counter

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

Design Verification & Testing Design for Testability and Scan

MAS.836 HOW TO BIAS AN OP-AMP

CSE140: Components and Design Techniques for Digital Systems

Digital Electronics Detailed Outline

Latch Timing Parameters. Flip-flop Timing Parameters. Typical Clock System. Clocking Overhead

DEPARTMENT OF INFORMATION TECHNLOGY

Chapter 8. Sequential Circuits for Registers and Counters

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

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

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

7CS-A(CD_lab) Actual date of covering the. Reason for not covering the topic in due time. Month in which the topic will be covered

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 OUTCOME 3 PART 1

Digital Logic Elements, Clock, and Memory Elements

Digital Electronics Part I Combinational and Sequential Logic. Dr. I. J. Wassell

Timing Methodologies (cont d) Registers. Typical timing specifications. Synchronous System Model. Short Paths. System Clock Frequency

EXPERIMENT 8. Flip-Flops and Sequential Circuits

Copyright Peter R. Rony All rights reserved.

We r e going to play Final (exam) Jeopardy! "Answers:" "Questions:" - 1 -

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

A New Paradigm for Synchronous State Machine Design in Verilog

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

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

Systems I: Computer Organization and Architecture

Transcription:

ENGIN 112 Intro to Electrical and Computer Engineering Lecture 19 Sequential Circuits: Latches

Overview Circuits require memory to store intermediate data Sequential circuits use a periodic signal to determine when to store values. A clock signal can determine storage times Clock signals are periodic Single bit storage element is a flip flop A basic type of flip flop is a latch Latches are made from logic gates NAND, NOR, AND, OR, Inverter

The story so far... Logical operations which respond to combinations of inputs to produce an output. Call these combinational logic circuits. For example, can add two numbers. But: No way of adding two numbers, then adding a third (a sequential operation); No way of remembering or storing information after inputs have been removed. To handle this, we need sequential logic capable of storing intermediate (and final) results.

Sequential Circuits Inputs Combinational circuit Next state Flip Flops Outputs Present state Clock Timing signal (clock) a periodic external event (input) synchronizes when when current current state state changes happen keeps keeps system system well-behaved makes makes it it easier easier to to design design and and build build large large systems Clock

Cross-coupled Inverters A stable value can be stored at inverter outputs 0 1 1 0 State 1 State 2

S-R Latch with NORs R (reset) S (set) S R Q Q 1 1 1 0 0 1 0 0 S-R latch made from cross-coupled NORs If Q = 1, set state If Q = 0, reset state Usually S=0 and R=0 S=1 and R=1 generates unpredictable results Q Q 0 0 Undefined 1 0 Set 0 1 Reset 0 1 1 0 Stable

S-R Latch with NANDs S R Q Q S R Q Q 0 0 0 1 1 0 1 1 Latch made from cross-coupled NANDs Sometimes called S -R latch Usually S=1 and R=1 1 1 Disallowed 1 0 Set 0 1 Reset 0 1 1 0 Store S=0 and R=0 generates unpredictable results

S-R Latches

S-R Latch with control input Occasionally, desirable to avoid latch changes C = 0 disables all latch state changes Control signal enables data change when C = 1 Right side of circuit same as ordinary S-R latch.

NOR S-R Latch with Control Input Latch is level-sensitive,, in regards to C Only stores data if C = 0 R Q C Latch operation enabled by C Q S Input sampling enabled by gates Outputs change when C is low: RESET and SET Otherwise: HOLD

D Latch Q 0 indicates the previous state (the previously stored value) X S D C Q Y D C Q Q 0 1 0 1 1 1 1 0 X 0 Q 0 Q 0 R Q X Y C Q Q 0 0 1 Q 0 Q 0 Store 0 1 1 0 1 Reset 1 0 1 1 0 Set 1 1 1 1 1 Disallowed X X 0 Q 0 Q 0 Store

D Latch D C X S Q D C Q Q 0 1 0 1 1 1 1 0 X 0 Q 0 Q 0 Y R Q Input value D is passed to output Q when C is high Input value D is ignored when C is low

D Latch Latches on following edge of clock E x E D C Q z x z Z only changes when E is high If E is high, Z will follow X

D Latch Latches on following edge of clock E x E D C Q z x z The D latch stores data indefinitely, regardless of input D values, if C = 0 Forms basic storage element in computers

Symbols for Latches SR latch is based on NOR gates S R latch based on NAND gates D latch can be based on either. D latch sometimes called transparent latch

Summary Latches are based on combinational gates (e.g. NAND, NOR) Latches store data even after data input has been removed S-R latches operate like cross-coupled inverters with control inputs (S = set, R = reset) With additional gates, an S-R latch can be converted to a D latch (D stands for data) D latch is simple to understand conceptually When C = 1, data input D stored in latch and output as Q When C = 0, data input D ignored and previous latch value output at Q Next time: more storage elements!