ECEN 454 Lab8: Design & Characterization of a Flip-flop

Similar documents
Document Contents Introduction Layout Extraction with Parasitic Capacitances Timing Analysis DC Analysis

Sequential 4-bit Adder Design Report

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

Laboratory 4: Feedback and Compensation

UNIVERSITY OF CALIFORNIA College of Engineering Department of Electrical Engineering and Computer Sciences

Set-Reset (SR) Latch

Lesson 12 Sequential Circuits: Flip-Flops

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

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

Sequential Logic: Clocks, Registers, etc.

Memory Elements. Combinational logic cannot remember

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

CHAPTER 11: Flip Flops

7. Latches and Flip-Flops

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

Master/Slave 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.

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

Lecture 11: Sequential Circuit Design

ECE410 Design Project Spring 2008 Design and Characterization of a CMOS 8-bit Microprocessor Data Path

SIMULATIONS OF PARALLEL RESONANT CIRCUIT POWER ELECTRONICS COLORADO STATE UNIVERSITY

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

PSPICE TUTORIAL (BASIC)

Sequential Circuits. Combinational Circuits Outputs depend on the current inputs

True Single Phase Clocking Flip-Flop Design using Multi Threshold CMOS Technique

ECE380 Digital Logic

Lab 1: Introduction to PSpice

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

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

ASYNCHRONOUS COUNTERS

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

Pulse Width Modulation (PWM) LED Dimmer Circuit. Using a 555 Timer Chip

Op-Amp Simulation EE/CS 5720/6720. Read Chapter 5 in Johns & Martin before you begin this assignment.

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

CMOS Power Consumption and C pd Calculation

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

Experiment #11: LRC Circuit (Power Amplifier, Voltage Sensor)

Engr354: Digital Logic Circuits

EXPERIMENT NUMBER 5 BASIC OSCILLOSCOPE OPERATIONS

CHAPTER 11 LATCHES AND FLIP-FLOPS

Theory of Logic Circuits. Laboratory manual. Exercise 3

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

Flip-Flops and Sequential Circuit Design

ECE124 Digital Circuits and Systems Page 1

Design and analysis of flip flops for low power clocking system

Lecture 10: Sequential Circuits

EE 242 EXPERIMENT 5: COMPUTER SIMULATION OF THREE-PHASE CIRCUITS USING PSPICE SCHEMATICS 1

TRUE SINGLE PHASE CLOCKING BASED FLIP-FLOP DESIGN

LAB 7 MOSFET CHARACTERISTICS AND APPLICATIONS

Digital Electronics Detailed Outline

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

Modeling Latches and Flip-flops

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

Combinational Logic Design Process

Class 11: Transmission Gates, Latches

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

Virtuoso Analog Design Environment Family Advanced design simulation for fast and accurate verification

CADENCE LAYOUT TUTORIAL

Sequential Logic Design Principles.Latches and Flip-Flops

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

A true low voltage class-ab current mirror

CMOS Thyristor Based Low Frequency Ring Oscillator

Alpha CPU and Clock Design Evolution

CHAPTER 16 MEMORY CIRCUITS

A Survey on Sequential Elements for Low Power Clocking System

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

Lab #9: AC Steady State Analysis

StarRC Custom: Next-Generation Modeling and Extraction Solution for Custom IC Designs

A Digital Timer Implementation using 7 Segment Displays

VENDING MACHINE. ECE261 Project Proposal Presentaion. Members: ZHANG,Yulin CHEN, Zhe ZHANG,Yanni ZHANG,Yayuan

CSE140: Components and Design Techniques for Digital Systems

Low Cost Pure Sine Wave Solar Inverter Circuit

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

Counters and Decoders

Digital Fundamentals. Lab 8 Asynchronous Counter Applications

S. Venkatesh, Mrs. T. Gowri, Department of ECE, GIT, GITAM University, Vishakhapatnam, India

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

Gates, Circuits, and Boolean Algebra

LOW POWER DESIGN OF DIGITAL SYSTEMS USING ENERGY RECOVERY CLOCKING AND CLOCK GATING

Title : Analog Circuit for Sound Localization Applications

EXPERIMENT 8. Flip-Flops and Sequential Circuits

Harmonics and Noise in Photovoltaic (PV) Inverter and the Mitigation Strategies

Layout of Multiple Cells

LABORATORY 2 THE DIFFERENTIAL AMPLIFIER

International Journal of Electronics and Computer Science Engineering 1482

Design: a mod-8 Counter

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

Three-Phase Dual-Rail Pre-Charge Logic

Chapter 5. Sequential Logic

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

DEGREE: Bachelor in Biomedical Engineering YEAR: 2 TERM: 2 WEEKLY PLANNING

SERIES-PARALLEL DC CIRCUITS

Lab 3 Layout Using Virtuoso Layout XL (VXL)

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

Measuring Metastability

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

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

Introduction to CMOS VLSI Design

Lecture 7: Clocking of VLSI Systems

Transcription:

1. Introduction After completing the design of a single combinational stage of the design, you will next design the basic sequential element that will be used in the design, i.e., the Flip-Flop (FF). In this lab you will be required to design Flip-Flop and also characterize its delay, input capacitance and its setup and hold time. 2. Design of a Flip-Flop A Flip-Flop is built from a pair of back-to-back latches. These latches operate on the opposite edges of the clock signal and are called the Master and Slave respectively. The Master latch is the one that receives the input at one edge of the clock (negative/positive) and the Slave latch will transfer the output of the Master latch to the output on the opposite phase (positive/negative) of the clock. A sample schematic of static Flip-Flop is given below. Please clearly see how the clock signals, CLK( φ) or CLK( φ ) and pass gates are connected. Design and implement the layout of the above schematic. Clearly observe how the pass gates are controlled through CLK( φ) or CLK( φ ). In both schematic & layout, be sure to connect the substrate contact of each transistor to VDD/GND, even though the transistor composes pass gate where neither of drain and source of the transistor is connected to VDD/GND. A symbol of Flip-Flop will have both CLK( φ) and CLK( φ ) inputs, so you don t need an inverter inside to generate CLK( φ ). Simulate (thru analog simulation) the transistor level schematic first before designing layout in order to verify in advance if your schematic is working correctly. As you implement the layout design, please make sure you continuously check for DRC errors. Texas A & M University Page 1

Perform DRC and LVS checks. Then do the post-layout simulations on your design. Provide a rising D input and a clock (with its complement) to your FF to see if you get the corresponding rising Q output. Check for the falling D input as well. This will ensure that your design is working fine. 3. Characterization To characterize your Filp-Flop design, you may use the test circuit that you use to perform the postlayout simulations. Cell Delay Table: Vary the load at the output of the FF from 1fF to 100fF and find the rising and falling delays of the FF. Note that you have to find the clock-to-q delay of the circuit, since the FF latches the new value only at the active edge of the clock. Also size the transistors such that the rising and falling delays when the output load is 100fF may not have a difference of more than 10%. Input Capacitance: Use the method we used in Lab7 to find the input capacitance of the FF. This may be done by placing vsin, a sinusoidal voltage source (Vdc=0V, magnitude=1) at the D input of the circuit. Then instead of performing a transient analysis of the circuit, we perform an ac analysis which can be chosen by Analyses > Choose. Then select ac and type in start frequency of 1 and end frequency of 1G. (Make sure that this is the only kind of analyses performed. You may get rid of the transient analysis by choosing the Analyses type in the simulation window and then selecting Analyses > Delete. The Analog Design Environment window will now look as below. To calculate input sink capacitance, we need to get current waveform which depicts current following into the input D. In your schematic, the sinusoidal voltage source (vsin) is attached to the input D, therefore we need to see the current from vsin. In the Analog Design Environment window, select Outputs > To Be Plotted > Select On Schematic. In the schematic window, click on the + terminal of vsin which is connected to the input D. A circle will be marked on the terminal as seen in the figure Texas A & M University Page 2

below. The output list in Analog Design Environment window will look as below. If you want to keep the simulation results, please also check the Save option in the Output panel. Run simulation, and you will see a waveform which shows current into the input D vs. frequency. Then the waveform would show like left picture below, single click x axis freq(hz) and choose Axis->Log to make it looks linear as shown right. Next step to calculate input sink capacitance is as given in Lab 3 manual. You need to choose 10 points, get frequency, current for each point, calculate capacitance using C=I/2 for each node, then get the mean value. Texas A & M University Page 3

Setup Time: It is the time required for the input data signal at a Flip-Flop to be valid before the incoming clock edge arrives. To measure the setup time of your device you will have to measure the clock-to-q delay of the flip-flop by varying the time gap between the D input and the clock's rising edge. You will have to begin with the D input arriving much earlier than the clock rising input and measure the delay for this case, following which you have to bring in the D input closer to the 'CLK' input and measure the delay at each step. Continue this until the FF reaches a meta-stable state, i.e., the FF will give an erroneous output. This can be simply observed when either: a) The D input does not cause a change in output in the present clock cycle b) Or the clock-to-q delay increases drastically c) Or there are oscillations in the output between 0 and 1. You are more likely to observe either a) or b). Now measure the setup time at this point by finding the time difference between the D input and clock input. Repeat this procedure for both the D input rising and falling cases. The longer of the two setup times obtained will be the setup time of the FF. (Optional: You can do parametric simulations to view multiple results. Use a parameter for whatever value you would be changing. Set up analog environment as before. Copy variables from cell view. Then go to tools->parametric analysis. Enter the variable name, variable limits and number of steps. Choose Analysis-start to begin the simulations. You can view the simulation results as before) Follow the steps below to run parametric simulation. - Open property window of the vpulse connected to the input D. In the Delay time option, please type delay. The property window will resemble as below. Texas A & M University Page 4

- Setup Analog Design Environment window as before to run transient simulation. Just run simulation, and delay will be automatically added into Design Variables list as below. - In the Analog Design Environment window, select Tools > Parametric Analysis. Then, type delay in the Variable Name option. The Parametric Analysis window will look as below. You need to adjust sweep ranges (from & to) and simulation steps by yourself to control the input D timing to see how the timings of input D affects the output Q. Select Analysis > Start in Parametric Analysis window to run sweep simulations. - Then you waveform would be similar as belows. In order to split these group signals, you need to click the signal you want to choose, then right click Move to ->New Strip. Then the signal would be splitted. Texas A & M University Page 5

Hold Time: It is the time required for the input data signal to be valid after the transition on the clock edge. We will not be measuring the hold time in this lab. Report Requirements: 1. Schematic, layout, and LVS report of your design of Flip-Flop 2. Report a plot sufficiently verifying the correctness of your design. (CLK, _CLK, falling & rising of D and Q). 3. Report the rising and falling clock-to-q delays of the FF in table format with respect to output loads (10 points from 1fF to 100fF). 4. Report the input capacitance of input D with the plot from AC simulation. 5. Report the setup time for both the D rising and falling in a delay table format where in the clock-to-q delay is measured for varying separations between the D input and the CLK rising edge. Please clarify how you determine the setup time of your design. Texas A & M University Page 6