Swamynathan.S.M AP/ECE/SNSCT

Slides:



Advertisements
Similar presentations
Kuliah Rangkaian Digital Kuliah 7: Unit Aritmatika
Advertisements

CPE 626 CPU Resources: Adders & Multipliers Aleksandar Milenkovic Web:
Comparator.
Datorteknik ArithmeticCircuits bild 1 Computer arithmetic Somet things you should know about digital arithmetic: Principles Architecture Design.
1 ALUs. 2 Topics: ALU Overview - core of the integer datapath - 2 operands, 32-bits wide, plus control signals Exercise: A simple multiplier.
CSE-221 Digital Logic Design (DLD)
Fall 2005 L15: Combinational Circuits Lecture 15: Combinational Circuits Complete logic functions Some combinational logic functions –Half adders –Adders.
IMPLEMENTATION OF µ - PROCESSOR DATA PATH
ECE C03 Lecture 61 Lecture 6 Arithmetic Logic Circuits Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
Lecture 8 Arithmetic Logic Circuits
Chapter 5 Arithmetic Logic Functions. Page 2 This Chapter..  We will be looking at multi-valued arithmetic and logic functions  Bitwise AND, OR, EXOR,
L23 – Arithmetic Logic Units. Arithmetic Logic Units (ALU)  Modern ALU design  ALU is heart of datapath  Ref: text Unit 15 9/2/2012 – ECE 3561 Lect.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
CS1Q Computer Systems Lecture 9 Simon Gay. Lecture 9CS1Q Computer Systems - Simon Gay2 Addition We want to be able to do arithmetic on computers and therefore.
Chapter 6-1 ALU, Adder and Subtractor
1/8/ L3 Data Path DesignCopyright Joanne DeGroat, ECE, OSU1 ALUs and Data Paths Subtitle: How to design the data path of a processor.
L26 – Datapath ALU implementation
Computing Systems Designing a basic ALU.
CDA 3101 Fall 2013 Introduction to Computer Organization The Arithmetic Logic Unit (ALU) and MIPS ALU Support 20 September 2013.
Lecture 18: Hardware for Arithmetic Today’s topic –Intro to Boolean functions (Continued) –Designing an ALU 1.
EE 466/586 VLSI Design Partha Pande School of EECS Washington State University
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 8 Arithmetic.
A four function ALU A 00 ADD B MUX SUB 11 Result AND OR
1 Carry Lookahead Logic Carry Generate Gi = Ai Bi must generate carry when A = B = 1 Carry Propagate Pi = Ai xor Bi carry in will equal carry out here.
B1000 ALU ENGR xD52 Eric VanWyk Fall Today Review Timing with Adders Construct Adder/Subtractor Construct ALU.
1 ECE 545—Digital System Design with VHDL Lecture 1 Digital Logic Refresher Part A – Combinational Logic Building Blocks.
1 Lecture 11: Hardware for Arithmetic Today’s topics:  Logic for common operations  Designing an ALU  Carry-lookahead adder.
Lecture #23: Arithmetic Circuits-1 Arithmetic Circuits (Part I) Randy H. Katz University of California, Berkeley Fall 2005.
B0111 ALU ENGR xD52 Eric VanWyk Fall Today Review Timing with Adders Construct Adder/Subtractor Compare Growth Characteristics Construct ALU.
B0110 ALU ENGR xD52 Eric VanWyk Fall Today Back to Gates! Review Timing with Adders Compare Growth Characteristics Construct Adder/Subtractor Construct.
MicroBaby ALU.
PICo Arithmetic and Logic Unit The Need for Speed (with minimal area and power)
Computer Arthmetic Chapter Four P&H.
Combinational Circuits
Somet things you should know about digital arithmetic:
Lecture 12 Logistics Last lecture Today HW4 due today Timing diagrams
Subtitle: How to design the data path of a processor.
Lecture 11: Hardware for Arithmetic
Chap 7. Register Transfers and Datapaths
Homework Reading Machine Projects Labs
Addition and multiplication
Digital Systems Section 8 Multiplexers. Digital Systems Section 8 Multiplexers.
Basics of digital systems
Lecture 12 Modular Design Topics Adder and Subtractor Design
FUNCTION OF COMBINATIONAL LOGIC CIRCUIT
Computer Organization and Design
Combinational Circuits
CSE Winter 2001 – Arithmetic Unit - 1
Lecture 14 Logistics Last lecture Today
King Fahd University of Petroleum and Minerals
Arithmetic Circuits (Part I) Randy H
Digital Integrated Circuits A Design Perspective
Lecture 11: Hardware for Arithmetic
Combinational logic design case studies
Digital Systems Section 12 Binary Adders. Digital Systems Section 12 Binary Adders.
By: A. H. Abdul Hafez CAO, by Dr. A.H. Abdul Hafez, CE Dept. HKU
Homework Reading Machine Projects Labs
Overview Part 1 – Design Procedure Part 2 – Combinational Logic
Part III The Arithmetic/Logic Unit
COMS 361 Computer Organization
Instructor: Mozafar Bag-Mohammadi University of Ilam
Lecture 14 Logistics Last lecture Today
Addition and multiplication
Combinational Circuits
ECE 352 Digital System Fundamentals
Lecture 9 Digital VLSI System Design Laboratory
Arithmetic Circuits.
Arithmetic Building Blocks
Number Representation
Presentation transcript:

Swamynathan.S.M AP/ECE/SNSCT ALUs and Data Paths Swamynathan.S.M AP/ECE/SNSCT 7/4/2018 UNIT 5/VLSI DESIGN/ARITHMETIC DESIGN

UNIT 5/VLSI DESIGN/ARITHMETIC DESIGN Lecture overview General Data Path Design Design of a multifunction ALU 7/4/2018 UNIT 5/VLSI DESIGN/ARITHMETIC DESIGN

Design of ALUs and Data Paths Objective: Design a General Purpose Data Path such as the datapath found in a typical computer. A Data Path Contains: Registers – general purpose, special purpose Execution Units capable of multiple functions 7/4/2018 UNIT 5/VLSI DESIGN/ARITHMETIC DESIGN

ALU Operations (integer ALU) Add (A+B) Add with Carry (A+B+Cin) Subtract (A-B) Subtract with Borrow (A-B-Cin) [Subract reverse (B-A)] [Subract reverse with Borrow (B-A-Cin)] Negative A (-A) Negative B (-B) Increment A (A+1) Increment B (B+1) Decrement A (A-1) Decrement B (B-1) Logical AND Logical OR Logical XOR Not A Not B A B Multiply Step or Multiply Divide Step or Divide Mask Conditional AND/OR (uses Mask) Shift Zero 7/4/2018 UNIT 5/VLSI DESIGN/ARITHMETIC DESIGN

UNIT 5/VLSI DESIGN/ARITHMETIC DESIGN A High Level Design From Hayes textbook on architecture. 7/4/2018 UNIT 5/VLSI DESIGN/ARITHMETIC DESIGN

UNIT 5/VLSI DESIGN/ARITHMETIC DESIGN The AMD 2901 Bit Slice ALU 7/4/2018 UNIT 5/VLSI DESIGN/ARITHMETIC DESIGN

UNIT 5/VLSI DESIGN/ARITHMETIC DESIGN The Architecture 7/4/2018 UNIT 5/VLSI DESIGN/ARITHMETIC DESIGN

Arithmetic Logic Circuits The Brute Force Approach A more modern approach 7/4/2018 UNIT 5/VLSI DESIGN/ARITHMETIC DESIGN

Arithmetic Logic Circuits The Brute Force Approach Simple and straightfoward A more modern approach 7/4/2018 UNIT 5/VLSI DESIGN/ARITHMETIC DESIGN

Arithmetic Logic Circuits The Brute Force Approach A more modern approach Where the logic unit and the adder unit are optimized 7/4/2018 UNIT 5/VLSI DESIGN/ARITHMETIC DESIGN

A Generic Function Unit Another Design – a multifunction unit Desire a generic functional unit that can perform many functions A 4-to-1 mux will perform all basic logic functions of 2 inputs 7/4/2018 UNIT 5/VLSI DESIGN/ARITHMETIC DESIGN

Low level implementation At the implementation Level the design can be With transmission gates Very important for VLSI implementation Implementation has a total Of 16 transistors. Could also use NAND NOR implementation. 7/4/2018 UNIT 5/VLSI DESIGN/ARITHMETIC DESIGN

Low level implementation An implementation in pass gates (CMOS) When the control signal is a ‘1’ the value will be transmitted Otherwise it is an open switch 7/4/2018 UNIT 5/VLSI DESIGN/ARITHMETIC DESIGN

Lets look at Binary Addition We can use this generic function unit construct a generic ALU. For Binary Addition consider the following: SUMi = Ai xor Bi xor Ci Ci+1 = Ai Bi + Ai Ci + Bi Ci 7/4/2018 UNIT 5/VLSI DESIGN/ARITHMETIC DESIGN

An Alternative - Define two signals Equations for P and K Pi = Ai xor Bi Ki = Ai’ Bi’ Now can reform Sum, Cout equations into functions of P and K and Cin 7/4/2018 UNIT 5/VLSI DESIGN/ARITHMETIC DESIGN

UNIT 5/VLSI DESIGN/ARITHMETIC DESIGN New functions Using these definitions of P and K SUMi = Pi xor Ci Ci+1 = Pi Ci + Pi’ Ki’ = Pi Ci + AiBi You can use the generic functional blocks to generate P and K and then select the correct function for final output 7/4/2018 UNIT 5/VLSI DESIGN/ARITHMETIC DESIGN

UNIT 5/VLSI DESIGN/ARITHMETIC DESIGN A bit slice of the ALU Slice starts out with a generic unit which can produce any function of inputs Ai and Bi to produce Pi Need another to produce Ki (kill block) And a 3rd to generate the result (results generator block) And also need a dedicated unit to compute the carry out, the Ci+1 term 7/4/2018 UNIT 5/VLSI DESIGN/ARITHMETIC DESIGN

Generation of the carry out Ci+1 = Pi Ci + Pi’Ki’ The carry chain is the critical path for arithmetic operations. A simple ripple carry circuit is shown here for the slice Actual implementation depend on the technology in which implemented. 7/4/2018 UNIT 5/VLSI DESIGN/ARITHMETIC DESIGN

Carry chain implementation CMOS – Manchester carry chain using precharge pulldown logic works well. ECL – Carry look-ahead circuitry works well as ECL allows for large fan-in wired OR gates. 7/4/2018 UNIT 5/VLSI DESIGN/ARITHMETIC DESIGN

Multibit implementation 7/4/2018 UNIT 5/VLSI DESIGN/ARITHMETIC DESIGN

Function codes for a multifunction ALU The G values for the various logic functions By setting the value of the G inputs, the output is the corresponding logic function of the data which comes in on the select inputs. Need the results block to route the P result. 7/4/2018 UNIT 5/VLSI DESIGN/ARITHMETIC DESIGN

UNIT 5/VLSI DESIGN/ARITHMETIC DESIGN Binary Subtraction Much like addition but now choose P = A xnor B K = A B’ Diff D = A xor B xor Bin = A xnor B xnor Bin Borrow Out Bout=P Bin + P’ K’ 7/4/2018 UNIT 5/VLSI DESIGN/ARITHMETIC DESIGN

The codes to have the ALU work Consider as we go to the sliced ALU Logic function done in the P generic unit Math uses all the blocks Function P K R Cin A 12 --- A and B 8 -- OR 14 A + B + Cin 6 1 A+B Incr A 3 A – B 9 4 0 or Bin 7/4/2018 UNIT 5/VLSI DESIGN/ARITHMETIC DESIGN

Multibit implementation 7/4/2018 UNIT 5/VLSI DESIGN/ARITHMETIC DESIGN