Report on 4-bit Counter design Report- 1, 2. Report on D- Flipflop. Course project for ECE533

Similar documents
Design and Simulation of a Digital CMOS Synchronous 4-bit Up-Counter with Set and Reset

Electrical & Computer Engineering ECE 491. Introduction to VLSI. Report 1

EL302 DIGITAL INTEGRATED CIRCUITS LAB #3 CMOS EDGE TRIGGERED D FLIP-FLOP. Due İLKER KALYONCU, 10043

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

Asynchronous (Ripple) Counters

ELEC 4609 IC DESIGN TERM PROJECT: DYNAMIC PRSG v1.2

Experiment 8 Introduction to Latches and Flip-Flops and registers

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

RS flip-flop using NOR gate

SEQUENTIAL LOGIC. Satish Chandra Assistant Professor Department of Physics P P N College, Kanpur

Introduction. NAND Gate Latch. Digital Logic Design 1 FLIP-FLOP. Digital Logic Design 1

EMT 125 Digital Electronic Principles I CHAPTER 6 : FLIP-FLOP

Chapter 4. Logic Design

Chapter 6. Flip-Flops and Simple Flip-Flop Applications

CS/EE 6710 Digital VLSI Design CAD Assignment #3 Due Thursday September 21 st, 5:00pm

Combinational vs Sequential

ELCT201: DIGITAL LOGIC DESIGN

D Latch (Transparent Latch)

Chapter 5 Flip-Flops and Related Devices

ECE 341. Lecture # 2

Flip-Flops. Because of this the state of the latch may keep changing in circuits with feedback as long as the clock pulse remains active.

Digital Fundamentals: A Systems Approach

Logic Gates, Timers, Flip-Flops & Counters. Subhasish Chandra Assistant Professor Department of Physics Institute of Forensic Science, Nagpur

COE 202: Digital Logic Design Sequential Circuits Part 1. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

RS flip-flop using NOR gate

Counter dan Register

IT T35 Digital system desigm y - ii /s - iii

LATCHES & FLIP-FLOP. Chapter 7

EEE2135 Digital Logic Design Chapter 6. Latches/Flip-Flops and Registers/Counters 서강대학교 전자공학과

Counters

Logic and Computer Design Fundamentals. Chapter 7. Registers and Counters

ASYNCHRONOUS COUNTER CIRCUITS

Design of a Low Power Four-Bit Binary Counter Using Enhancement Type Mosfet

Sequential Logic. E&CE 223 Digital Circuits and Systems (A. Kennings) Page 1

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-III SEQUENTIAL CIRCUITS

Chapter 7 Counters and Registers

Module -5 Sequential Logic Design

Unit 11. Latches and Flip-Flops

(CSC-3501) Lecture 7 (07 Feb 2008) Seung-Jong Park (Jay) CSC S.J. Park. Announcement

CHAPTER 6 COUNTERS & REGISTERS

Name Of The Experiment: Sequential circuit design Latch, Flip-flop and Registers

Chapter 5 Synchronous Sequential Logic

Rangkaian Sekuensial. Flip-flop

CHAPTER 1 LATCHES & FLIP-FLOPS

Switching Theory And Logic Design UNIT-IV SEQUENTIAL LOGIC CIRCUITS

A NOVEL DESIGN OF COUNTER USING TSPC D FLIP-FLOP FOR HIGH PERFORMANCE AND LOW POWER VLSI DESIGN APPLICATIONS USING 45NM CMOS TECHNOLOGY

Flip Flop. S-R Flip Flop. Sequential Circuits. Block diagram. Prepared by:- Anwar Bari

Sequential Digital Design. Laboratory Manual. Experiment #7. Counters

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) LATCHES and FLIP-FLOPS

Final Exam review: chapter 4 and 5. Supplement 3 and 4

ELE2120 Digital Circuits and Systems. Tutorial Note 7

3 Flip-Flops. The latch is a logic block that has 2 stable states (0) or (1). The RS latch can be forced to hold a 1 when the Set line is asserted.

INTRODUCTION TO SEQUENTIAL CIRCUITS

VTU NOTES QUESTION PAPERS NEWS RESULTS FORUMS Registers

Introduction to Sequential Circuits

FLIP-FLOPS AND RELATED DEVICES

Sequential Logic Circuits

cascading flip-flops for proper operation clock skew Hardware description languages and sequential logic

Chapter 5 Sequential Circuits

Chapter. Synchronous Sequential Circuits

Scanned by CamScanner

Sequential Logic Basics

1. Convert the decimal number to binary, octal, and hexadecimal.

ELCT201: DIGITAL LOGIC DESIGN

UNIT III. Combinational Circuit- Block Diagram. Sequential Circuit- Block Diagram

12-bit Wallace Tree Multiplier CMPEN 411 Final Report Matthew Poremba 5/1/2009

55:131 Introduction to VLSI Design Project #1 -- Fall 2009 Counter built from NAND gates, timing Due Date: Friday October 9, 2009.

Lecture 8: Sequential Logic

Experiment # 9. Clock generator circuits & Counters. Digital Design LAB

MC9211 Computer Organization

Vignana Bharathi Institute of Technology UNIT 4 DLD

Sequential Digital Design. Laboratory Manual. Experiment #3. Flip Flop Storage Elements

Flip-Flops and Sequential Circuit Design

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) COUNTERS

WINTER 15 EXAMINATION Model Answer

Module for Lab #16: Basic Memory Devices

Logic Design. Flip Flops, Registers and Counters

Digital Design, Kyung Hee Univ. Chapter 5. Synchronous Sequential Logic

CHAPTER1: Digital Logic Circuits

PESIT Bangalore South Campus

EKT 121/4 ELEKTRONIK DIGIT 1

EKT 121/4 ELEKTRONIK DIGIT 1

Digital Logic Design ENEE x. Lecture 19

ESE 570 STATIC SEQUENTIAL CMOS LOGIC CELLS. Kenneth R. Laker, University of Pennsylvania, updated 25Mar15

CHAPTER 4: Logic Circuits

Review of digital electronics. Storage units Sequential circuits Counters Shifters

CPS311 Lecture: Sequential Circuits

More on Flip-Flops Digital Design and Computer Architecture: ARM Edition 2015 Chapter 3 <98> 98

EE292: Fundamentals of ECE

CHAPTER 4: Logic Circuits

Name: Date: Suggested Reading Chapter 7, Digital Systems, Principals and Applications; Tocci

DIGITAL CIRCUIT COMBINATORIAL LOGIC

Other Flip-Flops. Lecture 27 1

SEMESTER ONE EXAMINATIONS 2002

DESIGN AND IMPLEMENTATION OF SYNCHRONOUS 4-BIT UP COUNTER USING 180NM CMOS PROCESS TECHNOLOGY

B. Sc. III Semester (Electronics) - ( ) Digital Electronics-II) BE-301 MODEL ANSWER (AS-2791)

PRE J. Figure 25.1a J-K flip-flop with Asynchronous Preset and Clear inputs

EET2411 DIGITAL ELECTRONICS

CSE115: Digital Design Lecture 23: Latches & Flip-Flops

Transcription:

Report on 4-bit Counter design Report- 1, 2. Report on D- Flipflop Course project for ECE533

I. Objective: REPORT-I The objective of this project is to design a 4-bit counter and implement it into a chip with the help of Cadence (custom IC design tool) following necessary steps and rules dependent on selected process technology. II. Selection of Counter design: The chosen design for the 4-bit counter is a simple 4-bit synchronous counter with synchronous set and reset option and input and output carry option. The reasons behind choosing this design are i. Synchronous counter is the most used and reliable counter design ii. Synchronous design ensures that all the output bits change simultaneously at the edge of a clock signal and holds that output until the next clock signal iii. Low propagation delay than asynchronous counter iv. The set reset options become effective with clock edge signal, so the outputs do not change suddenly in mid-clock-period. v. Set/ reset options allows to clear the count data to start new counting session. vi. Carry in and carry out allows 8-bit or higher bits counters by cascading. III. Selection of Flip-flop: The basic building block of a counter is flip-flop. The choice of flip-flop depends on the logic function of the circuit. The loguc function of the counter suggests a T flipflop as most appropriate for the design. But I chose to use a J K Fliflop for the following reasons i. J K fliflop allows to include both set and reset feature in it which can also be synchronous with the clock. ii. A T fliflop can be easily produced from a J K fliflop by applying the same input to both J and K pin.

IV. Design Steps: Cadence is one of the most popular, efficient and commercial custom IC design tool widely used for transforming a design idea to fabrication. For fruitful production of an IC from a design concept a sequence of steps has to followed. The flow chart below describes these steps- Design Specification Schematic Capture Create Symbol Simulation Layout DRC- Design rule Check Extraction LVS - Layout vs Schematic Check Post layout Simulation

V. Truth tables and K-maps: Present state Next state J3 K3 J2 K2 J1 K1 J0 K0 0000 0001 0 X 0 X 0 X 1 X 0001 0010 0 X 0 X 1 X X 1 0010 0011 0 X 0 X X 0 1 X 0011 0100 0 X 1 X X 1 X 1 0100 0101 0 X X 0 0 X 1 X 0101 0110 0 X X 0 1 X X 1 0110 0111 0 X X 0 X 0 1 X 0111 1000 1 X X 1 X 1 X 1 1000 1001 X 0 0 X 0 X 1 X 1001 1010 X 0 0 X 1 X X 1 1010 1011 X 0 0 X X 0 1 X 1011 1100 X 0 1 X X 1 X 1 1100 1101 X 0 X 0 0 X 1 X 1101 1110 X 0 X 0 1 X X 1 1110 1111 X 0 X 0 X 0 1 X 1111 0000 X 1 X 1 X 1 X 1 K-maps: Q 1 Q 0 Q 3 Q 2 00 01 11 10 00 0 0 0 0 01 0 0 1 0 11 x x x X 10 x x x x Q 1 Q 0 Q 3 Q 2 00 01 11 10 00 x x x X 01 x X x x 11 0 0 1 0 10 0 0 0 0 J 3 = Q 2 Q 1 Q 0 K 3 = Q 2 Q 1 Q 0 Q 1 Q 0 Q 3 Q 2 00 01 11 10

00 0 0 1 0 01 X X X X 11 X X X X 10 0 0 1 0 Q 1 Q 0 Q 3 Q 2 00 01 11 10 00 x x x X 01 0 0 1 0 11 0 0 1 0 10 x x x X J 2 =Q 1 Q 0 K 2 = Q 1 Q 0 Q 1 Q 0 Q 3 Q 2 00 01 11 10 00 0 1 x X 01 0 1 x X 11 0 1 x x 10 0 1 x x Q 1 Q 0 Q 3 Q 2 00 01 11 10 00 x x 1 0 01 x x 1 0 11 x x 1 0 10 x x 1 0 J 1 =Q 0 K 1 =Q 0 Q 1 Q 0 Q 3 Q 2 00 01 11 10 00 1 1 1 1 01 x x x x 11 x x x X 10 1 1 1 1 Q 1 Q 0 Q 3 Q 2 00 01 11 10 00 x x x X 01 1 1 1 1 11 1 1 1 1 10 x x x x J 0 = 1 K 0 = 1

Logic circuit: Schematic of 4-bit counter: Figure 1: Schematic diagram of 4-bit counter VI. Required Basic building blocks: J K Flip-flop: Master slave JK flip flop used in for this circuit for reliable operation and stability. The flip flop triggers at negative edge of the clock cycle. Truth table for the JK flip flop is given below: J K Q n+1 0 0 Q n 0 1 1 1 0 0 1 1 Q n

Schematic of JK flip flop: Figure 2: Schematic diagram of JK flip flop with set and reset assembly Description: Master slave cross coupled NAND gate assembly is negative edge triggered. At the negative edge of the clock cycle the output Q n and Q n changes depending upon the input at J and K. the AND OR gate assembly forces 0-1 or 1=0 input combination to the J-K input to set or reset output. The changes for set and reset also occur at the negative edge of clock.

Layout: Layout was drawn in AMI 0.6 micron process. All the building blocks used in the layout has the same height to maintain symmetry. Since the inverter output for the inverted clock signal was not able to drive 4 MOSFET gates in the subsequent stage a 3 inverter stage buffer was used, which increased the area. NAND gate assembly is placed on the upper row while the AND-OR gate assembly for set/ reset is laid in the bottom row. Minimum spacing rule was utilized to reduce the size of layout. Figure 3: Layout of JK flip flop with set/reset

Simulated output: Simulation output shows performance of J K flip flop Figure 4 : Simulation output of J K flip flop with reset enabled during 170ns to220ns NAND gates: Figure 5: NAND2 gate size= 35.5umX14um Figure 6: NAND3 gate size= 35.5umX12um

AND- OR- Inverter gates: AND gate and OR gate require inverted input at the MOSFET gates. So to create a AND gate NAND gates were complemented with an inverter to get the inverted AND output. Similarly for OR gate a NOR gate output was inverted with an inverter to get the OR output. Figure 7: Layout of an Inverter size= 35.5uX9u Figure 8: Layout of an AND gate size= 35.5uX19u Figure 9: Layout of an OR gate size= 35.5uX19u

VII. Complete Layout of counter design: Maximum effort was made to minimize the design area on chip. Four J K flip flop was stacked on top of each other retaining minimum distance from n-well. Layout blocks are rotated to minimize interconnect requirement. AND gates used at input of each flip flop is placed at closest proximity to the J-K input and Q n and Q n output. Two bus of metal1 is used for supplying set and reset to each block. The complete layout occupies an area = 282.9µm x 138.75µm = 39,252 Figure 10: Layout of 4-bit up counter

Extracted Layout: Figure 11: Extracted layout of 4-bit up counter

Extracted layout with pad frame: Figure 12: Extracted layout including padframe VIII. Pre-layout simulation output: Figure 13: Prelayout simulation output, clock frequency= 10MHz

Post layout simulation output: Figure 14: Post layout simulation output, clock frequency= 10MHz Post layout simulation with capacitive load= 5pF Figure 15: Post layout simulation output, clock frequency= 10MHz, C_load= 5 pf

Post layout simulation with set enabled: Figure 16: Post layout simulation output with set enabled, clock frequency= 10MHz Post layout simulation output with reset enabled: Figure 17: Post layout simulation output with reset enabled, clock frequency= 10MHz

IX. Measurement of rise time and fall time and propagation delay: Capacitive loading was varied from 1pF to 15pF and rise time, fall time and propagation delay was measured. During rise time and fall time measurement time required to change from 30% to 70% of maximum voltage was measured. To measure propagation delay following equation was used t delay = (t PLH +t PHL )/2 Time measurement were taken for all four output bits. Q3 Load Rise (ns) Fall (ns) Delay (ns) 1pF 0.5909 3.1973 3.8689 3pF 2.8730 9.6123 7.9792 5pF 7.2129 16.8680 14.0339 7pF 9.5157 24.1250 19.1275 10pF 10.7590 32.5180 25.7555 12pF 14.6780 42.2800 31.1905 15pF 17.8560 53.2450 38.6780 Q2 Load Rise (ns) Fall (ns) Delay (ns) 1pF 1.2517 3.1973 2.8210 3pF 3.5376 9.6123 7.9792 5pF 7.3777 16.8680 13.2200 7pF 8.8490 24.1250 19.6255 10pF 11.4230 32.5180 26.1155 12pF 15.1090 40.1670 31.7415 15pF 16.3110 53.2450 39.1010

Q1 Load Rise (ns) Fall (ns) Delay (ns) 1pF 0.9274 3.1973 3.7745 3pF 3.0383 9.6123 7.9792 5pF 7.0472 16.8680 13.8648 7pF 8.5163 24.1250 19.2495 10pF 10.9800 32.5180 25.8660 12pF 14.2960 41.4480 31.4620 15pF 16.2710 53.2450 38.3450 Q0 Load Rise (ns) Fall (ns) Delay (ns) 1pF 3pF 5pF 7pF 10pF 12pF 15pF 1.0916 3.1973 3.4866 3.2058 9.6123 8.0624 5.6769 16.8680 13.7700 8.8847 24.6160 18.4618 12.0230 32.5180 24.7010 14.5470 41.4470 29.2770 16.7380 53.2450 34.2685

Time(ns) Time (ns) Time(ns) Time (ns) Plot of response time Vs Capacitive load: 60.0000 40.0000 Q3 R² = 0.997 rise 20.0000 0.0000 R² = 0.9767 0 2 4 6 8 10 12 14 16 fall Linear (rise) Linear (rise) Capacitive load (pf) 60.0000 50.0000 40.0000 30.0000 20.0000 10.0000 0.0000 Q2 R² = 0.9964 R² = 0.9769 0 2 4 6 8 10 12 14 16 rise fall Linear (fall) Linear (fall) Capacitive load (pf) 60.0000 50.0000 40.0000 30.0000 20.0000 10.0000 0.0000 Q1 R² = 0.9972 R² = 0.9825 rise fall Linear (fall) Linear (fall) 0 2 4 6 8 10 12 14 16 Capacitive load (pf) 60.0000 50.0000 40.0000 30.0000 20.0000 10.0000 0.0000 Q0 R² = 0.9969 R² = 0.9922 0 2 4 6 8 10 12 14 16 rise fall Linear (fall) Linear (fall) Capacitive load (pf) Figure 18: Plot of Rise time, fall time Vs Capacitive load

Time (ns) 50.0000 40.0000 30.0000 20.0000 10.0000 0.0000 0 10 20 Capacitive load (pf) Q3 delay Q2 delay Q1 delay Q0 delay Linear (Q3 delay) Linear (Q2 delay) Linear (Q1 delay) Linear (Q0 delay) Figure 19: Plot of propagation delay Vs Capacitive load

Chip Test Results: Figure 20: Microphotograph of fabricated chip Figure 21: Microphotograph of fabricated design of 4-bit counter

Test Result: Figure 22: Output of 4-bit counter at 10 KHz Clock signal. Trace 1(yellow)- clock, Trace2 (green)- Q0, Trace3 (Purple) -Q1, Trace4(magenta) -Q2 Figure 23: Output of 4-bit counter at 10 KHz Clock signal. Trace 1(yellow)- clock, Trace2 (green)- Q2, Trace3 (Purple) -Q3, Trace4(magenta) -Carry_out

Plot of measured chip data: -2.00 0.00 2.00 4.00 6.00 8.00 10.00 Time -9.54E-04-9.04E-04-8.54E-04-8.04E-04-7.54E-04-7.04E-04-6.54E-04-6.04E-04-5.54E-04-5.04E-04-4.54E-04-4.04E-04-3.54E-04-3.04E-04-2.54E-04-2.04E-04-1.54E-04-1.04E-04-5.40E-05-4.00E-06 4.60E-05 9.60E-05 1.46E-04 1.96E-04 2.46E-04 2.96E-04 3.46E-04 3.96E-04 4.46E-04 4.96E-04 5.46E-04 5.96E-04 6.46E-04 6.96E-04 7.46E-04 7.96E-04 8.46E-04 8.96E-04 9.46E-04 Clock Volt -1.00 0.00 1.00 2.00 3.00 4.00 5.00 6.00 7.00 8.00 Time -9.50E-04-8.96E-04-8.42E-04-7.88E-04-7.34E-04-6.80E-04-6.26E-04-5.72E-04-5.18E-04-4.64E-04-4.10E-04-3.56E-04-3.02E-04-2.48E-04-1.94E-04-1.40E-04-8.60E-05-3.20E-05 2.20E-05 7.60E-05 1.30E-04 1.84E-04 2.38E-04 2.92E-04 3.46E-04 4.00E-04 4.54E-04 5.08E-04 5.62E-04 6.16E-04 6.70E-04 7.24E-04 7.78E-04 8.32E-04 8.86E-04 9.40E-04 9.94E-04 Time Q0 Volt -1.00 0.00 1.00 2.00 3.00 4.00 5.00 6.00 7.00 8.00 9.00 Q1 Volt -2.00-1.00 0.00 1.00 2.00 3.00 4.00 5.00 6.00 7.00 8.00 Q2 Volt -1.00 0.00 1.00 2.00 3.00 4.00 5.00 6.00 7.00 8.00 9.00 Time -9.44E-04-8.84E-04-8.24E-04-7.64E-04-7.04E-04-6.44E-04-5.84E-04-5.24E-04-4.64E-04-4.04E-04-3.44E-04-2.84E-04-2.24E-04-1.64E-04-1.04E-04-4.40E-05 1.60E-05 7.60E-05 1.36E-04 1.96E-04 2.56E-04 3.16E-04 3.76E-04 4.36E-04 4.96E-04 5.56E-04 6.16E-04 6.76E-04 7.36E-04 7.96E-04 8.56E-04 9.16E-04 9.76E-04 Q3 Volt -1.00E+00 0.00E+00 1.00E+00 2.00E+00 3.00E+00 4.00E+00 5.00E+00 6.00E+00 7.00E+00 8.00E+00 Time -9.38E-04-8.72E-04-8.06E-04-7.40E-04-6.74E-04-6.08E-04-5.42E-04-4.76E-04-4.10E-04-3.44E-04-2.78E-04-2.12E-04-1.46E-04-8.00E-05-1.40E-05 5.20E-05 1.18E-04 1.84E-04 2.50E-04 3.16E-04 3.82E-04 4.48E-04 5.14E-04 5.80E-04 6.46E-04 7.12E-04 7.78E-04 8.44E-04 9.10E-04 9.76E-04 Carry_out Volt

Discussion: Above plots show that the rise time, fall time and delay linearly varies with the capacitive loading. This indicates the liner behavior of the designed circuit. It may be noticed that the fall time higher than that of the fall time. This is because during fall time the capacitive loads discharges through the NMOS to reach ground potential. In this design a large number of NAND gates are used which has number of NMOS in series. The series connected NMOS has a larger resistance and has greater RC delay which leads to the higher value of fall time. Since in NAND gates PMOS are connected in parallel they quickly charge the load capacitor and give lower rise time. All rise time and fall time was measured for 10MHz clock frequency. At this frequency capacitive loading beyond 15pF produces signal that cannot be recognized as 1 or 0. At lower clock frequency higher capacitive loading is possible. X. Application: Counter is used widely in number of digital and analog circuit. There are vast application of counter in the field of electronics. Some of them are listed below- I. A counter can be used as frequency divider. This 4-bit counter can be efficiently used to get four different frequencies up to one sixteenth times of the original clock frequency. Since it is triggered only at negative edge of the clock, the first cycle gives output at half the frequency of that of the clock. II. Counter can be used on building entrances to keep track of number of people entering or leaving. III. Counter can be used in digital logic deigns to perform certain operation at certain steps. IV. Counters are also applicable in timer circuit to turn on/ off a device after certain time with use of a proper logic function.

ABSTRACT: REPORT-II For the final project in ECE-533 we had to design a four bit counter. This project was done with the aid of Cadence, in the AMI-0.6 micron process. The project involved the design of the schematic as well as the layout. In both cases, simulations were done. The counter is simulated under no-load condition as well as with few test loads. The rise time, fall time and delay are measured. I designed an Asynchronous four bit counter using T flip flops. INTRODUCTION: A Flip-flop is the name given to two-state devices which offer basic memory for sequential logic operations. Flip-flops are synchronous bistable devices that operate as memory elements. A flip-flop circuit contains two outputs, one is for the normal value and the other is for the complement value of the stored bit. Flip-flops are used for digital data storage and transfer and are commonly used in banks called "registers" for the storage of binary numerical data. Counters are designed using flip-flops. Counters can be classified as synchronous and asynchronous counters based on the application of clock to the flip-flops. A synchronous counter is clocked by a single clock for all the stages and the output for each stage changes at the same time. In an asynchronous counter the output from the previous stage is given as the clock for the next stage so that the output ripples across each stage to reach the final count. The following were the steps involved in designing this project: 1. Design a flip flop using nand gates and an inverter. 2. Draw the schematic and layout using cadence 3. Design a four bit counter using the designed flip flop 4. Draw the schematic and layout of the counter using cadence 5. Measure the rise time and fall time of the various bits 6. Measure the propagation delay across various stages with different capacitive loads

I have designed a four bit asynchronous counter with the aid of T flip-flops. This counter was designed to provide an output that is free of glitches. T FLIP FLOP: a) Introduction The T or "toggle" flip flop changes its output on each clock edge, giving an output which is half the frequency of the signal to the T input. T flip flop is useful for constructing binary counters, frequency dividers, and general binary addition devices. A T flip flop can be designed from a J K flip flop by shorting the J and K inputs.

Diagram of a T flip-flop Transition table of T Flip Flop b) Implementation : The implementation of the flip flop consists of the following steps: Designing the schematic Performing pre layout simulations Designing the layout

Obtaining the extracted view Performing LVS Performing post layout simulations

SCHEMATIC OF T FLIP FLOP: PRELAYOUT SIMULATION RESULTS:

LAYOUT OF T FLIP FLOP:

POST LAYOUT SIMULATION RESULTS: COUNTER USING T FLIP FLOPS: a) Introduction: The counter was built with the help of T-Flip Flops. The gates used in realizing the design were two 3 Input Nand Gates, three 2 Input Nand gates and an inverter. The outputs of the Flip Flop are Q and QOb. In an asynchronous counter the clock pulse is applied only at the first stage. The rest of the stages are driven by the output of the preceding flip flop. All the output bits do not change at the same time.

An asynchronous counter is also called as a ripple counter because only the first bit changes with the clock pulse, there exists some delay before the other bits change, so the output ripples across the counter. A binary counter can be realized using T-Flip Flops by counting the number of toggles in the previous stage. The T input of each flip-flop is set to 1 to produce a toggle at each cycle of the clock input. For each two toggles of the first cell, a toggle is produced in the second cell, and so on down to the fourth cell. This produces a binary number equal to the number of cycles of the input clock signal. Using a Master-slave configuration isolates the output from any glitches resulting from any changes happening in the input signal. The master-slave flip-flop is essentially two back-to-back JK flip-flops, but the feedback is to both to the master flip flop and the slave flip flop. In this configuration, the master flip flop sees the input when the clock is high and the output of the first stage holds the input for the next stage. During the clock low, the slave circuit is enabled to track the change in the input by using the output of the master Flip Flop. Thus the master-slave configuration eliminates any sharp change of state within a clock cycle and the flip flop is free of oscillations.

b) Implementation: SCHEMATIC DIAGRAM OF A 4 BIT COUNTER USING T FLIP FLOPS: PRELAYOUT SIMULATION RESULTS:

LAYOUT OF 4-BIT COUNTER:

EXTRACTED VIEW OF THE COUNTER:

LAYOUT VS SCHEMATIC (LVS):

POST-LAYOUT SIMULATION RESULTS: RISE TIME AND FALL TIME FOR VARIOUS OUTPUT BITS AT ZERO LOAD: RISE TIME (ns) FALL TIME (ns)

X0 0.3 0.45 X1 0.25 0.4 X2 0.2 0.43 X3 0.15 0.39 LOAD CAPACITANCE VS PROPAGATION DELAY: X0

APPLICATIONS OF COUNTERS: To count the number of times that a certain event takes place. To control a fixed sequence of actions in a digital system To generate timing signals. To generate clocks of different frequencies Used in various devices such as ATM s, Watches etc. -------------------------------------------------- SCHEMATIC OF A T FLIP FLOP:

SIMULATION RESULT OF THE T FLIP FLOP SCHEMATIC:

SCHEMATIC DIAGRAM OF A 4 BIT COUNTER USING T FLIP FLOPS: SIMULATION RESULT OF THE COUNTER S SCHEMATIC:

RISE TIME (ns) X0 0.3 0.45 FALL TIME (ns) X1 0.25 0.4 X2 0.2 0.43 X3 0.15 0.39

Flip-Flop Design 1. Objective The objective of this project is to design and simulate a J-K Flip-Flop and a D-Flip Flop using Cadence (IC design software). The design will be in the form of a logic circuit and a layout. 2. Flip Flops 2.1 J-K Flip Flop I will be designing a J-K flip flop with a set/reset option. The outputs will only change state on the falling edge of the CLK signal, and the J and K inputs will control the future output. If both the J and K inputs are held at logic 1 and the CLK signal continues to change, the Q and Q' outputs will simply change state with each falling edge of the CLK signal. R J K Q n+ 1 0 0 0 Q n 0 0 1 0 0 1 0 1 0 1 1 nq 1 d d 0 Table 1: Truth Table for the J-K Flip-flop with Set/Reset 2.2 D Flip Flop I also will be designing a negative edge triggered D Flip-Flop. The outputs states to change only when the clock signal falls from logic 1 to logic 0.

D Q CLK Q next 0 X Falling 0 1 X Falling 1 X either logic 1 or logic 0 Table 2: Truth Table for the negative edge triggered D Flip-flop 3. Design Implementation and Simulation I designed the J-K Flip Flop and the D Flip-Flop using Cadence IC Design Software with an AMI-0.6 micron process. Ln=Lp=0.6um Wp=7.5um Wn=3.0um 3.1 Schematic Design The design process began with the schematics of the J-K flip flop (Figure 1) and the D flip flop (Figure 2), which I utilized nand gates and an inverter that I designed in my previous labs. 3.2 Schematic Simulation After designing the schematics, I simulated using Spectre and the Cadence Analog Environment in order to generate waveforms that demonstrate the behavior of the J-K flip flop (Figure 3) and the D flip flop (Figure 4). In order to simulate realistic results, capacitances were added to the outputs in order to generate delays in the waveforms. 3.2 Create Symbol

Symbol creation was achieved by creating symbol cell view from schematic cell view 3.3 Layout Design I then designed the layouts for the J-K flip flop (Figure5) and the D flip flop (Figure6) in which I utilized the layouts of nand gates and an inverter which I designed in my previous labs. After connecting all of the I/O pins, I made sure that I connected all of the vdd pins from each nand gate and inverter. I did the same for all of the ground (gnd) pins. 3.4 DRC Verify After the design is complete, I used the DRC tool to verify that the layouts of the J-K flip flop and the D flip flop contained no. The DRC tool confirmed that the spacing between the various components in the layouts was not too close together and that pins were not duplicated on the same layout. 3.5 Extract I created an extracted view of the layouts in which I utilized parasitic capacitances. 3.6 Verify LVS I then utilized the LVS tool to verify that the layouts designs matched that of my schematics in terms of the number of nets, terminals, and instances (Figure 7 and Figure 8). 3.7 Extracted Layout Simulation The simulation of the layouts is implemented exactly the same way as the schematic simulation. We also add capacitances to the outputs in the netlist to simulate delays and produce more realistic results. (Figure 9 and Figure 10) 4. Waveform Analysis

4.1 Results JK Flip Flop Simulation Waveform Figure 9 D Flip Flop Simulation Waveform Figure 10 4.2 Rise Time, Fall Time, and Propagation Delay The rise time/fall time were measured using the 10% - 90% method. The propagation delay was measured using the 50% - 50 % method. 4.3 Capacitive Load Effect Chart Capacitive Rise Time (ns) Fall Time (ns) Propagation Delay (ns) Load (ff) 10 0.41 0.7 0.64 20 0.64 0.82 0.74 50 1.33 1.55 1.48 100 2.35 3.17 2.94 Table 1: Rise time, fall time, and propagation delay measured from the J-K flip flop waveform

Capacitance (ff Capacitance (ff 4.4 Capacitive Load Effect Graphs Rise Time With Load 120 100 80 60 40 20 0 0 0.5 1 1.5 2 2.5 Time (ns) Delay Time With Laod 120 100 80 60 Series1 Linear (Series1) 40 20 0 0 0.5 1 1.5 2 2.5 3 3.5 Time (ns)

5. Conclusion from Waveform Analysis The capacitive load and the rise/fall times and delay correlate in a linear fashion. Based on the analysis of the rise/fall times and delay we see that if the capacitive load increases, then the rise time, fall time, and delay also increase. 6. Application J-K flip flops can be utilized in binary counters, shift registers, and sequence detectors. Because of the behavior of the D-Flip Flop described in the introduction, it can be utilized in shift registers, which are an essential part of many electronic devices. 7. Pad Frame Pad frame Schematic (Figure 11) No Errors Pad frame Layout (Figure 12) DRC Clean The pad frame schematic and the pad frame layout contained no errors. However, the symbol of the JK flip flop and contained no vdd or ground pins, therefore my attempts to verify both pad frames using LVS was unsuccessful.

8. Appendix Figure1: J-K Flip Flop Schematic Figure 2: D Flip Flop Schematic

Figure 3: J-K Flip Flop Schematic Simulated Waveform

Figure 4: Figure 3: D Flip Flop Schematic Simulated Waveform Figure 5: J-K Flip Flop Layout Figure 6: D Flip Flop Layout

Figure 7: J-K Flip Flop LVS Verification

Figure 8: D Flip Flop LVS Verification Figure 9: J-K Flip Flop Layout Simulated Waveform

Figure 10: D Flip Flop Layout Simulated Waveform

Figure 11 JK Flip Flop Pad Frame Schematic

Figure 12 JK Flip Flop Pad Frame Layout

Microphotograph of the Chip: