Arithmetic Circuits-2

Similar documents
Arithmetic Circuits-2

Arithmetic Circuits-2

Lecture 18: Datapath Functional Units

Lecture 12: Datapath Functional Units

Lecture 12: Datapath Functional Units

EE141. Lecture 28 Multipliers. Lecture #20. Project Phase 2 Posted. Sign up for one of three project goals today

Digital Integrated Circuits A Design Perspective

9. Datapath Design. Jacob Abraham. Department of Electrical and Computer Engineering The University of Texas at Austin VLSI Design Fall 2017

EE141- Spring 2004 Digital Integrated Circuits

Digital Integrated Circuits A Design Perspective. Arithmetic Circuits. Jan M. Rabaey Anantha Chandrakasan Borivoje Nikolic.

Digital Integrated Circuits A Design Perspective. Arithmetic Circuits

Digital Integrated Circuits A Design Perspective. Arithmetic Circuits. Jan M. Rabaey Anantha Chandrakasan Borivoje Nikolic.

EECS150. Arithmetic Circuits

Review. EECS Components and Design Techniques for Digital Systems. Lec 18 Arithmetic II (Multiplication) Computer Number Systems

CS 140 Lecture 14 Standard Combinational Modules

CSE140: Components and Design Techniques for Digital Systems. Decoders, adders, comparators, multipliers and other ALU elements. Tajana Simunic Rosing

Bit-Sliced Design. EECS 141 F01 Arithmetic Circuits. A Generic Digital Processor. Full-Adder. The Binary Adder

EE141-Fall 2010 Digital Integrated Circuits. Announcements. An Intel Microprocessor. Bit-Sliced Design. Class Material. Last lecture.

UNIT III Design of Combinational Logic Circuits. Department of Computer Science SRM UNIVERSITY

Where are we? Data Path Design

Chapter 5 Arithmetic Circuits

Where are we? Data Path Design. Bit Slice Design. Bit Slice Design. Bit Slice Plan

Lecture 8: Sequential Multipliers

Hardware Design I Chap. 4 Representative combinational logic

Full Adder Ripple Carry Adder Carry-Look-Ahead Adder Manchester Adders Carry Select Adder

CSE 140 Lecture 11 Standard Combinational Modules. CK Cheng and Diba Mirza CSE Dept. UC San Diego

EECS150 - Digital Design Lecture 24 - Arithmetic Blocks, Part 2 + Shifters

Fundamentals of Computer Systems

COMPUTERS ORGANIZATION 2ND YEAR COMPUTE SCIENCE MANAGEMENT ENGINEERING UNIT 3 - ARITMETHIC-LOGIC UNIT JOSÉ GARCÍA RODRÍGUEZ JOSÉ ANTONIO SERRA PÉREZ

Combinatorial RTL Components

CMPEN 411 VLSI Digital Circuits Spring Lecture 21: Shifters, Decoders, Muxes

Lecture 8. Sequential Multipliers

Serial Parallel Multiplier Design in Quantum-dot Cellular Automata

ECE 545 Digital System Design with VHDL Lecture 1. Digital Logic Refresher Part A Combinational Logic Building Blocks

Arithmetic Circuits Didn t I learn how to do addition in the second grade? UNC courses aren t what they used to be...

SRC Language Conventions. Class 6: Intro to SRC Simulator Register Transfers and Logic Circuits. SRC Simulator Demo. cond_br.asm.

CSEE 3827: Fundamentals of Computer Systems. Combinational Circuits

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

Combinational Logic. By : Ali Mustafa

ECE/CS 552: Introduction To Computer Architecture 1. Instructor:Mikko H Lipasti. Fall 2010 University i of Wisconsin-Madison

Chapter 4. Combinational: Circuits with logic gates whose outputs depend on the present combination of the inputs. elements. Dr.

Tree and Array Multipliers Ivor Page 1

CMSC 313 Lecture 18 Midterm Exam returned Assign Homework 3 Circuits for Addition Digital Logic Components Programmable Logic Arrays

ECE 545 Digital System Design with VHDL Lecture 1A. Digital Logic Refresher Part A Combinational Logic Building Blocks

CSE140: Components and Design Techniques for Digital Systems. Logic minimization algorithm summary. Instructor: Mohsen Imani UC San Diego

This Unit: Arithmetic. CIS 371 Computer Organization and Design. Pre-Class Exercise. Readings

Computer organization

E40M. Binary Numbers. M. Horowitz, J. Plummer, R. Howe 1

CMPEN 411 VLSI Digital Circuits Spring Lecture 19: Adder Design

Arithmetic Building Blocks

Homework 4 due today Quiz #4 today In class (80min) final exam on April 29 Project reports due on May 4. Project presentations May 5, 1-4pm

Lecture 2 Review on Digital Logic (Part 1)

Design of Sequential Circuits

Combinational Logic Design Arithmetic Functions and Circuits

Fundamentals of Digital Design

Hw 6 due Thursday, Nov 3, 5pm No lab this week

Adders, subtractors comparators, multipliers and other ALU elements

CprE 281: Digital Logic

1 Short adders. t total_ripple8 = t first + 6*t middle + t last = 4t p + 6*2t p + 2t p = 18t p

Adders, subtractors comparators, multipliers and other ALU elements

Lecture 7: Logic design. Combinational logic circuits

A COMBINED 16-BIT BINARY AND DUAL GALOIS FIELD MULTIPLIER. Jesus Garcia and Michael J. Schulte

Integer Multipliers 1

Systems I: Computer Organization and Architecture

Class Website:

ARITHMETIC COMBINATIONAL MODULES AND NETWORKS

Slides for Lecture 19

Review for Final Exam

Logic and Computer Design Fundamentals. Chapter 5 Arithmetic Functions and Circuits

3. Combinational Circuit Design

Floating Point Representation and Digital Logic. Lecture 11 CS301

VLSI Arithmetic. Lecture 9: Carry-Save and Multi-Operand Addition. Prof. Vojin G. Oklobdzija University of California

University of Toronto Faculty of Applied Science and Engineering Final Examination

Digital System Design Combinational Logic. Assoc. Prof. Pradondet Nilagupta

Chapter 5. Digital Design and Computer Architecture, 2 nd Edition. David Money Harris and Sarah L. Harris. Chapter 5 <1>

Digital Integrated Circuits A Design Perspective

Chapter 5. Digital systems. 5.1 Boolean algebra Negation, conjunction and disjunction

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

S.E. Sem. III [ETRX] Digital Circuit Design. t phl. Fig.: Input and output voltage waveforms to define propagation delay times.

Logic. Basic Logic Functions. Switches in series (AND) Truth Tables. Switches in Parallel (OR) Alternative view for OR

Slide Set 6. for ENEL 353 Fall Steve Norman, PhD, PEng. Electrical & Computer Engineering Schulich School of Engineering University of Calgary

We are here. Assembly Language. Processors Arithmetic Logic Units. Finite State Machines. Circuits Gates. Transistors

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING QUESTION BANK

Static CMOS Circuits

Lecture 3 Review on Digital Logic (Part 2)

Combinational Logic Design Combinational Functions and Circuits

VLSI Design I; A. Milenkovic 1

ECE 2300 Digital Logic & Computer Organization

A NOVEL PRESENTATION OF PERES GATE (PG) IN QUANTUM-DOT CELLULAR AUTOMATA(QCA)

ALUs and Data Paths. Subtitle: How to design the data path of a processor. 1/8/ L3 Data Path Design Copyright Joanne DeGroat, ECE, OSU 1

Digital Design for Multiplication

Static CMOS Circuits. Example 1

S No. Questions Bloom s Taxonomy Level UNIT-I

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Digital Logic

VLSI Design. [Adapted from Rabaey s Digital Integrated Circuits, 2002, J. Rabaey et al.] ECE 4121 VLSI DEsign.1

Boolean Algebra and Digital Logic 2009, University of Colombo School of Computing

Logic. Combinational. inputs. outputs. the result. system can

Numbers and Arithmetic

CMP 334: Seventh Class

Numbers & Arithmetic. Hakim Weatherspoon CS 3410, Spring 2012 Computer Science Cornell University. See: P&H Chapter , 3.2, C.5 C.

Transcription:

Arithmetic ircuits-2 Multipliers Array multipliers hifters Barrel shifter Logarithmic shifter EE 261 Krish hakrabarty 1 Binary Multiplication X = Σ X i 2 i i=0 Multiplicand M-1 N-1 Y = Σ Y i 2 i i=0 Multiplier Product Z = X * Y N-1 M-1 = Σ (Σ X i Y j 2 i+j ) i=0 j=0 Partial products Product = um of partial products EE 261 Krish hakrabarty 2

Multiplication Example: : 12 10 0101 : 5 10 EE 261 Krish hakrabarty 3 Multiplication Example: : 12 10 0101 : 5 10 EE 261 Krish hakrabarty 4

Multiplication Example: : 12 10 0101 : 5 10 0000 EE 261 Krish hakrabarty 5 Multiplication Example: : 12 10 0101 : 5 10 0000 EE 261 Krish hakrabarty 6

Multiplication Example: : 12 10 0101 : 5 10 0000 0000 EE 261 Krish hakrabarty 7 Multiplication Example: : 12 10 0101 : 5 10 0000 0000 0011 : 60 10 EE 261 Krish hakrabarty 8

Multiplication Example: : 12 10 0101 : 5 10 0000 0000 0011 : 60 10 multiplicand multiplier partial products product M x N-bit multiplication Produce N M-bit partial products um these to produce M+N-bit product EE 261 Krish hakrabarty 9 The Binary Multiplication 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 0 Multiplicand Multiplier AND operation 1 0 1 0 1 0 Partial Products 0 0 0 0 0 0 + 1 0 1 0 1 0 1 1 1 0 0 1 1 1 0 EE 261 Krish hakrabarty 10

General Form Multiplicand: Y = (y M-1,y M-2,, y 1, y 0 ) Multiplier: X = (x N-1, x N-2,, x 1, x 0 ) Product: P = y x = x y M 1 N 1 N 1M 1 j i i+ j j2 i2 i j2 j= 0 i= 0 i= 0 j= 0 y 5 y 4 y 3 y 2 y 1 y 0 x 5 x 4 x 3 x 2 x 1 x 0 multiplicand multiplier x 0 y 5 x 0 y 4 x 0 y 3 x 0 y 2 x 0 y 1 x 0 y 0 p 11 p0 x 1 y 5 x 1 y 4 x 1 y 3 x 1 y 2 x 1 y 1 x 1 y 0 x 2 y 5 x 2 y 4 x 2 y 3 x 2 y 2 x 2 y 1 x 2 y 0 x 3 y 5 x 3 y 4 x 3 y 3 x 3 y 2 x 3 y 1 x 3 y 0 x 4 y 5 x 4 y 4 x 4 y 3 x 4 y 2 x 4 y 1 x 4 y 0 p 10 p 9 p 8 p 7 p 6 p 5 p 4 p 3 p 2 p 1 x 5 y 5 x 5 y 4 x 5 y 3 x 5 y 2 x 5 y 1 x 5 y 0 partial products product EE 261 Krish hakrabarty 11 Dot Diagram Each dot represents a bit x 0 partial products multiplier x x 15 EE 261 Krish hakrabarty 12

The Array Multiplier x 3 x 2 x 1 x 0 y 0 x 3 x 2 x 1 x 0 Z 0 y 1 HA FA FA HA x 3 x 2 x 1 x 0 y 2 Z 1 Z 7 x 3 FA FA FA HA FA FA FA HA Z 6 x 2 Z 5 x 1 Z 4 x 0 Z 3 y 3 Z 2 FA: Full adder HA: Half adder (two inputs) Propagation delay =? EE 261 Krish hakrabarty 13 The MxN Array Multiplier ritical Path HA FA FA HA FA FA FA HA ritical Path 1 ritical Path 2 ritical Path 1 & 2 FA FA FA HA EE 261 Krish hakrabarty 14

arry-ave Multiplier HA HA HA HA HA FA FA FA HA FA FA FA arries saved for next adder stage HA FA FA HA Unique critical path Trade offs? EE 261 Krish hakrabarty 15 Adder ells in Array Multiplier P V DD A i V DD A A P P i V DD B A P B A P V DD i i P o A i Identical Delays for arry and um P EE 261 Krish hakrabarty 16

Multiplier Floorplan X 3 X 2 X 1 X 0 Y 0 Y 1 Z 0 HA Multiplier ell FA Multiplier ell Y 2 Z 1 Vector Merging ell Y 3 Z 2 XandYsignalsarebroadcasted through the complete array. Z 7 Z 6 Z 5 Z 4 Z 3 EE 261 Krish hakrabarty 17 Multipliers ummary Optimization Goals Different Vs Binary Adder Once Again: Ide ntify ritical Path Other poss ible techniques - Logarithmic versus Linear - Data encoding (Booth) - Pipe lining (Wallace tree multiplier) EE 261 Krish hakrabarty 18

omparators 0 s detector: A = 00 000 1 s detector: A = 11 111 Equality comparator: A = B Magnitude comparator: A < B EE 261 Krish hakrabarty 19 1 s & 0 s Detectors 1 s detector: N-input AND gate 0 s detector: NOTs + 1 s detector (N-input NOR) A 7 A 6 A 5 A 4 A 3 A 2 allones A 3 A 2 A 1 A 0 allzeros A 1 A 0 A 7 A 6 A 5 A 4 A 3 A 2 allones A 1 A 0 EE 261 Krish hakrabarty 20

Equality omparator heck if each bit is equal (XNOR, aka equality gate) 1 s detect on bitwise equality B[3] A[3] B[2] A[2] B[1] A[1] B[0] A[0] A = B EE 261 Krish hakrabarty 21 Magnitude omparator ompute B-A and look at sign B-A = B + ~A + 1 For unsigned numbers, carry out is sign bit B 3 A B N A B A 3 B 2 A 2 B 1 Z A = B A 1 B 0 A 0 EE 261 Krish hakrabarty 22

hifters Logical hift: hifts number left or right and fills with 0 s 1011 LR 1 = 0101 1011 LL1 = 0110 Arithmetic hift: hifts number left or right. Rt shift sign extends 1011 AR1 = 1101 1011 AL1 = 0110 Rotate: hifts number left or right and fills with lost bits 1011 ROR1 = 1101 1011 ROL1 = 0111 EE 261 Krish hakrabarty 23 The Binary hifter Right nop Left One-bit shifts A i B i A i-1 B i-1 Bit-lice i EE 261 Krish hakrabarty 24

Multi-bit hifters ascade one-bit shifters? omplex, unwieldy, slow for larger number of shifts Two other types of shifters Barrel shifter Logarithmic shifter EE 261 Krish hakrabarty 25 The Barrel hifter A 3 h1 B 3 hift by 0 to 3 bits A 2 B 2 h2 :DataWire A 1 B 1 : ontrol Wire h3 A 0 B 0 h0 h1 h2 h3 EE 261 Krish hakrabarty 26

The Barrel hifter Area dominated by wiring Propagation delay is theoretically constant (at most one transmission gate), independent of shifter size, no. of shifts Reality: apacitance on buffer input α maximum shift width EE 261 Krish hakrabarty 27 4x4 barrel shifter A 3 A 2 A 1 A 0 h0 h1 h2 h3 Width barrel ~ 2 p m M Buffer pm = metal/poly pitch M = no. of shifts EE 261 Krish hakrabarty 28

Logarithmic hifter taged approach, e.g. 7 = 1 + 2 + 4, 5 = 1 + 0 + 4 hifter with maximum shift width M consists of log 2 M stages h1 h1 h2 h2 h4 h4 A 3 B 3 A 2 B 2 A 1 B 1 A 0 B 0 EE 261 Krish hakrabarty 29 0-7 bit Logarithmic hifter A 3 Out3 A 2 Out2 A 1 Out1 A 0 Out0 EE 261 Krish hakrabarty 30

Funnel hifter A funnel shifter can do all six types of shifts elects N-bit field Y from 2N-bit input hift by k bits (0 k < N) 2N-1 N-1 0 B offset + N-1 offset Y EE 261 Krish hakrabarty 31 Funnel hifter Operation omputing N-k requires an adder EE 261 Krish hakrabarty 32

Funnel hifter Design 1 N N-input multiplexers Use 1-of-N hot select signals for shift amount nmo pass transistor design (V t drops!) k[1:0] left Inverters & Decoder s 3 s 2 s 1 s 0 Y 3 Y 2 Z 6 Y 1 Z 5 Y 0 Z 4 Z 3 Z 2 Z 1 Z 0 EE 261 Krish hakrabarty 33 Funnel hifter Design 2 k 1 k 0 Log N stages of 2-input muxes left No select decoding needed Z 0 Y 0 Z 1 Y 1 Z 2 Y 2 Z 3 Y 3 Z 4 Z 5 Z 6 EE 261 Krish hakrabarty 34