An astable multivibrator acts as an oscillator (clock generator) while a monostable multivibrator can be used as a pulse generator.

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

Engr354: Digital Logic Circuits

Theory of Logic Circuits. Laboratory manual. Exercise 3

ECE380 Digital Logic

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

CHAPTER 11 LATCHES AND FLIP-FLOPS

Sequential Logic: Clocks, Registers, etc.

Chapter 9 Latches, Flip-Flops, and Timers

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

Sequential Logic Design Principles.Latches and Flip-Flops

Lesson 12 Sequential Circuits: Flip-Flops

Memory Elements. Combinational logic cannot remember

Master/Slave Flip Flops

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

7. Latches and Flip-Flops

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.

CSE140: Components and Design Techniques for Digital Systems

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

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

BINARY CODED DECIMAL: B.C.D.

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

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

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

Module 3: Floyd, Digital Fundamental

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

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

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

Set-Reset (SR) Latch

The enable pin needs to be high for data to be fed to the outputs Q and Q bar.

Clocking. Figure by MIT OCW Spring /18/05 L06 Clocks 1

Digital Fundamentals

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

Counters. Present State Next State A B A B

Chapter 5. Sequential Logic

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

Lecture 11: Sequential Circuit Design

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

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

Lecture 10: Sequential Circuits

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

Fig1-1 2-bit asynchronous counter

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

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

Counters and Decoders

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

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

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

Chapter 8. Sequential Circuits for Registers and Counters

Lecture 7: Clocking of VLSI Systems

CHAPTER 16 MEMORY CIRCUITS

Sequential Circuits. Combinational Circuits Outputs depend on the current inputs

Design Verification & Testing Design for Testability and Scan

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

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

Lecture 10: Latch and Flip-Flop Design. Outline

Layout of Multiple Cells

Digital Logic Design Sequential circuits

Asynchronous Counters. Asynchronous Counters

Contents COUNTER. Unit III- Counters

Sequential Circuit Design

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

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

Combinational Logic Design Process

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

Flip-Flops and Sequential Circuit Design

Counters & Shift Registers Chapter 8 of R.P Jain

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

CS311 Lecture: Sequential Circuits

Modeling Latches and Flip-flops

DM74LS112A Dual Negative-Edge-Triggered Master-Slave J-K Flip-Flop with Preset, Clear, and Complementary Outputs

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

A Lesson on Digital Clocks, One Shots and Counters

Chapter 2 Clocks and Resets

TS555. Low-power single CMOS timer. Description. Features. The TS555 is a single CMOS timer with very low consumption:

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

Advanced Logic Design Techniques in Asynchronous Sequential Circuit Synthesis

路 論 Chapter 15 System-Level Physical Design

Lecture-3 MEMORY: Development of Memory:

EE 459/500 HDL Based Digital Design with Programmable Logic. Lecture 16 Timing and Clock Issues

ASYNCHRONOUS COUNTERS

A Lesson on Digital Clocks, One Shots and Counters

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

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

CHAPTER 11: Flip Flops

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

Operational Amplifier as mono stable multi vibrator

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

Standart TTL, Serie Art.Gruppe

CHAPTER 3 Boolean Algebra and Digital Logic

Lecture 8: Synchronous Digital Systems

A New Paradigm for Synchronous State Machine Design in Verilog

ECE124 Digital Circuits and Systems Page 1

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

EE552. Advanced Logic Design and Switching Theory. Metastability. Ashirwad Bahukhandi. (Ashirwad Bahukhandi)

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

Sequential 4-bit Adder Design Report

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

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

Transcription:

Concepts In sequential logic, the outputs depend not only on the inputs, but also on the preceding input values... it has memory. Memory can be implemented in 2 ways: Positive feedback or regeneration (static): One or more output signals are connected back to the inputs via storage elements. These circuits are called multivibrator. Bistable elements such as flip-flops are most common but monostable and astable circuits are also used. Charge storage (dynamic): As we know, a periodic refresh is necessary here. The bistable element can be either static or dynamic and is an essential library element called a register. An astable multivibrator acts as an oscillator (clock generator) while a monostable multivibrator can be used as a pulse generator. 1

Static Sequential Circuits W've already discussed the regenerative property. out V i1 V o1 = V i2 V o2 v 1 f(v i1 ) Metastable V o2 = V i1 Two stable operating points v 2 v 0 Regenerative f inv (V i2 ) in If the gain of the inverter in the transient region is greater than 1, there are only two stable operating points. Storing a new value usually involves applying a trigger pulse for a duration equal to the propagation delay through the two inverters. The trigger pulse takes either V i1 or V i2 temporarily out of the region where the gain, G, is less than 1 to the unstable region where G > 1. 2

Flip-flop Classification NOR version R S Positive logic S R 0 0 0 1 0 1 0 1 1 1 0 1 0 0 Set-Reset Flip-flop NAN version The length of the trigger pulse applied to S or R has to larger than the loop delay of the cross-coupled pair. S R Negative logic Note that this mode is forbidden since the constraint and are not complementary. Also, the return to 00/11 leaves the FF in an unpredictable state. S R 0 0 1 1 0 1 1 0 1 0 0 1 1 1 3

Flip-flop Classification The ambiguity of having a non-allowed mode caused by trigger pulses going active simultaneously can be avoided by adding two feedback lines: J φ K S R J n K n n+1 0 0 n 0 1 0 1 0 1 1 1 n Note the characteristic table is similar to SR FF except for the forbidden mode Note if both J and K are high, and clock pulses, the output is complemented. However, doing so enables the other input and the FF oscillates. This places some stringent constraints on the clock pulse width (e.g. < than the propagation delay through the FF). 4

Flip-flop Classification Synchronous circuit Changes in the output logic states of all FFs are synchronized with the clock signal, φ. Note that: T FF (toggle FF) is a special case of the JK with J and K tied together. FF (delay FF) is a special case with J and K connected with complementary values of the input. It generates a delayed version of the input synchronized with the clock. These FFs are also called latches. A FF is a latch if the gate is transparent while the clock is high (low). Any changes in the input appear in the output after a nominal delay. The transparent nature can cause race problems: 1 φ This circuit oscillates as long as φ remains high. φ 5

Master-Slave FFs One way to avoid the race is to use the master-slave approach. J SI K φ RI Master Slave The master on the left is active (J and K are enabled) when φ is high. The slave on the right is in hold mode, preventing changes on SI and RI from propagating to the output,. When φ goes low, the state of the master is frozen and the NAN gates in the slave are enabled. There is no constraint on the maximum width of φ for proper operation. 6

Master-Slave FFs 0 Negative level-sensitive latch M 0 1 1 Positive level-sensitive latch M Latches are transparent on half of the clock cycle and subject to race conditions. 7

Master-Slave Set/Clear Asynchronous FFs P set reset set Or P reset Clr 0 1 Clr M 0 1 Set Set 8

Toggle Flip-Flop with Asynchronous Clear: 9

T FF C M C Clr Out C C ivides by 2. Used in counters. Can also use NAN SR FF and two NANs. 10

Edge-triggered FFs Problem with master-slave approach: The circuit is sensitive to changes in the input signals as long as φ is high. In the case of the JK FF, the inputs MUST stay constant with φ high. If FF is reset, it is sensitive to the level of J, e.g., 1 glitches. The fix is to allow the state of the FF to change only at the rising (falling) edge of the clock. In (1) In (0) φ N 1 N2 Out 0 Pulse φ In Results in a short low-going pulse at the output of N 2 with length approximately equal to the propagation delay through N 1. In Out 11

Edge-triggered FFs The modification applied to the JK FF is shown below. J φ K S R Low-going pulses are generated on S and R with the low going edge of the clock. Note that the inputs must be stable for some time before the clock goes low. This is also true for the master-slave FF, but the constraints are different. Let's first define some terms. 12

Flip-Flop Timing efinitions Timing diagram showing the terms defining the proper operation of a FF. Clock Cycle Time (T c ) Setup time (T s ) Hold time (T h ) Clock-to- delay (T q ) ( is indeterminate in this region) T c : Clock Cycle Time. T s : The amount of time before the clock edge that the input has to be stable. T h : ata has to be held for this period while clock travels to point of storage. T q : Clock-to- delay: elay from the positive clock input to new value of. 13

Setup/Hold Time Violations epending on the design, one or both of T s and T h may have to be non-zero. For example, the master-slave FF is likely to require a longer setup time than the edge-triggered FF. X M S 1 G 1 "Glitches" in the combo logic. X Y Y S 2 G 2 Let's assume a 1 is the "correct" storage value. Since setup time is violated, a zero will be "latched" instead. S 1 opens and S 2 closes. The delay through inverters G 1 and G 2. Edge triggered FF prevents the "master" from following the input so the FF's internal delay does not affect setup time. 14

System Timing Two possible strategies to implement clocked systems: inputs clk Reg A Combinational Logic Reg B outputs inputs Latch A T q Combinational Logic T d T s Latch B outputs clk Latches are a more economical implementation strategy but are transparent on half of the clock cycle, i.e., cannot be used in feedback systems. Also, the following constraint must be met for latches: T d < T c /2 - T q - T s where T d is the worst case propagation delay, T c is the clock cycle time, T q is the Clock-to- time of latch A and T s is the setup time for latch B. 15

Clock Race Conditions For edge-triggered FFs, the following time constraint must be met: T q + T d + T s < T c Clock races caused by: elays in the clock line to Reg B. New data stored instead of previous data: Reg A Combinational Logic Reg B clk τ clk previous data new data clk clock delayed to Reg B clk new data latched in error 16

Clock Race Conditions elays in the combinational logic that are larger than the clock cycle time. ata arrives late at Reg B, old data retained instead of latching new data. clk Reg A τ Reg B clk previous data delayed new data Old data latched in error. As you can see, designers have to walk a temporal 'tight-rope', e.g., they have to minimize clock skew while considering worst and best case delays through combinational logic. 17

CMOS Static Flip-Flops Full complementary version of the master-slave FF requires 38 transistors! J SI K RI φ Alternatively, an 18 transistor version using this building block: φ M 5 M 2 M 1 M 3 φ This strategy requires transistor sizes to be taken into account. Assume is high and R pulsed. M 3 and M 4 must "overpower" M 2 and reduce to < threshold of S M 4 R M 6 M 5 and M 6. A variation of this, which combines φ and R/S, is the 6 trans. SRAM. 18