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

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

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

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

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

Asynchronous (Ripple) Counters

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

ELE2120 Digital Circuits and Systems. Tutorial Note 7

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

RS flip-flop using NOR gate

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

Experiment 8 Introduction to Latches and Flip-Flops and registers

Counter dan Register

Sequential Design Basics

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

ELCT201: DIGITAL LOGIC DESIGN

Other Flip-Flops. Lecture 27 1

CMOS DESIGN OF FLIP-FLOP ON 120nm

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

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

RS flip-flop using NOR gate

CHAPTER 1 LATCHES & FLIP-FLOPS

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

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

DIGITAL CIRCUIT COMBINATORIAL LOGIC

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

Lecture 8: Sequential Logic

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

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

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

Parametric Optimization of Clocked Redundant Flip-Flop Using Transmission Gate

Chapter 5 Synchronous Sequential Logic

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

Flip-Flops A) Synchronization: Clocks and Latches B) Two Stage Latch C) Memory Requires Feedback D) Simple Flip-Flop Gate

A Power Efficient Flip Flop by using 90nm Technology

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

Unit 11. Latches and Flip-Flops

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

ELCT201: DIGITAL LOGIC DESIGN

Sequential Logic. References:

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

LATCHES & FLIP-FLOP. Chapter 7

Chapter 2. Digital Circuits

Flip-Flops and Sequential Circuit Design

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

Logic Design. Flip Flops, Registers and Counters

Chapter 5 Flip-Flops and Related Devices

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

Digital Fundamentals. Lab 5 Latches & Flip-Flops CETT Name: Date:

Project 6: Latches and flip-flops

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

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

Chapter 4. Logic Design

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

EKT 121/4 ELEKTRONIK DIGIT 1

LFSR Counter Implementation in CMOS VLSI

CSE Latches and Flip-flops Dr. Izadi. NOR gate property: A B Z Cross coupled NOR gates: S M S R Q M

Universal Asynchronous Receiver- Transmitter (UART)

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

CHAPTER 6 COUNTERS & REGISTERS

Counters

Chapter 7 Counters and Registers

EKT 121/4 ELEKTRONIK DIGIT 1

Logic Circuits. A gate is a circuit element that operates on a binary signal.

Introduction to Sequential Circuits

CHAPTER 4: Logic Circuits

Digital Circuits I and II Nov. 17, 1999

LOW-POWER CLOCK DISTRIBUTION IN EDGE TRIGGERED FLIP-FLOP

Digital Circuits ECS 371

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

SEMESTER ONE EXAMINATIONS 2002

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

Combinational vs Sequential

Design of a High Frequency Dual Modulus Prescaler using Efficient TSPC Flip Flop using 180nm Technology

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

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

Registers and Counters

CHAPTER 4: Logic Circuits

DESIGN OF DOUBLE PULSE TRIGGERED FLIP-FLOP BASED ON SIGNAL FEED THROUGH SCHEME

ECE 263 Digital Systems, Fall 2015

Module -5 Sequential Logic Design

A Design for Improved Very Low Power Static Flip Flop Using Two Inverters and Five NORs

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

Logic Design Viva Question Bank Compiled By Channveer Patil

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

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous)

ECE 341. Lecture # 2

ASYNCHRONOUS COUNTER CIRCUITS

P.Akila 1. P a g e 60

A FOUR GAIN READOUT INTEGRATED CIRCUIT : FRIC 96_1

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.

International Research Journal of Engineering and Technology (IRJET) e-issn: Volume: 03 Issue: 07 July p-issn:

Section 6.8 Synthesis of Sequential Logic Page 1 of 8

Unit 9 Latches and Flip-Flops. Dept. of Electrical and Computer Eng., NCTU 1

Switching Circuits & Logic Design

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

UNIT IV. Sequential circuit

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

EET2411 DIGITAL ELECTRONICS

Transcription:

Design and Simulation of a Digital CMOS Synchronous 4-bit Up-Counter with Set and Reset Course Number: ECE 533 Spring 2013 University of Tennessee Knoxville Instructor: Dr. Syed Kamrul Islam Prepared by Ifana Mahbub April 26, 2013

1. Introduction A counter is a device which stores (and sometimes displays) the number of times a particular event or process has occurred, especially in digital logic or computing. 4-bit counters are among the most basic designs of digital systems. Because of their simplicity they are also good examples for beginners to start with their digital circuit design experience. 4-bit counter has vast number of implementations. With options such as synchronous vs. asynchronous, what flip-flops topology to use and the style of counting (binary, gray-code, etc.) various counters could be designed. The counter presented in this paper is a synchronous up-counter with serial-carry output and input set and reset options. With the serial-carry output it is possible for it to be cascaded to build a counter with more than 4 bits. Synchronous and up counter means the whole design is controlled by a single clock and that the counter will only count from 0 to F and start all over again. The input set and reset pin enables the user to set the counter to all-ones and allzero state and then to start counting again. The counter reported in this paper has been realized using JK flip-flops following a master-slave approach. This is a negative edge-sensitive flip-flop. As the J-K flip-flop can easily be used for toggle operation putting both J and K input to 1, the use of it in counter design is rightly justified. The circuit has been implemented in the AMI 0.5u process where the length was 0.6 µm for each NMOS and PMOS. 2. The design A popular approach of designing a master-slave J-K flip-flop is using two 3-input NAND gates, six 2-input NAND gates and two inverters in a feedback loop. A change of state occurs when the flip-flop senses a negative edge of the clock signal. The logic diagram of this common is shown below: Figure 1 Common Logic Diagram of a J-K Flip-flop This design has been further modified by incorporating a set and reset pin at the input. This has been accomplished easily by the addition of eight extra gates (two AND, two OR gates and two Inverters) as shown in Fig. 2.

Figure 2 JK FF schematic 3. Logic and truth table The counter operates on the falling edge of the clock meaning the states do not change until the clock signal inputted into the first JK flip-flop goes from logic HI to logic LO. When the set and reset input S and R are at logic 0, the flip-flop operates normally; whereas the output Q is forced to 0 irrespective of the input levels at J and K when R goes to 1 and Q is forced to 1 irrespective of the input levels at J and K when S goes to 1. Therefore, the truth table of this J- K flip-flop has been changed accordingly in Table 1. Table 1 Truth table of JK flipflop with set and reset S R J K Q n+1 0 0 0 0 Q n 0 0 0 1 0 0 0 1 0 1 0 0 1 1 ~ Q n 0 1 d d 0 1 0 d d 1 As the counter operates on the falling edge of the input clock signal, the output only changes when the CLK signal is going from 0 to 1 as illustrated in Table 2.

Table 2 Truth table of 4-bit counter CLK B3 B2 B1 B0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 1 0 0 0 1 0 0 0 1 0 1 0 0 1 0 0 0 0 1 1 1 0 0 1 1 0 0 1 0 0 1 0 1 0 0 0 0 1 0 1 1 0 1 0 1 0 0 1 1 0 1 0 1 1 0 0 0 1 1 1 1 0 1 1 1 0 1 0 0 0 1 1 0 0 0 0 1 0 0 1 1 1 0 0 1 0 1 0 1 0 1 1 0 1 0 0 1 0 1 1 1 1 0 1 1 0 1 1 0 0 1 1 1 0 0 0 1 1 0 1 1 1 1 0 1 0 1 1 1 0 1 1 1 1 0 0 1 1 1 1 1 0 0 1 1 4. Schematic and layout The final schematic is shown in Fig. 3. The equivalent W/L ratio for NMOS gates is chosen to be 2.5 and that of PMOS is 5. The width of PMOS is selected to be twice the width of NMOS because it does not hinder the correct functionality of the circuit and helps keeping the total chip area low. Moreover, the performance of the circuit is highly acceptable within a wide frequency range as we see from the simulation and different performance measurements. Different gates of the JK flipflop (schematic and layout) are shown in the following figures.

Figure 3 Four bit counter Schematic Figure 4 Inverter Schematic and layout Figure 5 Two input AND gate Schematic and layout

Figure 6 Three input NAND gate Schematic and layout Figure 7 Two input NAND gate Schematic and layout Figure 8 Two input OR gate Schematic and layout The layout of the JK flip flop is shown in Fig 9.

Figure 9 JK flip flop layout The final layout of the 4 bit counter is shown in Figure 10. Three metal layers are used to help reducing the area. The input clock signal, set and reset enter into each JK flip flop. The design on the pad frame is shown in Figure 11. As the figure shows, the dimensions of the 4-bit counter measure to be 731μm x 84μm which gives an overall area of 0.061 mm2 for the design. Figure 10 Four bit counter layout

Figure 11 Layout of 4-bit counter on pad frame (left) and a closer look (right) 5. Simulation and results Pre-Layout Simulations with set and reset pin enabled are shown in Fig 12 and 13. Figure 12 Captured pre-layout Simulation waveforms with set pin (left) and reset (right) enabled

Post-layout simulation of the design was done and the counter performed as expected. As Figure 14 shows, the counter counts up to F and then restarts back at 0. Figure 14 Captured post-layout Simulation waveforms with reset (left) and set (right) pin enabled 6. Performance analysis Table 3 depicts the rise and fall times of the counter output bits with load capacitance of 1 pf. The rise time was defined as the time it took the signal to go from 10% VDD (0.5V) to 90% VDD (4.5V), and the fall time was defined as the time it took the signal to fall from 90% VDD to 10% VDD. Table 3 Rise time and fall time for outputs with 1 pf load capacitance Output bit Rise time (ns) Fall time (ns) B0 10.908 15.049 B1 10.698 14.719 B2 10.698 14.720 B3 10.659 14.658 The rise time for each bit is less than the fall time for that bit. It means the charging RC constant is less than that of the discharging one. Figures 15 shows the delay vs. capacitance graphs of the counter output signals with load capacitances varying from 1 to 5 pf. The delay time is defined as the time it took the signal to get to 50% of VDD (2.5V) after the clock signal reached 2.5 V.

Delay (ns) Delay (ns) Delay (ns) Delay (ns) 100.000 90.000 80.000 70.000 60.000 50.000 40.000 30.000 20.000 10.000 0.000 100.000 90.000 80.000 70.000 60.000 50.000 40.000 Cap Vs. Delay (B0) 1 2 3 4 5 Load Capacitance (pf) Cap Vs. Delay (B2) 100.000 1 2 3 4 5 Load Capacitance (pf) 30.000 30.000 20.000 20.000 10.000 10.000 0.000 0.000 1 2 3 4 5 1 2 3 4 5 Load Capacitance (pf) Load Capacitance (pf) Figure 15 Delay vs. capacitance of the counter output signals with load capacitances varying from 1 to 5 pf 90.000 80.000 70.000 60.000 50.000 40.000 30.000 20.000 10.000 From the figure we can say that the delay time for the counter increases as the load capacitance increases. 7. Test Result The chip has been tested for various frequencies. They are shown below: 0.000 100.000 90.000 80.000 70.000 60.000 50.000 40.000 Cap Vs. Delay (B1) Cap Vs. Delay (B3)

Figure 16 Output result for input frequency of 10 KHz Figure 17 Output result for input frequency of 800 KHz Figure 18 Rise time and fall time in the edges

8. Conclusion This project has been a great opportunity for exercising the skills in designing digital VLSI circuits with the help of the Cadence Virtuoso Custom IC Design Tool. From various design steps of this project we have learned about many digital circuit design techniques, proper choice of transistor sizes, design rules, laying out the circuit with minimum possible area, pre and post layout simulation (with Spectre), layout extraction, LVS matching and measurement of different performance factors. This project is successful as the chip came fabricated and the proper testing has been performed.