LECTURE 15 – DIGITAL ELECTRONICS

Slides:



Advertisements
Similar presentations
Sequential Logic ENEL 111. Sequential Logic Circuits So far we have only considered circuits where the output is purely a function of the inputs With.
Advertisements

Sequential Logic Building Blocks – Flip-flops
1 Fundamentals of Computer Science Sequential Circuits.
Sequential circuits The digital circuits considered thus far have been combinational, where the outputs are entirely dependent on the current inputs. Although.
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.
ENGIN112 L20: Sequential Circuits: Flip flops October 20, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 20 Sequential Circuits: Flip.
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Chapter #6: Sequential Logic Design Sequential Switching Networks.
Sequential Circuit  It is a type of logic circuit whose output depends not only on the present value of its input signals but on the past history of its.
A presentation on 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
Flip Flop
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 9 Sequential.
Chap 4. Sequential Circuits
Flip-Flops and Registers
Sequential Logic Circuits. Combinational logic circuit A combinational logic circuit is one whose outputs depend only on its current inputs
Chapter 10 Flip-Flops and Registers 1. Objectives You should be able to: Explain the internal circuit operation of S-R and gated S-R flip-flops. Explain.
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
Sahar Mosleh PageCalifornia State University San Marcos 1 More on Flip Flop State Table and State Diagram.
Chapter 6 – Digital Electronics – Part 1 1.D (Data) Flip Flops 2.RS (Set-Reset) Flip Flops 3.T Flip Flops 4.JK Flip Flops 5.JKMS Flip Flops Information.
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.
A latch is a temporary storage device that has two stable states (bistable). It is a basic form of memory. The S-R (Set-Reset) latch is the most basic.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
SIGNAL TRAINING SCHOOL – BORDER SECIRITY FORCE - TIGRI
2018/5/2 EE 4271 VLSI Design, Fall 2016 Sequential Circuits.
FLIP FLOPS Binary unit capable of storing one bit – 0 or 1
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
Flip Flops.
Lecture 8 Dr. Nermi Hamza.
Digital Fundamentals Floyd Chapter 7 Tenth Edition
Flip Flops.
2018/8/29 EE 4271 VLSI Design, Fall 2013 Sequential Circuits.
Synchronous Sequential Circuits
Flip-Flop.
Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and so on require.
Sequential Logic Jess 2006.
Sequential Logic and Flip Flops
CISE204: Design of Digital Systems Lecture 18 : Sequential Circuits
Flip Flop.
Assistant Prof. Fareena Saqib Florida Institute of Technology
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Chapter 11 Sequential Circuits.
Yee-Wing Hsieh Steve Jacobs
Sequential logic circuits
Registers and Counters Register : A Group of Flip-Flops. N-Bit Register has N flip-flops. Each flip-flop stores 1-Bit Information. So N-Bit Register Stores.
Chapter 7 Latches, Flip-Flops, and Timers
Sequential Logic and Flip Flops
Elec 2607 Digital Switching Circuits
触发器 Flip-Flops 刘鹏 浙江大学信息与电子工程学院 March 27, 2018
Synchronous Sequential Circuits
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Sequential Circuits: Latches
University of Maryland Baltimore County Department of Computer Science and Electrical Engineering   CMPE 212 Laboratory (Discussion 10) Hasib Hasan
FLIP-FLOPS.
Synchronous sequential
Synchronous Sequential
Flip-Flops.
Sequential Circuits UNIT- IV
Registers and Counters
Flip-Flops.
Sequential Digital Circuits
Week 11 Flip flop & Latches.
2019/9/26 EE 4271 VLSI Design, Fall 2012 Sequential Circuits.
Digital Electronics and Logic Design
Presentation transcript:

LECTURE 15 – DIGITAL ELECTRONICS Dr Richard Reilly Dept. of Electronic & Electrical Engineering Room 153, Engineering Building

Memory Units: Flip-Flops Four basic flip-flops: RS T D, and JK FF are usually used to build registers and counters  

RS flip-flop Simplest binary storage device. Device is said to be NOTE : and are complements of each other. Device is said to be SET when Q output = 1 and RESET when Q output = 0   Pulse widths are of arbitrary length

Excitation Table for RS flip-flop Truth tables for flip-flops are called excitation tables. Qt-1 S R Qt   1 indeterminate  depends on which input goes to 1 first

RS flip-flop S and R are active high  action occurs a logical 1.   The memory capability : The S inputs sets the flip-flop and outputs remain in that condition after the excitation inputs go inactive  flip-flops store the active set input by causing and flip-flop stores the active reset input by causing As no synchronising clock is present  the flip-flop is said to be asynchronous. Asynchronous flip-flops are often named LATCHes.

Implementation of RS-Flip-Flop RS-flip-flops can be formed from 2 NAND gates and 2 NOR gates.   The cross-coupling from the output of one gate to the input of the other gate constitutes a feedback path. Both inputs remain at 0 normally until state of flip-flop has to be changed

Implementation of RS-Flip-Flop To analyse operation of NOR implementation output of a NOR = 0 if any input = 1 output of a NOR = 1 if both/all inputs = 0 1. As a starting point assume that S = 1 and R = 0.  since Gate 2 has an input = 1   both inputs to Gate 1 = 0    2. when S = 0  outputs remain the same as Q =1  leaves one input to Gate 2 = 1  remains = 0  both inputs to Gate 1 remain = 0 

Implementation of RS-Flip-Flop 3. Can show that a 1 at the Reset input  changes Q to a 0   4. when Reset input returns to 0  the outputs do not change

State Flow Diagram of RS-Flip-Flop State flow diagram illustrates The two stable states of the RS-flip-flop All stable and unstable transitions to the Q=1 state Similarly starting at the Q=1 state, an R=1 input will produce a transition to the Q=0 state.

NAND Implementation of RS-Flip-Flop Another Implementation can be with NAND gates Both inputs remain at 1 normally until state of flip-flop has to be changed   NOTE : position of S and R

RS-Flip-Flop with Enable/Clock input Can have implementation with an enable/clock

Indeterminate State The indeterminate state makes the RS flip-flop difficult to manage and it is seldom used in practice Nevertheless, an important circuit as all other flip-flops can be constructed from it. To overcome the problem with the indeterminate state ensure inputs S and R are never at logic 1 at the same time. Done in the D-flip-flop

The T-flip-flop Name “T” comes from the ability of the flip-flop to toggle or complement its state. When pulse occurs while input T=1  flip-flop complements its output When pulse occurs while input T=0  no change occurs Qt-1 T Qt 1

The T-flip-flop Each time a pulse arrives the output changes state. in this case the negative edge triggers the flip-flop. R is a reset input and will force Q to 0 irrespective of pulses

Example : Ripple Through Binary Counter Operation At each negative edge of the input clock  flip-flop-A toggles, likewise at each negative edge of Q_A  flip-flop B toggles

Example : Ripple Through Binary Counter Outputs DCBA go through sequence and return to zero.

Example : Ripple Through Binary Counter Modulo-10 If we want a decade counter we can apply a reset when DCBA =1010 and force DCBA = 0000

The D-flip-flop D flip-flop has 2 inputs, D and an Enable or Clock. State of its Q output follows that of input at the time of the clock signal’s transition from low to high and is delayed by the device propagation time .   D type latch is a similar device changes its output state when clock input is in high state retains value when the clock input is in low state

The D-flip-flop As long as clock pulse is at 0  output of the AND gates are at logical level 0 and circuit cannot change regardless of the value of D   When clock pulse is at 1  When D = 1  Q = 1 When D = 0  Q = 0

The D-flip-flop The D-flip-flop is given its name because of its ability to hold data into its internal storage. sometimes called a gated D-latch.   From excitation table for D flip-flop, the next state of the flip-flop is independent of the present state since Qi-1 = D where Q = 0 or 1. Qt-1 D Qt 1  pulse at the enable pin will transfer value at input D to output independent of value of output before pulse was applied.

The D-flip-flop

JK-Flip-flop This is a refinement of the R-S flip-flop in that the indeterminate state is defined in the J-K type. Input J behaves like input S input K behaves like input R When both J and K are equal to 1 (the main problem with the RS-flip-flop)  the flip-flop switches to its complement state if Q=1  flip-flop switches to Q=0 .

JK-Flip-flop The output Q is AND’ed with inputs K and Enable.  Flip-flop cleared during a clock pulse only if Q was previously = 1.   Also output is AND’ed with inputs J and Enable.  Flip-flop set with a clock pulse only when was previously = 1.

JK-Flip-flop When both J and Q are 1  input is transmitted through one AND gate only Which one ? The one whose output is currently = 1 Qt-1 J K Qt 1

JK-Flip-flop

Triggering of Flip-flops The state of a flip-flop is switched by a momentary change of the input signal. This momentary change is called a trigger and the transition is said to trigger the flip-flop.   Clocked flip-flops are triggered by pulses. Pulses start from an initial value of 0 Go momentarily to 1 And after a short time return to its initial 0 value

Triggering of Flip-flops Feedback is the main problem with clocked flip-flops : feedback paths between combinational circuits and memory elements can cause instability. must make sure output of flip-flop do not start changing until pulse input has returned to 0. better to make flip-flop sensitive to pulse transitions rather than pulse duration Design the flip-flop to respond only to edge-transitions  eliminate the multiple transition problem.

Master-Slave Flip-Flop Configuration JK flip-flops are ideal for cascading to accomplish various sequential functions.   When two or more flip-flops are cascaded, both outputs of the first flip-flop are connected to the J and K inputs, respectively, of the second flip-flop.

The Master-Slave Flip-Flop The clock inputs to first flip-flop will cause a next state transition Qn+1 to occur on next clock input pulse. Because of inherent path delays of first flip-flop outputs and clock signal, a race condition can occur, causing the second flip-flop to sense Qn+1 instead of Qn

The Master-Slave Flip-Flop A race condition occurs when two or more signal arrive at flip-flop’s inputs at different times, because of different path delays and cause the wrong output state to occur.   A race condition is avoided by using two flop-flops in cascade configured as a unit, one using the true clock and the other the complimented form. known as Master-Slave configuration

The Master-Slave Flip-Flop or considering it another way…. It is important to realise that because of feedback connections in JK-flop-flop, an enable pulse that remains in logic 1 state while both J and K are equal to 1  will cause the output to complement again and repeat complementing until the enable pulse goes back to 0.  the enable pulse must be < the propagation delay time of the flip-flop.

The Master-Slave Flip-Flop This is a very restrictive requirement as operation of the circuit depends on the width of the pulse.  need to have a different design. The Master-Slave Construction

The Master-Slave Flip-Flop Master is isolated from slave and input states are transferred to Master J and K inputs. Inputs of Master flip-flop are inhibited and its output state is transferred to J and K inputs of slave flip-flop Master-Slave configuration eliminates any race conditions.

The Master-Slave Flip-Flop An RS flip-flop implementation also exists When Clock pulse, at the enable, = 0  Output of inverter = 1  Slave enabled (while master disabled)  and

The Master-Slave Flip-Flop When Clock pulse, at the enable, = 1    information at R and S is transmitted to Master    Slave isolated as long as enable pulse = 1   When Clock pulse, at the enable, = 0  Master isolated   External inputs have no effect on Master  but Slave Flip-flop then goes to same state as Master flip-flop

The Master-Slave Flip-Flop Timing Diagram of Master-Slave flip-Flop NOTE : Master-Slave Flip-Flop allows switching of the outputs of flip-flop on negative edge transition of clock pulse. In this arrangement switches on the negative edge To switch on positive edge use another inverter between CP input and Master.