Prepared by: Sanchita mishra Sonkali bhalavi sunita Submitted to: Shweta agrawal.

Slides:



Advertisements
Similar presentations
ADDER, HALF ADDER & FULL ADDER
Advertisements

INSTRUCTION SET ARCHITECTURES
Chapter 9 Computer Design Basics. 9-2 Datapaths Reminding A digital system (or a simple computer) contains datapath unit and control unit. Datapath: A.
 Suppose for a moment that you were asked to perform a task and were given the following list of instructions to perform:
1 ALUs. 2 Topics: ALU Overview - core of the integer datapath - 2 operands, 32-bits wide, plus control signals Exercise: A simple multiplier.
Arithmetic & Logic Unit Does the calculations Everything else in the computer is there to service this unit Handles integers May handle floating point.
Chapter 7. Register Transfer and Computer Operations
Chapter # 5: Arithmetic Circuits Contemporary Logic Design Randy H
Computer ArchitectureFall 2008 © August 25, CS 447 – Computer Architecture Lecture 3 Computer Arithmetic (1)
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Hao Ji.
Computer ArchitectureFall 2007 © August 29, 2007 Karem Sakallah CS 447 – Computer Architecture.
Arithmetic logic unit (ALU)
Number Systems Lecture 02.
Operations on data CHAPTER 4.
4 Operations On Data Foundations of Computer Science ã Cengage Learning.
Binary Representation and Computer Arithmetic
Arithmetic for Computers
Computer Arithmetic Nizamettin AYDIN
Computer Arithmetic. Instruction Formats Layout of bits in an instruction Includes opcode Includes (implicit or explicit) operand(s) Usually more than.
Computer Architecture Lecture 3: Logical circuits, computer arithmetics Piotr Bilski.
1 Modified from  Modified from 1998 Morgan Kaufmann Publishers Chapter Three: Arithmetic for Computers citation and following credit line is included:
Khaled A. Al-Utaibi  Introduction  Arithmetic Instructions  Basic Logical Instructions  Shift Instructions  Rotate Instructions.
COMPUTER ORGANIZATIONS CSNB123 May 2014Systems and Networking1.
Digital Logic Design Lecture 3 Complements, Number Codes and Registers.
Chapter # 5: Arithmetic Circuits
Topic: Arithmetic Circuits Course: Digital Systems Slide no. 1 Chapter # 5: Arithmetic Circuits.
CH09 Computer Arithmetic  CPU combines of ALU and Control Unit, this chapter discusses ALU The Arithmetic and Logic Unit (ALU) Number Systems Integer.
Oct. 18, 2007SYSC 2001* - Fall SYSC2001-Ch9.ppt1 See Stallings Chapter 9 Computer Arithmetic.
CSE 241 Computer Organization Lecture # 9 Ch. 4 Computer Arithmetic Dr. Tamer Samy Gaafar Dept. of Computer & Systems Engineering.
HCL and ALU תרגול 10. Overview of Logic Design Fundamental Hardware Requirements – Communication: How to get values from one place to another – Computation.
ECEN 248 Lab 4: Multiplexer Based Arithmetic Logic Unit
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Logic and Computer Design.
Chap 7. Register Transfers and Datapaths. 7.1 Datapaths and Operations Two types of modules of digital systems –Datapath perform data-processing operations.
Arithmetic Logic Unit (ALU) Anna Kurek CS 147 Spring 2008.
CDA 3101 Fall 2013 Introduction to Computer Organization The Arithmetic Logic Unit (ALU) and MIPS ALU Support 20 September 2013.
Fixed & Floating Number Format Dr. Hugh Blanton ENTC 4337/5337.
Computer Arithmetic See Stallings Chapter 9 Sep 10, 2009
EKT 221 : Chapter 4 Computer Design Basics
CPS3340 Computer Architecture Fall Semester, 2013
Logic Design / Processor and Control Units Tony Diep.
What is a program? A sequence of steps
Elements of Datapath for the fetch and increment The first element we need: a memory unit to store the instructions of a program and supply instructions.
Instruction Sets. Instruction set It is a list of all instructions that a processor can execute. It is a list of all instructions that a processor can.
Lecture #23: Arithmetic Circuits-1 Arithmetic Circuits (Part I) Randy H. Katz University of California, Berkeley Fall 2005.
ECE DIGITAL LOGIC LECTURE 15: COMBINATIONAL CIRCUITS Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2015, 10/20/2015.
Simple ALU  Half adder  Full adder  Constructing 4 bits adder  ALU does several operations  General ALU structure  Timing diagram of adder  Overflow.
MicroProcessors Lec. 4 Dr. Tamer Samy Gaafar. Course Web Page —
EKT 221 : Digital 2 Computer Design Basics Date : Lecture : 2 hrs.
Microprocessor & Assembly Language
Computer Architecture. Instruction Set “The collection of different instructions that the processor can execute it”. Usually represented by assembly codes,
REGISTER TRANSFER AND MICROOPERATIONS
Array multiplier TU/e Processor Design 5Z032.
REGISTER TRANSFER AND MICROOPERATIONS
Chap 7. Register Transfers and Datapaths
Computer Organization and ASSEMBLY LANGUAGE
Arithmetic Circuits (Part I) Randy H
ECE 352 Digital System Fundamentals
ECE 352 Digital System Fundamentals
Chapter 10 Instruction Sets: Characteristics and Functions
Presentation transcript:

prepared by: Sanchita mishra Sonkali bhalavi sunita Submitted to: Shweta agrawal

Design of arithmetic logical unit(alu)

An Arithmetic logic unit(ALU) Is a digital circuit used to perform Arithmetic & logical unit.For example Add,sub,multiplication,etc

An ALU can be divided into two segments- the arithmetic unit & logical unit. The arithmetic unit performs typical operation such as addition,subtraction, and increment, decrement by 1.usually, operands involved may be signed or unsigned interges.however,an arithemetic unit must handle 4-bit bcd numbers & floating-point numbers ARITHMETIC UNIT

AS NAME IMPLIES, THE LOGIC UNIT CONTAIN HARDWARE ELEMENT THAT PERFORM TYPICAL OPERATION SUCH AS BOOLEAN NOT & OR. HERE, THE DESIGN OF A SIMPLE ALU USING TYPICAL COMBINATIONAL ELEMENT SUCH AS GATE,MULTIPLEXERS, AND 4-BIT PARALLEL ADDER IS DISCUSSED. FOR THIS APPROACH, FIRST AN ARITHMETICAL UNIT AND LOGICAL UNIT ARE DESIGNED SEPERATELY, THEN THEY ARE COMBINED TO OBTAIN AN ALU…………………

 Most of a processor's operations are performed by one or more ALU. An ALU loads data from input registers, executes, and stores the result into an output register. A Control Unit tells the ALU what operation to perform on the data. Other mechanisms move data between these registers and memory. Pratical overview

, as this is the representation that makes it easier for the ALUAn ALU must process numbers using the same format as the rest of the digital circuit. For modern processors, that almost always is the two's complement binary number representation. Early computers used a wide variety of number systems, including one's complement, sign-magnitude format, and even true decimal systems, with ten tubes per digit.  ALUs for each one of these numeric systems had different designs, and that influenced the current preference for two's complements to calculate additions and subtractions. Numerical ststem

 Most ALUs can perform the following operations: 1. Integer arithmetic operations (addition, subtraction, and sometimes multiplication and division, though this is more expensive) 2. Bitwise logic operations (AND, NOT, OR, XOR) 3. Bit-shifting operations (shifting or rotating a word by a specified number of bits to the left or right, with or without sign extension). Shifts can be interpreted as multiplications by 2 and divisions by 2. Simple operation

 An engineer can design an ALU to calculate any operation, however it is complicated; the problem is that the more complex the operation, the more expensive the ALU is, the more space it uses in the processor, and the more power it dissipates, etc.  Therefore, engineers always calculate a compromise, to provide for the processor (or other circuits) an ALU powerful enough to make the processor fast, but yet not so complex as to become prohibitive. Complex operation

The logical operations are easiest, because they map directly onto the hardware components. The 1-bit logical unit for AND and OR looks like figure below. The multiplexor on the right then selects a AND b or a OR b, depending on whether the value of Operation is 0 or 1. The line that controls the multiplexor is shown in color to distinguish it from the lines containing data. In the figure below control and output lines of the multiplexor were renamed to names that reflect the function of the ALU. A 1-BIT ALU