SlideShare a Scribd company logo
7
Most read
8
Most read
9
Most read
By: Ahmad Yazdankhah
CS 147
Fall 2008
Prof: Dr. Sin-Min Lee
 Assumptions
 Review: Bus Concept
 Review: CPU Building Block
 The Simplest Computer Building Blocks
 What’s ALU?
 Typical Schematic Symbol of an ALU
 Let’s Build a 1-Bit ALU
 Useful Links
 References
You are familiar with:
1. Number representations (1s complement, 2s
comp.)
2. Arithmetic operations (Add, Sub, . . .)
3. Floating Point concept
4. Registers in CPU (Accumulator, Program
Counter, Instruction Register, …)
ALU
 Registers
(IR, PC, ACC)
 Control Unit
(CU)
 Arithmetic
Logic Unit
(ALU)
Instruction Register (IR) Program Counter (PC)
Control Unit
(CU)
ALU
Accumulator (ACC)
0
1
2
3
4
5
.
CPU RAM
Status Register (FLAG)
1. ALU stands for: Arithmetic Logic Unit
2. ALU is a digital circuit that performs
Arithmetic (Add, Sub, . . .) and Logical
(AND, OR, NOT) operations.
3. John Von Neumann proposed the ALU in
1945 when he was working on EDVAC.
Typical Schematic Symbol of an ALU
A and B: the inputs to the ALU
(aka operands)
R: Output or Result
F: Code or Instruction from the
Control Unit (aka as op-code)
D: Output status; it indicates cases
such as:
•carry-in
•carry-out,
•overflow,
•division-by-zero
•And . . .
This is an one-bit ALU which can do Logical AND and Logical OR
operation.
Result = a AND b when operation = 0
Result = a OR b when operation = 1
The operation line is the input of a MUX.
Adding a full adder to our ALU
By paralleling the one-bit ALUs and some other modification on the
logical circuits, we can create bigger ALUs.
 Virginia Tech online courses:
http://courses.cs.vt.edu/~csonline/index.html
 Virginia Tech online Circuit Simulator
http://courses.cs.vt.edu/~csonline/MachineArchitecture/L
 Virginia Tech Microprocessor Simulation:
http://courses.cs.vt.edu/~csonline/MachineArchitect
ure/Lessons/CPU/sumprogram.html
 Text book: Computer System Architecture
(By: Rob Williams, 2nd
Edition, Prentice Hall, 2006)
 Site Wikipedia:
http://en.wikipedia.org/wiki/Arithmetic_logic_unit
 Previous Student Lectures:
(By: Anna Kurek, Spring 2008)
 Professor’s Lecture Notes.
 Virginia Tech online courses:
http://courses.cs.vt.edu/~csonline/index.html

More Related Content

PPT
Unit 1 basic structure of computers
PPT
ALU arithmetic logic unit
PPTX
arithmetic logic unit
PPTX
Harvard architecture
PDF
Arithmetic and logic unit
PDF
PPT
HARVARD & VON-NEUMANN ARCHITECTURE
PPT
Microprocessor
Unit 1 basic structure of computers
ALU arithmetic logic unit
arithmetic logic unit
Harvard architecture
Arithmetic and logic unit
HARVARD & VON-NEUMANN ARCHITECTURE
Microprocessor

What's hot (20)

PPT
Arithmetic Logic Unit (ALU)
PPTX
Arithmetic Logic Unit .
PPT
Instruction cycle
PPTX
Timing and control
PPTX
Interrupts
PPTX
Interrupts and types of interrupts
PPTX
Register transfer and micro-operation
PPT
Input output organization
PPTX
Signed Addition And Subtraction
PPTX
Instruction codes
PPTX
Instruction cycle with interrupts
PPS
Virtual memory
PPTX
Arithmetic logic shift unit
PPTX
Unit 4-booth algorithm
PDF
Bus structure in Computer Organization.pdf
PPTX
General register organization (computer organization)
PPT
carry look ahead adder
PPTX
Von Neumann vs Harvard Architecture
PPTX
Microoperations
PPT
Shift Register
Arithmetic Logic Unit (ALU)
Arithmetic Logic Unit .
Instruction cycle
Timing and control
Interrupts
Interrupts and types of interrupts
Register transfer and micro-operation
Input output organization
Signed Addition And Subtraction
Instruction codes
Instruction cycle with interrupts
Virtual memory
Arithmetic logic shift unit
Unit 4-booth algorithm
Bus structure in Computer Organization.pdf
General register organization (computer organization)
carry look ahead adder
Von Neumann vs Harvard Architecture
Microoperations
Shift Register
Ad

Similar to ALU (20)

PPT
Top schools in india
PPT
B.tech admission in india
PPT
Top schools in delhi ncr
PPT
Top schools in delhi ncr
PPT
Top schools in india
DOC
Alu design-project
PPTX
Computer project
PPT
ALUdesign.ppt
PPTX
Unit 4_DECA_Complete Digital Electronics.pptx
PPTX
CPU Architecture - Basic
PPT
Bca 2nd sem-u-3-basic computer programming and micro programmed control
PPTX
COA (Unit_2.pptx)
PPT
B.sc cs-ii-u-3-basic computer programming and micro programmed control
PPTX
Understanding Single-Cycle Datapath Architecture in Computer Systems.pptx
PPTX
Computer architecture chapter 5 bca.pptx
PPT
W9: Laboratory 2
PPTX
2. Functional Components of Computing System.pptx
PPTX
ucs.pptxUCS UNIT 4 INPUT AND OUTPUT DEVICE
PPTX
The central processing unit by group 5 2015
PPTX
CPU Arcthitecture
Top schools in india
B.tech admission in india
Top schools in delhi ncr
Top schools in delhi ncr
Top schools in india
Alu design-project
Computer project
ALUdesign.ppt
Unit 4_DECA_Complete Digital Electronics.pptx
CPU Architecture - Basic
Bca 2nd sem-u-3-basic computer programming and micro programmed control
COA (Unit_2.pptx)
B.sc cs-ii-u-3-basic computer programming and micro programmed control
Understanding Single-Cycle Datapath Architecture in Computer Systems.pptx
Computer architecture chapter 5 bca.pptx
W9: Laboratory 2
2. Functional Components of Computing System.pptx
ucs.pptxUCS UNIT 4 INPUT AND OUTPUT DEVICE
The central processing unit by group 5 2015
CPU Arcthitecture
Ad

More from Ramasubbu .P (20)

PPT
PPT
PPT
Milling 2
PPT
MIlling 1
PPT
Drillings
PPT
Holding
PPT
Saftey
PPT
Harvesting
PPT
Plough
PPT
Tractor PTO
PPT
Tractor Components
PPT
PPT
PPT
PPT
PPT
Hacker
PPT
Denail of Service
PPT
RAID CONCEPT
PPT
Network Security
PPT
Milling 2
MIlling 1
Drillings
Holding
Saftey
Harvesting
Plough
Tractor PTO
Tractor Components
Hacker
Denail of Service
RAID CONCEPT
Network Security

Recently uploaded (20)

PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
Pharma ospi slides which help in ospi learning
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Pre independence Education in Inndia.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Business Ethics Teaching Materials for college
PPTX
Institutional Correction lecture only . . .
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Basic Mud Logging Guide for educational purpose
PPTX
Cell Types and Its function , kingdom of life
PDF
Complications of Minimal Access Surgery at WLH
PDF
O7-L3 Supply Chain Operations - ICLT Program
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Pharma ospi slides which help in ospi learning
Abdominal Access Techniques with Prof. Dr. R K Mishra
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
VCE English Exam - Section C Student Revision Booklet
Pre independence Education in Inndia.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Business Ethics Teaching Materials for college
Institutional Correction lecture only . . .
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
human mycosis Human fungal infections are called human mycosis..pptx
2.FourierTransform-ShortQuestionswithAnswers.pdf
Basic Mud Logging Guide for educational purpose
Cell Types and Its function , kingdom of life
Complications of Minimal Access Surgery at WLH
O7-L3 Supply Chain Operations - ICLT Program

ALU

  • 1. By: Ahmad Yazdankhah CS 147 Fall 2008 Prof: Dr. Sin-Min Lee
  • 2.  Assumptions  Review: Bus Concept  Review: CPU Building Block  The Simplest Computer Building Blocks  What’s ALU?  Typical Schematic Symbol of an ALU  Let’s Build a 1-Bit ALU  Useful Links  References
  • 3. You are familiar with: 1. Number representations (1s complement, 2s comp.) 2. Arithmetic operations (Add, Sub, . . .) 3. Floating Point concept 4. Registers in CPU (Accumulator, Program Counter, Instruction Register, …)
  • 5.  Registers (IR, PC, ACC)  Control Unit (CU)  Arithmetic Logic Unit (ALU)
  • 6. Instruction Register (IR) Program Counter (PC) Control Unit (CU) ALU Accumulator (ACC) 0 1 2 3 4 5 . CPU RAM Status Register (FLAG)
  • 7. 1. ALU stands for: Arithmetic Logic Unit 2. ALU is a digital circuit that performs Arithmetic (Add, Sub, . . .) and Logical (AND, OR, NOT) operations. 3. John Von Neumann proposed the ALU in 1945 when he was working on EDVAC.
  • 8. Typical Schematic Symbol of an ALU A and B: the inputs to the ALU (aka operands) R: Output or Result F: Code or Instruction from the Control Unit (aka as op-code) D: Output status; it indicates cases such as: •carry-in •carry-out, •overflow, •division-by-zero •And . . .
  • 9. This is an one-bit ALU which can do Logical AND and Logical OR operation. Result = a AND b when operation = 0 Result = a OR b when operation = 1 The operation line is the input of a MUX.
  • 10. Adding a full adder to our ALU
  • 11. By paralleling the one-bit ALUs and some other modification on the logical circuits, we can create bigger ALUs.
  • 12.  Virginia Tech online courses: http://courses.cs.vt.edu/~csonline/index.html  Virginia Tech online Circuit Simulator http://courses.cs.vt.edu/~csonline/MachineArchitecture/L  Virginia Tech Microprocessor Simulation: http://courses.cs.vt.edu/~csonline/MachineArchitect ure/Lessons/CPU/sumprogram.html
  • 13.  Text book: Computer System Architecture (By: Rob Williams, 2nd Edition, Prentice Hall, 2006)  Site Wikipedia: http://en.wikipedia.org/wiki/Arithmetic_logic_unit  Previous Student Lectures: (By: Anna Kurek, Spring 2008)  Professor’s Lecture Notes.  Virginia Tech online courses: http://courses.cs.vt.edu/~csonline/index.html