Strengthening your knowledge about sequential circuits: latches and flip-flops;



Similar documents
CHAPTER 11: Flip Flops

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

Modeling Latches and Flip-flops

Modeling Registers and Counters

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

Master/Slave Flip Flops

Lesson 12 Sequential Circuits: Flip-Flops

Counters and Decoders

Theory of Logic Circuits. Laboratory manual. Exercise 3

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.

Sequential Logic: Clocks, Registers, etc.

Module 3: Floyd, Digital Fundamental

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

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

EXPERIMENT 8. Flip-Flops and Sequential Circuits

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

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

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

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

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

1.1 The 7493 consists of 4 flip-flops with J-K inputs unconnected. In a TTL chip, unconnected inputs

Lecture-3 MEMORY: Development of Memory:

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

Jianjian Song LogicWorks 4 Tutorials (5/15/03) Page 1 of 14

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

Lecture 8: Synchronous Digital Systems

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

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

Making Basic Measurements. Publication Number August Training Kit for the Agilent Technologies Series Logic Analysis System

ASYNCHRONOUS COUNTERS

Measuring Metastability

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

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

Sequential Logic Design Principles.Latches and Flip-Flops

Set-Reset (SR) Latch

Using Altera MAX Series as Microcontroller I/O Expanders

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

Chapter 9 Latches, Flip-Flops, and Timers

Contents COUNTER. Unit III- Counters

Operating Manual Ver.1.1

The 104 Duke_ACC Machine

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

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

Laboratory Guide. Anatomy and Physiology

LAB4: Audio Synthesizer

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

A Digital Timer Implementation using 7 Segment Displays

1. Learn about the 555 timer integrated circuit and applications 2. Apply the 555 timer to build an infrared (IR) transmitter and receiver

Finite State Machine Design A Vending Machine

Engr354: Digital Logic Circuits

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

Accurate Measurement of the Mains Electricity Frequency

Debouncing Switches. Mechanical switches are one of the most common interfaces to a uc.

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

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

ECONseries Low Cost USB DAQ

CHAPTER 3 Boolean Algebra and Digital Logic

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

Digital Controller for Pedestrian Crossing and Traffic Lights

The components. E3: Digital electronics. Goals:

Timer A (0 and 1) and PWM EE3376

ECE380 Digital Logic

Asynchronous Counters. Asynchronous Counters

Registers & Counters

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

Massachusetts Institute of Technology

I 2 S bus specification

RETRIEVING DATA FROM THE DDC112

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

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

Upon completion of unit 1.1, students will be able to

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

DATA SHEET. HEF4017B MSI 5-stage Johnson counter. For a complete data sheet, please also download: INTEGRATED CIRCUITS

Lab 1: Introduction to Xilinx ISE Tutorial

Counters. Present State Next State A B A B

Digital Logic Design Sequential circuits

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

CHAPTER 11 LATCHES AND FLIP-FLOPS

Digital Sampling Oscilloscope

1. Oscilloscope is basically a graph-displaying device-it draws a graph of an electrical signal.

PLL frequency synthesizer

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

TRUE SINGLE PHASE CLOCKING BASED FLIP-FLOP DESIGN

Traffic Light Controller. Digital Systems Design. Dr. Ted Shaneyfelt

Chapter 8. Sequential Circuits for Registers and Counters

ECE232: Hardware Organization and Design. Part 3: Verilog Tutorial. Basic Verilog

DEPARTMENT OF INFORMATION TECHNLOGY

A Lesson on Digital Clocks, One Shots and Counters

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

Academic year: 2015/2016 Code: IES s ECTS credits: 6. Field of study: Electronics and Telecommunications Specialty: -

A Lesson on Digital Clocks, One Shots and Counters

Counters & Shift Registers Chapter 8 of R.P Jain

APPLICATION NOTE GaGe CompuScope based Lightning Monitoring System

Conversion Between Analog and Digital Signals

A New Paradigm for Synchronous State Machine Design in Verilog

MICROPROCESSOR. Exclusive for IACE Students iacehyd.blogspot.in Ph: /422 Page 1

Digital Logic Elements, Clock, and Memory Elements

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

Transcription:

Laboratory 7 Flip-Flops 7.1 Objectives The objectives of this lab class are the following: Strengthening your knowledge about sequential circuits: latches and flip-flops; Exercising the usage of the oscilloscope and the logic analyser to investigate sequential circuits, as well as designing stimulus generators. 7.2 Latch - Flip-Flop comparison The 7474 integrated circuit (IC) contains two flip-flops. The 7475 contains two latches. The package outlines and significance of the pins are shown in figure 7.1. (7474) (7475) Figure 7.1 Package outlines of 7474 (2 flip-flops) and 7475 (2 latches). In order to compare the behavior of a flip-flop with the behavior of a latch we need to trigger both circuits with the same input signals (data and clock). The input signals used for demonstration purposes for this lab are generated using a complex signal generator implemented on the FPGA board. The circuit which need to be created by you is shown in figure 7.2.

78 LABORATORY 7. Flip-Flops Figure 7.2 The schematic of the circuit used for behavioral comparison of the latch and flip-flop. Implement the circuit by connecting the test pattern generatorş outputs (FPGA board) to the proper inputs of the latch and flip-flop. The mapping of the input/outputs is shown in table 7.1. Table 7.1 Mapping between the FPGA boardş connectors and ports of the latch and flip-flop. Significance Board connector J4-IO9 J4-IO10 To configure the FPGA board use the configuration file available on the lab s website (gensignal- LatchFf.bit). Configured with this bitstream, the FPGA will generate the waveforms shown in figure 7.3. Figure 7.3 The clock and data signals used for behavioral comparison of the latch and flip-flop Connect the oscilloscope s probes as shown in figure 7.2. View the waveforms and compare the behavior of the latch with the behavior of the flip-flop. raw the viewed waveforms, as shown in figure 7.4, by taking into account timing correlation of the input and output signals. As an alternative, visualize the same waveforms using teh logic analyser. The project file (gen- LatchFf.LPF) for the analyser can be downloaded form the lab s website. Figure 7.5 shows waveforms of the clock, input data and output data of the 7474 flip-flop and the 7475 latch, viewed on the oscilloscope and logic analyser. Verify the correctness of the waveforms based on the following definitions: Latch: bypasses the input signal to the output while the clock signal is active (high). Maintains the last state while the clock is inactive (low).

7.3. Synchronous flip-flops connected in series 79 Qlatch Qff Figure 7.4 Waveforms of behavioral comparison of flip-flop and latch. always @( or ) if () Qlatch <= ; Flip-Flop: The flip-flop is edge sensitive. At the moment when a rising edge on the clock signal occurs, the value of the input signal is memorized and the output is maintained until the next rising edge event. always @(posedge ) Qff <= ; Note that that CH1 and CH2 of the oscilloscope are analog, while CH3 and CH4 are digital (the outputs of the latch and flip-flops are connected to the digital channels). Observe the differences between the waveforms shown by the oscilloscope and the waveforms shown by the logic analyser. Observe the differences between the same waveforms shown on the analog channels (1 and 2) and the digital channels (3 and 4). (View the same waveform in the same time on channel 1 and channel 3). What is causing the visible differences? Figure 7.6 shows a part of figure 7.5, but in more detail. You can observe the propagation of the input pulses through the latch in the time interval when the clock signal is high. This pulses are ignored by the flip-flop. The input pulses which occurs while the clock signal is low are ignored by both the latch and the flip-flop. 7.3 Synchronous flip-flops connected in series Study the behavior of two flip-flops connected in series, using the circuit shown in figure 7.7. Both flip-flops works on the same clock signal. The input signal of the first flip-flop is connected to the signal generator implemented on the FPGA board. The output of the first flip-flop is fed to the input of the second one. raw, as shown in figure 7.8, the waveforms of the outputs of the two flip-flops, taking into account the timing correlation between them and the input signals. The waveforms shown in figure 7.9 points out the fact that the output signal of the second flip-flop is the delayed version of the output signal of the first flip-flop. Note the sampled logic state at the input of the second flip-flop. Although it seems that the input is modified exactly at the moment of rising edge of the clock, the input is sampled to the previous value of input signal (the value which was present on the input prior to the rising edge of the clock).

80 LABORATORY 7. Flip-Flops Figure 7.5 Waveforms of the 7474 flip-flop and the 7475 latch, as shown on the oscilloscope and on the logic analyser.

7.3. Synchronous flip-flops connected in series 81 Figure 7.6 etail: Waveforms of the 7474 flip-flop and 7475 -latch (as shown on the oscilloscope and on the logic analyser). Figure 7.7 Circuit used to study the behavior of two flip-flops connected in series. Qff1 Qff2 Figure 7.8 Waveforms of the 2 flop-flops connected in series.

82 LABORATORY 7. Flip-Flops Figure 7.9 Waveforms of the synchronous flop-flops connected in series.