IKI10201 05b-Arithmetic Logic Unit (ALU) Bobby Nazief Semester-I 2005 - 2006 The materials on these slides are adopted from: CS231’s Lecture Notes at UIUC,

Slides:



Advertisements
Similar presentations
Part 4: combinational devices
Advertisements

ADDER, HALF ADDER & FULL ADDER
Combinational Circuits
IKI b-Simplification of Boolean Functions Bobby Nazief Semester-I The materials on these slides are adopted from Prof. Daniel Gajski’s.
Tutorial: Wednesday Week 3 Hand in on Monday, Do the questions for tutorials 1 & 2 at the back of the course notes (answers to tutorial 3 will be published.
Class Presentation on Binary Moment Diagrams by Krishna Chillara Base Paper: “Verification of Arithmetic Circuits using Binary Moment Diagrams” by.
ECE 331 – Digital System Design
DATAPATHS 3) Shifters. 4) Comparators 5) Counters.
Arithmetic II CPSC 321 E. J. Kim. Today’s Menu Arithmetic-Logic Units Logic Design Revisited Faster Addition Multiplication (if time permits)
08/07/041 CSE-221 Digital Logic Design (DLD) Lecture-8:
Chapter 10-Arithmetic-logic units
Cache Memory Midterm 2 Revision 2 Prof. Sin-Min Lee Department of Computer Science.
Arithmetic-Logic Units CPSC 321 Computer Architecture Andreas Klappenecker.
Combinational Logic1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
ECE 301 – Digital Electronics
ECE 301 – Digital Electronics
Arithmetic-Logic Units (ALUs). The four-bit adder The basic four-bit adder always computes S = A + B + CI But by changing what goes into the adder inputs.
Part 2: DESIGN CIRCUIT. LOGIC CIRCUIT DESIGN x y z F F = x + y’z x y z F Truth Table Boolean Function.
Arithmetic-logic units
Arithmetic Operations and Circuits Lecture 5. Binary Arithmetic let’s look at the procedures for performing the four basic arithmetic functions: addition,
Building Adders & Sub tractors Dr Ahmed Telba. Introducing adder circuits Adder circuits are essential inside microprocessors as part of the ALU, or arithmetic.
IKI c-Synthesis of Sequential Logic Bobby Nazief Semester-I The materials on these slides are adopted from: Prof. Daniel Gajski’s transparency.
IKI a-Boolean Algebra Bobby Nazief Semester-I The materials on these slides are adopted from those in CS231’s Lecture Notes at UIUC,
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
Computer Architecture I: Digital Design Dr. Robert D. Kent Logic Design Medium Scale Integration and Programmable Logic Devices Part I.
ADDERS Half Adders Recall that the basic rules of binary addition are as indicated below in Table 2-9. A circuit known as the half-adder carries out these.
IKI a-Combinatorial Components Bobby Nazief Semester-I The materials on these slides are adopted from those in CS231’s Lecture Notes.
The Digital Logic Level
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
IKI Register-transfer Design
ECE 3110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices Adders, subtractors, ALUs.
Module 9.  Digital logic circuits can be categorized based on the nature of their inputs either: Combinational logic circuit It consists of logic gates.
1 Lecture #7 EGR 277 – Digital Logic Reading Assignment: Chapter 4 in Digital Design, 3 rd Edition by Mano Chapter 4 – Combinational Logic Circuits A)
ECEN 248 Lab 4: Multiplexer Based Arithmetic Logic Unit
Lecture 9 Topics: –Combinational circuits Basic concepts Examples of typical combinational circuits –Half-adder –Full-adder –Ripple-Carry adder –Decoder.
IKI10201: Introduction to Digital Systems Bobby Nazief Semester-I The materials on these slides are adopted from those in CS231’s Lecture Notes.
IT253: Computer Organization Lecture 7: Logic and Gates: Digital Design Tonga Institute of Higher Education.
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.
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 8 Arithmetic.
Universal college of engineering & technology. .By Harsh Patel)
July 2, 2002Latches1 Defining a logic unit A logic unit supports different logical functions on two multi-bit inputs X and Y, producing an output G. This.
IT253: Computer Organization
Digital Logic Structures: Chapter 3 COMP 2610 Dr. James Money COMP
Logic Design / Processor and Control Units Tony Diep.
Copied with Permission from prof. Mark PSU ECE
COMBINATIONAL LOGIC.
Arithmetic-logic units1 An arithmetic-logic unit, or ALU, performs many different arithmetic and logic operations. The ALU is the “heart” of a processor—you.
LECTURE 4 Logic Design. LOGIC DESIGN We already know that the language of the machine is binary – that is, sequences of 1’s and 0’s. But why is this?
Lecture #23: Arithmetic Circuits-1 Arithmetic Circuits (Part I) Randy H. Katz University of California, Berkeley Fall 2005.
1 Ethics of Computing MONT 113G, Spring 2012 Session 4 Binary Addition.
Simple ALU  Half adder  Full adder  Constructing 4 bits adder  ALU does several operations  General ALU structure  Timing diagram of adder  Overflow.
How does a Computer Add ? Logic Gates within chips: AND Gate A B Output OR Gate A B Output A B A B
ELECTRICAL ENGINEERING: PRINCIPLES AND APPLICATIONS, Third Edition, by Allan R. Hambley, ©2005 Pearson Education, Inc. Chapter 7 Logic Circuits.
IKI b-Analysis of Sequential Logic Bobby Nazief Semester-I The materials on these slides are adopted from: CS231’s Lecture Notes at.
WORKING PRINCIPLE OF DIGITAL LOGIC
Discrete Systems I Lecture 10 Adder and ALU Profs. Koike and Yukita.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
ETE 204 – Digital Electronics Combinational Logic Design Single-bit and Multiple-bit Adder Circuits [Lecture: 9] Instructor: Sajib Roy Lecturer, ETE,ULAB.
Combinational Circuits
Combinational Circuits
EEL 3705 / 3705L Digital Logic Design
ECE 301 – Digital Electronics
COSC 2021: Computer Organization Instructor: Dr. Amir Asif
Number Systems and Circuits for Addition
Unit 10 Arithmetic-logic Units
One’s complement addition
Combinational Circuits
XOR Function Logic Symbol  Description  Truth Table 
Instruction execution and ALU
Presentation transcript:

IKI b-Arithmetic Logic Unit (ALU) Bobby Nazief Semester-I The materials on these slides are adopted from: CS231’s Lecture Notes at UIUC, which is derived from Howard Huang’s work and developed by Jeff Carlyle; Prof. Daniel Gajski’s transparency for Principles of Digital Design.

Adders/Subractors: Arithmetic Unit When Sub = 0, the XOR gates output B3 B2 B1 B0 and the carry in is 0. The adder output will be A + B + 0, or just A + B. When Sub = 1, the XOR gates output B3’ B2’ B1’ B0’ and the carry in is 1. Thus, the adder output will be a two’s complement subtraction, A - B. Arithmetic Unit that is capable to do addition & subtraction can be constructed using Full Adders.

Logical Unit In addtion to arithmetic operations, most computers also support logical operations like AND, OR and NOT, but extended to multi-bit words instead of just single bits. To apply a logical operation to two words X and Y, apply the operation on each pair of bits X i and Y i : 1011 AND OR XOR

Defining a logic unit Boolean functions of 2 variables have 2 inputs, 1 output, and 4 minterms We can generate 16 Boolean functions using 4 (select) variables: the Truth Table: Boolean Functions: – AND  f 8  values of select variables S 3 S 2 S 1 S 0 = 1000 – OR  f 14  values of select variables S 3 S 2 S 1 S 0 = 1110 –...

Logic unit implementation

Arithmetic-Logic Units (ALUs) An arithmetic-logic unit, or ALU, performs many different arithmetic and logic operations. The ALU is the “heart” of a processor—you could say that everything else in the CPU is there to support the ALU.

One of ALU structures AE = Arithmetic Extender (Add, Sub, Inc, Dec) LE = Logic Extender (AND, OR, PASS, NOT)

Additional variables for AE & LE M: select arithmetic or logic operations – M = 1  ALU will perform arithmetic operation – M = 0  ALU will perform logic operation S 1 & S 0 : once arithmetic or logic operations has been selected, these 2 variable will select specific operations to be performed by ALU – M = 1  S 1 & S 0 will select one of Add, Sub, Inc, Dec – M = 0  S 1 & S 0 will select one of AND, OR, PASS, NOT

Arithmetic Extender Functional Table: Implementation: LE’s requirement

Logic Extender Functional Table: Truth Table: satisfy AE Conforms with AE’s output

Logic Extender (cont.) Map & Implementation:

The ALU If M = 1, then – X i = a i, Y i = A(b i ), c 0 = S 1 If M = 0, then – X i = L(a i,b i ), Y i = 0, c 0 = 0

ALU function table

ALU’s summary This ALU is a good example of hierarchical design. – With the 12 inputs, the truth table would have had 2 12 = 4096 lines. That’s an awful lot of paper. – Instead, we were able to re-use components that we’ve seen before to construct the entire circuit from a couple of easy-to-understand components. As always, we encapsulate the complete circuit in a “black box” so we can reuse it in fancier circuits.