DIGITAL ELECTRONICS & it0203 Semester - 3

Slides:



Advertisements
Similar presentations
Variations of the Turing Machine
Advertisements

P.Rajasekar & C.M.T.Karthigeyan Asst.Professor SRM University, Kattankulathur 8/22/2011 School of Computing, Department of IT 1.
Adders Used to perform addition, subtraction, multiplication, and division (sometimes) Half-adder adds rightmost (least significant) bit Full-adder.
AP STUDY SESSION 2.
1
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Sequential Logic Design
Copyright © 2013 Elsevier Inc. All rights reserved.
David Burdett May 11, 2004 Package Binding for WS CDL.
Break Time Remaining 10:00.
Turing Machines.
PP Test Review Sections 6-1 to 6-6
Discrete Mathematical Structures: Theory and Applications
Chapter 3 Logic Gates.
Flip-Flops and Registers
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
Adding Up In Chunks.
MaK_Full ahead loaded 1 Alarm Page Directory (F11)
1 hi at no doifpi me be go we of at be do go hi if me no of pi we Inorder Traversal Inorder traversal. n Visit the left subtree. n Visit the node. n Visit.
Essential Cell Biology
©2004 Brooks/Cole FIGURES FOR CHAPTER 12 REGISTERS AND COUNTERS Click the mouse to move to the next page. Use the ESC key to exit this chapter. This chapter.
Converting a Fraction to %
Clock will move after 1 minute
©2004 Brooks/Cole FIGURES FOR CHAPTER 11 LATCHES AND FLIP-FLOPS Click the mouse to move to the next page. Use the ESC key to exit this chapter. This chapter.
Physics for Scientists & Engineers, 3rd Edition
Select a time to count down from the clock above
Copyright Tim Morris/St Stephen's School
FIGURE 3-1 Basic parts of a computer. Dale R. Patrick Electricity and Electronics: A Survey, 5e Copyright ©2002 by Pearson Education, Inc. Upper Saddle.
Princess Sumaya University
1 Fundamentals of Computer Science Sequential Circuits.
Computer Architecture CS 215
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 12 Basic (NAND) S – R Latch “Cross-Coupling” two NAND gates gives the S -R Latch:
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
SYEN 3330 Digital SystemsJung H. Kim 1 SYEN 3330 Digital Systems Chapter 6 – Part 1.
Module 12.  In Module 9, 10, 11, you have been introduced to examples of combinational logic circuits whereby the outputs are entirely dependent on the.
Overview Part 1 - Storage Elements and Analysis
CPEN Digital System Design Chapter 5 Sequential Circuits Storage Elements and Sequential Circuit Analysis C. Gerousis © Logic and Computer Design.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 5 – Sequential Circuits Part 1 – Storage.
Sequential Circuit Analysis & Design Dr. Aiman H. El-Maleh Computer Engineering Department King Fahd University of Petroleum & Minerals Dr. Aiman H. El-Maleh.
1. 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates whose outputs are determined from the current combination of inputs.
Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 5 – Sequential Circuits Part 1 – Storage.
A.Abhari CPS2131 Registers A register is a group of n flip-flops each of them capable of storing one bit of information There are two types of registers:
Chapter 1_4 Part II Counters
Digital Logic Design CHAPTER 5 Sequential Logic. 2 Sequential Circuits Combinational circuits – The outputs are entirely dependent on the current inputs.
Digital Computer Design Fundamental
COE 202: Digital Logic Design Sequential Circuits Part 1
Chap 4. Sequential Circuits
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 11 Binary Adder/Subtractor.
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates.
Chapter5: Synchronous Sequential Logic – Part 1
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
CS151 Introduction to Digital Design Chapter 5: Sequential Circuits 5-1 : Sequential Circuit Definition 5-2: Latches 1Created by: Ms.Amany AlSaleh.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
1 Registers A register is a group of n flip-flops each of them capable of storing one bit of information There are two types of registers: parallel and.
1. 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates whose outputs are determined from the current combination of inputs.
Synchronous Sequential Circuits
EKT 121 / 4 DIGITAL ELECTRONICS I
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Synchronous Sequential Circuits
Sequential Circuit Analysis & Design
Digital Logic Department of CNET Chapter-6
Synchronous sequential
Digital Logic Department of CNET Chapter-6
Synchronous Sequential
Binary Adder/Subtractor
Digital Electronics and Logic Design
Presentation transcript:

DIGITAL ELECTRONICS & it0203 Semester - 3 P.Rajasekar & C.M.T.Karthigeyan Asst.Professor SRM University, Kattankulathur

Disclaimer The contents of the slides are solely for the purpose of teaching students at SRM University. All copyrights and Trademarks of organizations/persons apply even if not specified explicitly.

Unit 4 - sequential circuit

Overview Synchronous Sequential Logic Design Procedure Introduction to sequential circuits Types of sequential circuits Storage elements Latches Flip-flops Sequential circuit analysis State tables Design Procedure

Introduction to Sequential Circuits Inputs Outputs Combina-tional Logic A Sequential circuit contains: Storage elements: Latches or Flip-Flops Combinational Logic: Implements a multiple-output switching function Inputs are signals from the outside. Outputs are signals to the outside. Other inputs, State or Present State, are signals from storage elements. The remaining outputs, Next State are inputs to storage elements. Storage Elements State Next State

Introduction to Sequential Circuits Inputs Outputs Combina-tional Logic Combinatorial Logic Next state function Next State = f(Inputs, State) Output function (Mealy) Outputs = g(Inputs, State) Output function (Moore) Outputs = h(State) Output function type depends on specification and affects the design significantly Storage Elements State Next State

Types of Sequential Circuits Depends on the times at which: storage elements observe their inputs, and storage elements change their state Synchronous Behavior defined from knowledge of its signals at discrete instances of time Storage elements observe inputs and can change state only in relation to a timing signal (clock pulses from a clock) Asynchronous Behavior defined from knowledge of inputs an any instant of time and the order in continuous time in which inputs change If clock just regarded as another input, all circuits are asynchronous! Nevertheless, the synchronous abstraction makes complex designs tractable!

Basic (NAND) S – R Latch “Cross-Coupling” two NAND gates gives the S -R Latch: Which has the time sequence behavior: S = 0, R = 0 is forbidden as input pattern S (set) Q Q R (reset) Time R S Q Comment 1 ? Stored state unknown “Set” Q to 1 Now Q “remembers” 1 “Reset” Q to 0 1 1 1 Now Q “remembers” 0 1 1 Both go high 1 1 ? ? Unstable!

Basic (NOR) S – R Latch Cross-coupling two NOR gates gives the S – R Latch: Which has the time sequence behavior: S (set) R (reset) Q R S Q Comment ? Stored state unknown 1 “Set” Q to 1 Now Q “remembers” 1 “Reset” Q to 0 Now Q “remembers” 0 Both go low Unstable! Time

Clocked S - R Latch Adding two NAND gates to the basic S - R NAND latch gives the clocked S – R latch: Has a time sequence behavior similar to the basic S- R latch except that the S and R inputs are only observed when the line C is high. C means “control” or “clock”. S R Q C

Clocked S-R Latch (continued) The Clocked S-R Latch can be described by a table: The table describes what happens after the clock [at time (t+1)] based on: current inputs (S,R) and current state Q(t). S R Q C

D Latch Adding an inverter to the S-R Latch, gives the D Latch: Note that there are no “indeterminate” states! D Q C Q D Q(t+1) Comment No change 1 Set Q Clear Q No Change C D Q

Flip-Flops The latch timing problem Master-slave flip-flop Edge-triggered flip-flop Standard symbols for storage elements Direct inputs to flip-flops

Storage Elements Flip Flops In a sequential circuit the changes should take place with clock transitions and not with levels.

S-R Master-Slave Flip-Flop Consists of two clocked S-R latches in series with the clock on the second latch inverted The input is observed by the first latch with C = 1 The output is changed by the second latch with C = 0 The path from input to output is broken by the difference in clocking values (C = 1 and C = 0). The behavior demonstrated by the example with D driven by Y given previously is prevented since the clock must change from 1 to 0 before a change in Y based on D can occur. C S R Q

Flip-Flop Solution Use edge-triggering instead of master- slave An edge-triggered flip-flop ignores the pulse while it is at a constant level and triggers only during a transition of the clock signal Edge-triggered flip-flops can be built directly at the electronic circuit level, or A master-slave D flip-flop which also exhibits edge-triggered behavior can be used.

Edge-Triggered D Flip-Flop The edge-triggered D flip-flop is the same as the master- slave D flip-flop It can be formed by: Replacing the first clocked S-R latch with a clocked D latch or Adding a D input and inverter to a master-slave S-R flip-flop The change of the D flip-flop output is associated with the negative edge at the end of the pulse It is called a negative-edge triggered flip-flop C S R Q D

Edge-Triggered D Flip-Flop The edge-triggered flip-flop consists of two latches: master and slave.

JK Flip-Flop Other types of flip-flops may be constructed from D flip-flop. Two other types less commonly used are JK and T flip flops.

T Flip-Flop

Flip Flop Characteristic Table

Flip Flop Characteristic Equations

Sequential Circuit Analysis General Model Current State at time (t) is stored in an array of flip-flops.  Next State at time (t+1) is a Boolean function of State and Inputs. Outputs at time (t) are a Boolean function of State(t) &(sometimes)Inputs (t). Inputs Combina-tional Logic Outputs Storage Elements CLK State Next State

Example x y Input: x(t) Output: y(t) State: ((A(t), B(t)) What is the Output Function? What is the Next State Function? A C D Q y x B CP

State Table Characteristics State table – a multiple variable table with the following four sections: Present State – the values of the state variables for each allowed state. Input – the input combinations allowed. Next-state – the value of the state at time (t+1) based on the present state and the input. Output – the value of the output as a function of the present state and (sometimes) the input. From the viewpoint of a truth table: the inputs are Input, Present State and the outputs are Output, Next State

Example: State Table The state table can be filled in using the next state and output equations: A(t+1) = A(t)x(t) + B(t)x(t) B(t+1) =A (t)x(t) y(t) =x (t)(B(t) + A(t)) Present State Input Next State Output A(t) B(t) x(t) A(t+1) B(t+1) y(t) 0 0 0 0 1 0 1 0 1 1 1 1 0 1 0 1 1

Example: Alternate State Table 2-dimensional table that matches well to a K- map. Present state rows and input columns in Gray code order. A(t+1) = A(t)x(t) + B(t)x(t) B(t+1) =A (t)x(t) y(t) =x (t)(B(t) + A(t)) Present State Next State x(t)=0 x(t)=1 Output x(t)=0 x(t)=1 A(t) B(t) A(t+1)B(t+1) A(t+1)B(t+1) y(t) y(t) 0 0 0 0 0 1 0 0 0 1 0 0 1 1 1 0 1 0 1 1 0 0 1 0

State Diagram

Analysis with JK Flip Flops Determine flip-flop input equations in terms of present state and inputs. For each JKFF determine J=f(Q(t),x(t)) and K=g(Q(t),x(t)) Using the flip-flop characteristic table determine the next state values in the state table. Substitute equations for J and K into Q(t+1)=JQ’+K’Q to calculate the values of next-states

Analysis with JK FF

State Table

State Diagram

Excitation Tables Input equations for D-FF is obtained directly from next state For JK and T FFs FF input equations cannot be obtained easily from state table. A table that lists the inputs for a given change of state is needed. It is called excitation table

Excitation Tables

Synthesis Using JK FF

Synthesis Using JK FF

Synthesis Using JK FF

Shift Register A register capable of shifting the binary information held in each cell to its neighboring cell, is called a shift register. Serial input is shifted to right with each clock pulse.After four clock pulses serial input appears at the Serial output.

Serial Transfer A digital system operates at serial mode: information transferred and manipulated one bit at a time. Serial transfers take place with the system clock. In the next clock contents of shift register A is transferred to shift register B.

Serial Transfer

Mysterious Function

Serial Adder Two binary numbers to be added are stored in two shift registers A and B. The shift registers are shifted right starting with least significant bit, the bits are added by the full adder and carry is stored in a D flip-flop. When the addition is completed the sum is in regiater A. Serial adder will require n clock pulses for adding n-bit numbers. A parallel adder can perform the n-bit addition in one clock pulse period. However a parallel adder will have n full adders.

Universal Shift Register Clear control Shift-right Shift left Parallel load Parallel output

Counters A register that goes through a prescribed sequence of states upon application of input pulses is called a counter. A counter that follows binary number sequence is called a binary counter n-bit binary counter consists of n flip-flops and count from 0 to 2^n-1.

Ripple Counters Two categories: ripple counters and synchronous counters In a ripple counter the clock input of flip- flops is connected to output of other flip flops Ripple counters do not have a common clock (not synchronous circuit) Synchronous counters have common clock connected to clock input of flip-flops

Ripple Counters

Up-Down Counter

BCD Counter

BCD Counter

Ring Counter

Johnson Counter

Counters With Unused States

Counter Example

bibliography Charles H. Roth- Jr., Fundamentals of logic design, Thomson Asia,5th edition-2004 (CH1,CH2,CH3,CH4,CH5,CH6,CH7,CH9,CH11, CH12) M. Morris Mano, Digital Logic and Computer Design, Prentice Hall of India Floyd, Digital Fundamentals, Universal Book Stall, 3rd Edition,1986 Morris Mano, Digital Design, Prentice Hall of India, 2nd Edition 1991 Bigell & Donovan, Digital Electronics, Thomson Asia Pvt. Ltd., 4th Edition

Review questions State the difference between combinational circuits and sequential circuits? What do you mean by Latches? Give the difference between latches and flip flops? Define Flipflops? List the design procedures for designing a sequential circuit? State the operation of S-R flipflop? State the operation of T-fliflop? State the features of clocked T flipflop?

Review questions Give the characteristics equation for S-R , T,J-K and D-flipflop? What is a counter? What is a buffer register? List the types of shift register? How do you convert JR flipflop into D flipflop? How do you convert T flipflop into D- flipflop? Give the counter applications?