WEEK 4.1. ECE124 Digital Circuits and Systems Page 1

Similar documents
Unit 3. Logic Design

Function Table of an Odd-Parity Generator Circuit

UNIVERSITY OF MASSACHUSETTS Dept. of Electrical & Computer Engineering. Digital Computer Arithmetic ECE 666

Structural VHDL Implementation of Wallace Multiplier

COMBINATIONAL LOGIC CIRCUIT First Class. Dr. AMMAR ABDUL-HAMED KHADER

Combinational Logic. Rab Nawaz Khan Jadoon DCS. Lecturer COMSATS Lahore Pakistan. Department of Computer Science

Combinational Logic Circuits. Combinational Logic

EECS 270 Winter 2017, Lecture 15 Page 1 of 8

(CSC-3501) Lecture 6 (31 Jan 2008) Seung-Jong Park (Jay) CSC S.J. Park. Announcement

Comparative Analysis of Various Adders using VHDL

UNIT III. Designing Combinatorial Circuits. Adders

Module 4: Design and Analysis of Combinational Circuits 1. Module-4. Design and Analysis of Combinational Circuits

LOGIC GATES AND LOGIC CIRCUITS A logic gate is an elementary building block of a Digital Circuit. Most logic gates have two inputs and one output.

Number system: the system used to count discrete units is called number. Decimal system: the number system that contains 10 distinguished

Dr. Nicola Nicolici COE/EE2DI4 Midterm Test #1 Oct 18, 2006

A Highly Efficient Carry Select Adder

UNIT-IV Combinational Logic

CS302 Digital Logic Design Solved Objective Midterm Papers For Preparation of Midterm Exam

DESIGN OF BINARY MULTIPLIER USING ADDERS

The book has excellent descrip/ons of this topic. Please read the book before watching this lecture. The reading assignment is on the website.

Laboratory Manual CS (P) Digital Systems Lab

Analysis procedure. To obtain the output Boolean functions from a logic diagram, proceed as follows:

CHAPTER 3 BASIC & COMBINATIONAL LOGIC CIRCUIT

Digital Electronics. Functions of Combinational Logic

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

Comparison among Different Adders

Experiment # 3 Combinational Circuits (I) Binary Addition and Subtraction

COMPUTER ARCHITECTURE AND ORGANIZATION

Experiment # 4. Binary Addition & Subtraction. Eng. Waleed Y. Mousa

E2.11/ISE2.22 Digital Electronics II

CSE 370 Winter Homework 5 Solutions

DESIGN AND IMPLEMENTATION OF 64- BIT CARRY SELECT ADDER IN FPGA

32-bit High Speed Adder

CHAPTER 5 DESIGN OF COMBINATIONAL LOGIC CIRCUITS IN QCA

FPGA Implementation of Area-Delay and Power Efficient Carry Select Adder

Combinational Circuits DC-IV (Part I) Notes

Minimization of Area and Power in Digital System Design for Digital Combinational Circuits

TABLE 3-2 Truth Table for Code Converter Example

Design and Comparative Analysis of Conventional Adders and Parallel Prefix Adders K. Madhavi 1, Kuppam N Chandrasekar 2

Area Power and Delay Efficient Carry Select Adder (CSLA) Using Bit Excess Technique

LOGIC DIAGRAM: HALF ADDER TRUTH TABLE: A B CARRY SUM. 2012/ODD/III/ECE/DE/LM Page No. 1

A Novel Approach For Designing A Low Power Parallel Prefix Adders

High Speed, Low power and Area Efficient Processor Design Using Square Root Carry Select Adder

Modelling Of Adders Using CMOS GDI For Vedic Multipliers

Area Delay Efficient Novel Adder By QCA Technology

Topic Notes: Digital Logic

Chapter 11. Digital Integrated Circuit Design II. $Date: 2016/04/21 01:22:37 $ ECE 426/526, Chapter 11.

Design and Implementation of Low Power Error Tolerant Adder

LIST OF EXPERIMENTS. KCTCET/ /Odd/3rd/ETE/CSE/LM

Odd-Prime Number Detector The table of minterms is represented. Table 13.1

PUBLICATIONS OF PROBLEMS & APPLICATION IN ENGINEERING RESEARCH - PAPER CSEA2012 ISSN: ; e-issn:

Adder (electronics) - Wikipedia, the free encyclopedia

IES Digital Mock Test

2 Logic Gates THE INVERTER. A logic gate is an electronic circuit which makes logic decisions. It has one output and one or more inputs.

I. INTRODUCTION VANAPARLA ASHOK 1, CH.LAVANYA 2. KEYWORDS Low Area, Carry, Adder, Half-sum, Half-carry.

International Journal of Engineering Research-Online A Peer Reviewed International Journal Articles available online

Logic Circuit Design

Department of Electronics and Communication Engineering

PERFORMANCE ANALYSIS OF DIFFERENT ADDERS USING FPGA

Area Efficient Carry Select Adder with Half-Sum and Half-Carry Method

An Optimized Implementation of CSLA and CLLA for 32-bit Unsigned Multiplier Using Verilog

SRV ENGINEERING COLLEGE SEMBODAI RUKMANI VARATHARAJAN ENGINEERING COLLEGE SEMBODAI

Lab 2: Combinational Circuits Design

CHW 261: Logic Design

Gates and Circuits 1

Group 10 Group 9 Group 8 Group 7 Group 6 Group 5 Group 4 Group 3 Group 2 Group 1 Group 0 GG5 PG5 GG4 PG4. Block 3 Block 2 Block 1 Block 0

ISSN Vol.02, Issue.11, December-2014, Pages:

DESIGN OF HIGH SPEED 32 BIT UNSIGNED MULTIPLIER USING CLAA AND CSLA

COMBINATIONAL CIRCUIT

Datapath Components. Control vs. Datapath, Registers, Adders (Binary Addition) Copyright (c) 2012 Sean Key

Lab Report: Digital Logic

An Efficient Higher Order And High Speed Kogge-Stone Based CSLA Using Common Boolean Logic

Design and Implementation of Carry Select Adder Using Binary to Excess-One Converter

Design of 32-bit Carry Select Adder with Reduced Area

CHAPTER 3 ANALYSIS OF LOW POWER, AREA EFFICIENT AND HIGH SPEED ADDER TOPOLOGIES

Multiplier and Accumulator Using Csla

128 BIT MODIFIED SQUARE ROOT CARRY SELECT ADDER

DESIGN OF LOW POWER HIGH SPEED ERROR TOLERANT ADDERS USING FPGA

DESIGN AND IMPLEMENTATION OF AREA EFFICIENT, LOW-POWER AND HIGH SPEED 128-BIT REGULAR SQUARE ROOT CARRY SELECT ADDER

A High Speed Low Power Adder in Multi Output Domino Logic

DELD UNIT 3. Question Option A Option B Option C Option D Correct Option A B C

UNIVERSITY OF MASSACHUSETTS Dept. of Electrical & Computer Engineering. Digital Computer Arithmetic ECE 666

This Figure here illustrates the operation for a 2-input OR gate for all four possible input combinations.

Digital Electronics 8. Multiplexer & Demultiplexer

Implementation of 32-Bit Unsigned Multiplier Using CLAA and CSLA

Design and Characterization of 16 Bit Multiplier Accumulator Based on Radix-2 Modified Booth Algorithm

II. LITERATURE REVIEW

Implementation of High Performance Carry Save Adder Using Domino Logic

A VLSI Implementation of Fast Addition Using an Efficient CSLAs Architecture

National Conference on Emerging Trends in Information, Digital & Embedded Systems(NC e-tides-2016)

Analysis of Low Power, Area- Efficient and High Speed Multiplier using Fast Adder

Subtractor Logic Schematic

2 Building Blocks. There is often the need to compare two binary values.

Technical Paper. Samuel Naffziger. Hewlett-Packard Co., Fort Collins, CO

An Optimized Wallace Tree Multiplier using Parallel Prefix Han-Carlson Adder for DSP Processors

EE878 Special Topics in VLSI. Computer Arithmetic for Digital Signal Processing

JDT EFFECTIVE METHOD FOR IMPLEMENTATION OF WALLACE TREE MULTIPLIER USING FAST ADDERS

FPGA Implementation of Area Efficient and Delay Optimized 32-Bit SQRT CSLA with First Addition Logic

Improved Performance and Simplistic Design of CSLA with Optimised Blocks

Digital Fundamentals

Transcription:

WEEK 4.1 ECE124 Digital Circuits and Systems Page 1

Combina=onal circuits A combinatorial circuit is one that consists of logic gates with outputs that are determined en=rely by the present value of the inputs. Combinatorial circuits might be 2 level logic (SOP,POS) or mul= level. Black bo illustra=on (there is no storage elements inside the bo): i1 i2 i3? o1 o2 in om Two opera=ons we might want to perform: Analysis given what is in the bo, what func:on(s) does it perform? Design given func:ons to perform, what do we need in the bo? ECE124 Digital Circuits and Systems Page 2

Analysis (for combina=onal circuits) Determines the func=on performed by a circuit. Starts with a circuit, and the result of analysis are the logic func=ons. Steps (assuming we have inputs, outputs and gates iden=fied): Label intermediate logic gate outputs star:ng from the inputs with arbitrary signal names. Determine the Boolean func=ons for each gate output star:ng from the inputs. Con=nue, moving towards the outputs un=l we have epressions for the outputs in terms of the inputs. We introduce etra signals and work our way through the circuit from inputs to the outputs. ECE124 Digital Circuits and Systems Page 3

Analysis eample (1) Intermediate signals introduced as required (T1, T2, T3) a b c a b c a b a c b c T2 T1 T3 f1 f2 This bunch of logic equa=ons does the trick, but we can subs=tute out the temporary signals to get an input output rela=onship. ECE124 Digital Circuits and Systems Page 4

Analysis eample (2) The input output rela=onship (removing temporary signals): ECE124 Digital Circuits and Systems Page 5

Design (for combina=onal circuits) Opposite of analysis Given func=ons to be performed, implement a combinatorial circuit that performs the func=ons. Steps: From specifica=ons, determine number of inputs and outputs. Derive the func=ons, or truth tables, that define input output rela=onship. Derive simplified Boolean func=ons. Draw the circuit diagram and verify correctness. Note: We might end up with a 2 level circuit (SOP,POS) or possibly a mul= level circuit implementa=on. ECE124 Digital Circuits and Systems Page 6

Design eample (1) Consider the following 4 input (a,b,c,d), 4 output (w,,y,z) circuit specified via K Maps. ab cd 00 01 11 10 ab cd 00 01 11 10 00 1 0 0 1 00 1 0 1 0 01 1 0 0 1 01 1 0 1 0 11 11 10 1 0 10 1 0 z y ab cd 00 01 11 10 ab cd 00 01 11 10 00 0 1 1 1 00 0 0 0 0 01 1 0 0 0 01 0 1 1 1 11 11 10 0 1 10 1 1 w ECE124 Digital Circuits and Systems Page 7

Design eample (2) We could just implement the SOP for each function individually. Could also (maybe) try and see if some product terms can be shared. Could also try to factor/decompose functions to find shared equations ECE124 Digital Circuits and Systems Page 8

Design eample (3) Mul=level factored circuit requires 9 gates and 17 gate inputs (inverters connected directly at inputs are free). 2 level implementa=on requires 10 gates and 23 gate inputs. c d b a c+d cd (c+d)' b(c+d) z y w ECE124 Digital Circuits and Systems Page 9

Combinatorial circuits (arithme=c) Some combina=onal circuits are very common and it is worth looking at them in more detail. One par=cular class of very useful circuits are arithme:c circuits; i.e., those circuits used for performing opera=ons such as: addi:on, subtrac:on, mul:plica:on, etc. of binary numbers. ECE124 Digital Circuits and Systems Page 10

Binary half adder circuit Basic definition of addition is to take two bits, and add them, producing a sum and a carry out. The circuit that produces these two outputs is called a binary half-adder. ECE124 Digital Circuits and Systems Page 11

Binary half adder implementa=on We can draw different implementations of a binary half-adder (depends on availability of XOR gates):! y!y sum y sum y cout cout ECE124 Digital Circuits and Systems Page 12

Binary full adders Most commonly, we are interested in adding n bit numbers. Therefore, we need to be able to also handle a carry in signal. The circuit implemen=ng these two func=ons is known as a binary full adder. Sum: odd #1 s EXOR ECE124 Digital Circuits and Systems Page 13

Binary full adder implementa=on We can draw different implementations of binary full adders. y cin sum y sum y cin ycin cout cin cout Note that the 2-nd implementation uses 2 half-adders to implement the full-adder. ECE124 Digital Circuits and Systems Page 14

Ripple adders for n bit addi=on Can build n-bit adders to add A = (a n-1 a n-2 a 1 a 0 ) and B = (b n-1 b n-2 b 1 b 0 ) simply by linking 1-bit full adders together. FA FA FA FA We might want to think about the performance (delay) of this adder circuit ECE124 Digital Circuits and Systems Page 15

Ripple adder performance (1) Recall that we spoke about combinational logic gates having some delay (i.e., a change in an input does not cause the output to change immediately) Assume that a logic gate has delay of 1 unit. Assume that each of our full-adders is built from half-adders. We can therefore trace/identify the longest combinatorial path in the circuit. This is the path that determines the performance of the circuit; The delay of the longest path tells us the minimum amount of time that we need to wait for the output to be correct. y sum FA FA FA FA cout cin ECE124 Digital Circuits and Systems Page 16

Issue of Ripple Adder Carry propaga=on is the main issue in an N bit ripple adder A faster adder needs to address the serial propaga=on of the carry bit Lets re eamine the equa=on for full adders

Ripple adder performance (2) For the ripple adder, it is possible that a change in the LSB of A or B (i.e., a 0 or b 0 ) will cause a change in the carry out of the MSB (i.e., c n ) We can identify the longest path: Delay is f(,y) only; performed at the same time for all stages. y sum FA FA FA FA cout cin We can compute the longest path for an n-bit ripple adder as follows: For Stages FA 1 FA 2, For Stage FA 0 ECE124 Digital Circuits and Systems Page 18

4 bit Ripple Adder using Full Adder A3 B3 A2 B2 A1 B1 A0 B0 A B A B A B A B Carry Full Cout Adder Cin Full Cout Adder Cin Full Cout Adder Cin Full Cout Adder Cin S S S S S3 S2 S1 S0

Full Adder Propaga=on Delay A0 B0 Carry Cin S0 1 st Stage Critical Path = 3 gate delays = D XOR +D AND +D OR

Full Adder Propaga=on Delay A1 B1 A0 B0 Cin S1 2 nd Stage Critical Path = 2 gate delays = D AND +D OR (Since 1 st Critical path > D XOR ) S0 1 st Stage Critical Path = 3 gate delays = D XOR +D AND +D OR

Issue of 4 bit Ripple Adder A3 B3 A2 B2 A1 B1 A0 B0 Carry Cin S3 S2 S1 S0 Critical Path = D XOR +4*(D AND +D OR ) for 4-bit ripple adder (9 gate levels) For an N-bit ripple adder Critical Path Delay ~ 2(N-1)+3 = (2N+1) Gate delays

Carry look ahead adders Ripple adders can be very slow for large numbers of bits. If we can calculate the carry ins faster, then we can build a faster adder. Consider the i-th bit of the adder, and identify two signals, namely the propagate p i and generate g i : (i) y(i) p(i) s(i) c(i) g(i) c(i+1) Write the carry out c i+1 in terms of the p i and g i signals instead. ECE124 Digital Circuits and Systems Page 23

Carries wri`en as func=ons of the propagates and generates We can consider writing all the carry outs in terms of the p i and g i signals, but substitute previously calculated carries as we go (i) y(i) p(i) s(i) This should be g 2 c(i) g(i) c(i+1) We have written the carries in terms of values all computed when the inputs are applied to the circuit: All p i and g i are computed after 1 gate delay. All c i are then computed after 2 more gate delays, since the are 2-level SOP in terms of p i and g i. ECE124 Digital Circuits and Systems Page 24

Carry look ahead performance If we use carry lookahead to generate all of the carries, then our adder will have a delay of 3 units of gate delay to get c n. What is the penalty to be paid? The carry lookahead circuit is 2 level logic (SOP) and we should see that higher numbered carries require more AND gates as well as AND/OR gates with a large number of inputs. It becomes imprac=cal (cant get AND/OR gates with large numbers of inputs). It becomes epensive in terms of the number of logic gates required. So, we get be`er performance, but we pay for it in terms of area and cost of the circuit implementa=on. ECE124 Digital Circuits and Systems Page 25

Combina=ons of ripple and carry look ahead circuits We can get something better than a ripple adder, but not as good as full carry lookahead by cascading smaller carry lookahead adders E.g., consider a 16-bit adder composed of 4, 4-bit carry lookahead adders. 4-CLA 4-CLA 4-CLA 4-CLA Performance will be 3+2+2+2 = 9 units of gate delay to get c 16 (notice a ripple adder would have required 2(16)+1 = 33 units of delay. ECE124 Digital Circuits and Systems Page 26

Trade off area vs. delay Demonstration of Area vs. Delay for different ways of making an 8-bit adder. Note: delay is assumed to be time to generate c 8 Note: cost is calculated as #gates+#gate inputs. Note: ma gate means #inputs to the largest gate required 8-bit adder design 350 300 type delay cost ma gate 250 ripple (8, 1-bit FA) 17 gates 120 2 200 150 Delay Area 4, 2-bit CLA 7 gates 140 3 100 50 2, 4-bit CLA 5 gates 188 5 1, 8-bit CLA 3 gates 316 9 0 ripple (8, 1-bit FA) 4, 2-bit CLA 2, 4-bit CLA 1, 8-bit CLA ECE124 Digital Circuits and Systems Page 27