14:332:231 DIGITAL LOGIC DESIGN

Similar documents
Module 3: Floyd, Digital Fundamental

Counters & Shift Registers Chapter 8 of R.P Jain

Engr354: Digital Logic Circuits

Systems I: Computer Organization and Architecture

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

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

NOT COPY DO NOT COPY DO NOT COPY DO NOT COPY DO NOT COPY DO NOT COPY

Lesson 12 Sequential Circuits: Flip-Flops

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

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

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

Flip-Flops and Sequential Circuit Design

Lecture-3 MEMORY: Development of Memory:

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

Sequential Logic Design Principles.Latches and Flip-Flops

Contents COUNTER. Unit III- Counters

CHAPTER IX REGISTER BLOCKS COUNTERS, SHIFT, AND ROTATE REGISTERS

Digital Logic Design Sequential circuits

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

Memory Elements. Combinational logic cannot remember

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

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

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

Counters and Decoders

ECE380 Digital Logic

Counters. Present State Next State A B A B

Asynchronous Counters. Asynchronous Counters

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

Registers & Counters

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

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

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

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

Chapter 8. Sequential Circuits for Registers and Counters

CHAPTER 11 LATCHES AND FLIP-FLOPS

Sequential Logic: Clocks, Registers, etc.

Cascaded Counters. Page 1 BYU

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

BINARY CODED DECIMAL: B.C.D.

CSE140: Components and Design Techniques for Digital Systems

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

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

Design: a mod-8 Counter

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

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

Combinational Logic Design Process

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

Chapter 9 Latches, Flip-Flops, and Timers

Digital Fundamentals. Lab 8 Asynchronous Counter Applications

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

Theory of Logic Circuits. Laboratory manual. Exercise 3

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

Lecture 7: Clocking of VLSI Systems

Digital Fundamentals

RETRIEVING DATA FROM THE DDC112

Chapter 5. Sequential Logic

Lecture 8: Synchronous Digital Systems

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

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

Fig1-1 2-bit asynchronous counter

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

Lecture 11: Sequential Circuit Design

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

DEPARTMENT OF INFORMATION TECHNLOGY

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

Topics of Chapter 5 Sequential Machines. Memory elements. Memory element terminology. Clock terminology

Napier University. School of Engineering. Electronic Engineering A Module: SE42205 Digital Design

Set-Reset (SR) Latch

7. Latches and Flip-Flops

Lecture 10: Sequential Circuits

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

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

CHAPTER 11: Flip Flops

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

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

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

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

DM74LS169A Synchronous 4-Bit Up/Down Binary Counter

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

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

Master/Slave Flip Flops

Digital Electronics Detailed Outline

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

Upon completion of unit 1.1, students will be able to

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

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

CS311 Lecture: Sequential Circuits

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

CONTENTS PREFACE 1 INTRODUCTION 1 2 NUMBER SYSTEMS AND CODES 25. vii

Layout of Multiple Cells

ASYNCHRONOUS COUNTERS

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

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

DM54161 DM74161 DM74163 Synchronous 4-Bit Counters

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.

ANALOG & DIGITAL ELECTRONICS

Design Verification & Testing Design for Testability and Scan

Adder.PPT(10/1/2009) 5.1. Lecture 13. Adder Circuits

Transcription:

:: IGIAL LOGI ESIGN Ivan Marsic, Rutgers University Electrical & omputer Engineering Fall Lecture #: Sequential Logic esign Practices ; ounters Sequential ircuit iming iagram Next-state Logic F State Memory Output Logic G output o function correctly, we must have: input excitation MAX t clk t ffpd(max) t comb(max) t setup > setup-time margin t ffpd(min) t comb(min) t hold > hold-time margin clock signal current state [ recall this diagram from Lecture # ] rosshatching indicates when change can happen: LOK t H t L t clock state of flip-flops t ffpd flip-flop outputs excitation logic t comb combinational outputs t ffpd t comb next state input needs t setup flip-flop inputs setup-time margin t setup t hold of

Sequential ircuit Functional iming We have to find the longest delays for each part ypical & longest delays are given for the circuit by the manufacturer For some latches & flip-flops, the timing parameters are in the book, able 8- on pages 8 8 e diagram shows only the functional behavior qualitative relationships, not actual delay quantities: LOK SYN_L SIG BUS AA AA don t care signal values Propagation, setup and hold times are not shown of Multibit Registers and Latches x -bit register Register = collection of flip-flops with a common clock input Note negative edge triggered flip-flops But the external has an inverter positive-edge triggered w.r.t. external input pin Asynchronous _L & _L buffered before fanning out x Wakerly, th Ed., Section 8.., page _L () () () () () () () () _L () () _L () () _L () () _L of

8-bit (octal) Register: x x Eight positive-edgetriggered flip-flops -state output buffer drives active-high output ommon active-low OE_L (output enable) input OE_L () () () () (8)!!! () () () () 8 8 x OE 8 8 8 () () () (8) () () () () () 8 of 8-bit (octal) Register: x x Similar to x, but does not have -state output lock enable input _L x 8 8 8 8 8 (8) () _L () () 8 of

Octal Latch x latches Output enable when is asserted and OE_L commands the three-state output (look up x above) 8 8 x OE 8 8 Register vs. latch, what s the difference? Register: edge-triggered behavior Latch: output follows input when is asserted of ounters ounter: Any sequential circuit for which the state diagram is a single cycle RESE S S S Sm S S A counter with m-states is called a modulo-m-counter, or sometimes a divide-by-m counter ounters can count up, count down, or count through other fixed sequences 8of

Ripple ounter flip-flops are used in simple counters he simplest solution is the ripple counter -bit binary ripple counter: It doesn t have! lock is connected to flip-flop clock input on the LSB bit flip-flop For all other bits, a flip-flop output is connected to the clock input circuit is not truly synchronous Output change is delayed more for each bit toward the MSB bit Resurgent because of low power consumption Synchronous counters are faster he operation of all flip-flops is synchronized by a common clock LSB MSB time = n t of [Recall Lecture #] (toggle) Flip-flop hanges state at every clock tick Signal on the output has frequency = ½ Used in counters and frequency dividers an be constructed from flip-flops flip-flop: N Next-state equation: = of

How Ripple ounter Works When there is a positive edge on the clock input of, complements (toggles) he clock input for flipflop is the complemented output of the first flip-flop, When flip changes from to, there is a positive edge on the clock input of causing to complement of Synchronous Serial ounter alled so b/c combined enable signals propagate serially from LSB to MSB Master count-enable N flip-flop toggles if-and-onlyif N= and all lowerorder counter bits are Fixed amount of logic per bit If period too short, the counter doesn t count Not enough time for a change in LSB to propagate to MSB N Serial enable logic LSB MSB of

Synchronous Serial ounter State table for binary counter: urrent State Next State Flip-Flop Inputs N toggles always (every clock tick) toggles every time = toggles every time and are both of Synchronous Parallel ounter Eliminates the problem w/ Synchronous Serial ounter Replace AN carry chain with ANs in parallel Each input driven w/ a dedicated AN gate just a single level of logic Advantages: Reduces path delays alled parallel gating Like carry lookahead he fastest binary counter N Parallel enable logic LSB MSB of

x MSI -bit ounter Most popular MSI counter Synchronous _L & L_L ( Load ) Synchronous parallel count enable P & acts also on RO ( ripple carry out ) Indicates a carry from MSB x L P A B A B RO _L Inputs L_L x x x x P x x x urrent State B A x x x x x x x x x x x x x x x x Next State B A B A B A B A of Logic iagram for x flip-flops, to have easier synchronous clear and load than flip-flop = pass data input (A,B,,) do counting function K K K K, P are to count on bits A to RO ( ripple carry out ), when is asserted of 8

Free-running ounter Operation Free-running == enable inputs enabled continuously ount if P and both asserted and Load if L_L is asserted [=] (overrides counting) lear if _L is asserted [=] (overrides loading and counting) All operations take place on rising edge RO is asserted if is asserted and count = LOK + V R x L P RPU A B A B RO U A B RO of Free-running -bit x ounter iming diagram for a free-running divide-by- counter is the MSB and A is the LSB From A on, each signal has ½ frequency of preceding one can be used as divide-by-, -, -8, or - counter 8 of

ecoding Binary-counter States A modulo-8 counter and decoder combined for a set of - out-of-m-coded signals, each representing a counter state Used for controlling a set of devices, based on counter state each output enables different device RPU +V LOK x L P A A B B RO U x8 but it has limitations due to a function hazard R G GA GB A B Y Y Y Y Y Y Y Y U S_L S_L S_L S_L S_L S_L S_L S_L of Modulo-8 ounter/ecoder iming iagram Glitches on state transitions in x8 (function hazard) he outputs of the counter do not change at exactly the same time Signal paths in the decoder x8 have different delays of

Glitch-free Outputs o achieve the same function of a mod-8 binary counter and decoder, but remove glitches on outputs: onnect decoder x8 outputs to a register (x) that samples the enable-decoded outputs on the next clock tick x is an 8-bit register with OE_L three-state output Registered outputs delayed by one clock tick Alternative solution: use an 8-bit ring counter LOK RPU x L P A B A B RO U +V R x8 G GA GB A B Y Y Y Y Y Y Y Y U x OE S_L RS_L S_L RS_L S_L RS_L S_L 8 RS_L S_L RS_L S_L RS_L S_L RS_L S_L 8 8 8 RS8_L U of