Experiment # 8 Latches And Flip Flops Characteristics

Similar documents
Digital Logic Design Sequential circuits

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

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.

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

Chapter 8. Sequential Circuits for Registers and Counters

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

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

Lesson 12 Sequential Circuits: Flip-Flops

BINARY CODED DECIMAL: B.C.D.

CHAPTER 11 LATCHES AND FLIP-FLOPS

Counters and Decoders

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

Module 3: Floyd, Digital Fundamental

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

ECE380 Digital Logic

Lecture 8: Synchronous Digital Systems

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.

Master/Slave Flip Flops

Modeling Latches and Flip-flops

Theory of Logic Circuits. Laboratory manual. Exercise 3

Engr354: Digital Logic Circuits

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

Memory Elements. Combinational logic cannot remember

Asynchronous Counters. Asynchronous Counters

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

Chapter 9 Latches, Flip-Flops, and Timers

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

Upon completion of unit 1.1, students will be able to

7. Latches and Flip-Flops

Sequential Logic Design Principles.Latches and Flip-Flops

ASYNCHRONOUS COUNTERS

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

Counters & Shift Registers Chapter 8 of R.P Jain

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

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

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

Contents COUNTER. Unit III- Counters

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

Counters. Present State Next State A B A B

CHAPTER 3 Boolean Algebra and Digital Logic

CS311 Lecture: Sequential Circuits

The components. E3: Digital electronics. Goals:

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

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

Flip-Flops and Sequential Circuit Design

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

Lecture-3 MEMORY: Development of Memory:

Chapter 5. Sequential Logic

Digital Electronics Detailed Outline

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

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

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

Combinational Logic Design Process

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

Digital Fundamentals

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

CHAPTER 11: Flip Flops

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

Sequential Logic: Clocks, Registers, etc.

EXPERIMENT 8. Flip-Flops and Sequential Circuits

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

Fig1-1 2-bit asynchronous counter

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

DEPARTMENT OF INFORMATION TECHNLOGY

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

Lecture 7: Clocking of VLSI Systems

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

Registers & Counters

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

CSE140: Components and Design Techniques for Digital Systems

Digital Fundamentals. Lab 8 Asynchronous Counter Applications

A New Paradigm for Synchronous State Machine Design in Verilog

Set-Reset (SR) Latch

CHAPTER IX REGISTER BLOCKS COUNTERS, SHIFT, AND ROTATE REGISTERS

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

Layout of Multiple Cells

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

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

Design: a mod-8 Counter

State Machines in VHDL

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

Modeling Registers and Counters

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

Operating Manual Ver.1.1

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

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

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

Sequential Circuits. Combinational Circuits Outputs depend on the current inputs

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

Lab 1: Study of Gates & Flip-flops

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

Chapter 2 Logic Gates and Introduction to Computer Architecture

Cascaded Counters. Page 1 BYU

Advanced Logic Design Techniques in Asynchronous Sequential Circuit Synthesis

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

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

Systems I: Computer Organization and Architecture

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

Transcription:

Digital Design LAB Islamic University Gaza Engineering Faculty Department of Computer Engineering Fall 2012 ECOM 2112: Digital Design LAB Eng: Ahmed M. Ayash Experiment # 8 Latches And Flip Flops Characteristics November 25, 2012

1. Objectives: 1. To become familiar with flip-flops. 2. To implement and observe the operation of different flip-flops. 2. Theory: Sequential Circuits: Digital electronics is classified into combinational logic and sequential logic. Combinational logic output depends on the inputs levels, whereas sequential logic output depends on stored levels and also the input levels. The memory elements are devices capable of storing binary info. The binary info stored in the memory elements at any given time defines the state of the sequential circuit. The input and the present state of the memory element determine the output. Memory elements next state is also a function of external inputs and present state. A sequential circuit is specified by a time sequence of inputs, outputs, and internal states. Examples of sequential circuits are Flip-Flops, latches, counters, registers, and time state generators. So, combinatorial circuits are ones whose outputs depend on the current input state. When inputs change, the outputs do not depend on the previous inputs. Sequential circuits are similar, but they do also rely on previous input states. It can be inferred that they have memory. There are two types of sequential circuits. Their classification depends on the timing of their signals: Synchronous sequential circuits Asynchronous sequential circuits Synchronization is achieved by a timing device called a clock pulse generator. Clock pulses are distributed throughout the system in such a way that the flip-flops are affected only with the arrival of the synchronization pulse. Synchronous sequential circuits that use clock pulses in the inputs are called clocked-sequential 1

circuits. They are stable and their timing can easily be broken down into independent discrete steps, each of which is considered separately. Synchronous The same clock signal is applied to each flip-flop, and changes in state occur when the clock changes state from one level to another. Asynchronous The behavior of an asynchronous circuit depends on the order in which the inputs change. Sometimes, there is an input labeled clock, that provides some level of synchronization, but it is normally only applied to one flip-flop. In addition to this style of asynchronous circuit, you also get gate-level asynchronous circuits, which are combinatorial circuits with feedback. Flip-Flops & Latches: "Flip-flop" is the common name given to two-state devices which offer basic memory for sequential logic operations. Flip-flops are heavily used for digital data storage and transfer and are commonly used in banks called "registers" for the storage of binary numerical data. Types of Flip-Flops There are several types of flip-flops and they are R-S, J-K, D and T flip-flops, but the two most important kinds are the D and J-K flip-flops. SR latch The flip-flop circuit can be constructed from tow NAND gates or tow NOR gates. 2

The NOR SR latch has active high inputs, meaning that if either input is brought high, it will force a corresponding output condition. Note that setting both input values high must be avoided in order to retain the output values as opposite to each other. The NAND based SR latch is an active low device with a default state of logic high for both S and R inputs. The S and R input values are brought low to change the state. Just as the NOR based SR latch should not have both input values turned high simultaneously, the S and R for a NAND based SR latch should not be brought low at the same time. Latches vs. Flip-Flops:- Latches are flip-flops for which the timing of the output changes is not controlled. For a latch, the output essentially responds immediately to changes on the input lines (and possibly the presence of a clock pulse). A flip-flop is designed to change its output at the edge of a controlling clock signal. 3

RS Flip-Flop: In order to avoid this indeterministic behavior, we must make sure that the two inputs are never de-asserted at the same time. Note that both of them can be deasserted, but just not at the same time. In practice, this is guaranteed by not having both of them asserted. Another reason why we do not want both inputs to be asserted is that when they are both asserted, Q is equal to Q', but we usually want Q to be the inverse of Q'. D Flip-Flop: The D flip-flop is widely used. It is also known as a data or delay flip-flop. The D flip-flop captures the value of the D-input at a definite portion of the clock cycle (such as the rising edge of the clock). That captured value becomes the Q output. At other times, the output Q does not change. The D flip-flop can be viewed as a memory cell, a zero-order hold, or a delay line. 4

JK Flip-Flop: The JK flip-flop is the most versatile of the basic flip-flops. It has the inputfollowing character of the clocked D flip-flop but has two inputs, traditionally labeled J and K. If J and K are different then the output Q takes the value of J at the next clock edge. JK flip-flop from D flip-flop T Flip-Flop: The T flip-flop is a single input version of the JK flip-flop. The T flip-flop is obtained from the JK type if both inputs are tied together. The output of the T flip-flop "toggles" with each clock pulse. 5

Table 1. Flip-Flop Types Excitation tables for flip-flops For SR: Q S R Q(T+1) 0 0 0 0 0 0 1 0 0 1 0 1 0 1 1? 1 0 0 1 1 0 1 0 1 1 0 1 1 1 1? 6

Q Q(T+1) S R 0 0 0 0 0 1 0 1 1 0 1 0 0 1 1 1 0 0 1 0 For T: Q T Q(T+1) 0 0 0 0 1 1 1 0 1 1 1 0 Q Q(T+1) S R 0 0 0 x 0 1 1 0 1 0 0 1 1 1 x 0 Excitation table for SR flip-flop Q Q(T+1) T 0 0 0 0 1 1 1 0 1 1 1 0 Follow the same steps to find other Excitation table for flip-flops. Excitation table for T flip-flop Examples for converting flip-flop: Example 1: Convert a D-FF to a T-FF: Solution: Consider the excitation table: 7

Treating D as a function of T and current FF state Q, we have Q T 0 1 0 1 0 1 1 0 Example 2: Convert a D-FF to a JK-FF: Solution: Consider the excitation table: Using K-map: D = Q'J + K'Q 8

Timing diagram: Timing diagram for the positive edge triggered D flip-flop: The timing diagram for the negatively triggered JK flip-flop Timing diagram for the D latch 9

3. Lab Work: Part1: D Flip-Flop: - Construct D Flip-Flop using KL-33008 block d as shown then test the results. Part2: JK Flip-Flop: - Construct JK Flip-Flop using KL-33008 block d as shown then test the results. 10

Part3: T Flip-Flop: - Construct T Flip-Flop using KL-33008 block d, then test the results. Part4: RS Latch & RS Flip-Flop: - Construct RS Latch using KL-33008 block d, then test the results. 11

- Construct RS Flip-Flop using KL-33008 block d, then test the results. 4. Exercises: 1) Convert a RS-FF to a JK-FF: 2) Convert a RS-FF to a D-FF: 12

3) Complete the timing diagram for D Latch: 13