Top Banner
Top schools in India Top schools in India By: School.edhole.com
14

Top schools in india

Jan 19, 2015

Download

Education

Edhole.com

its all about schools information
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Top schools in india

Top schools in IndiaTop schools in IndiaBy:

School.edhole.com

Page 2: Top schools in india

Arithmetic Logic UnitArithmetic Logic UnitALUALU

By: Ahmad YazdankhahCS 147

Fall 2008Prof: Dr. Sin-Min Lee

School.edhole.com

Page 3: Top schools in india

Table of ContentsTable of Contents

AssumptionsReview: Bus ConceptReview: CPU Building BlockThe Simplest Computer Building Blocks What’s ALU?Typical Schematic Symbol of an ALULet’s Build a 1-Bit ALUUseful LinksReferences

School.edhole.com

Page 4: Top schools in india

AssumptionsAssumptions

You are familiar with:1.Number representations (1s complement,

2s comp.)2.Arithmetic operations (Add, Sub, . . .)3.Floating Point concept4.Registers in CPU (Accumulator, Program

Counter, Instruction Register, …)

School.edhole.com

Page 5: Top schools in india

Review: Bus ConceptReview: Bus ConceptSchool.edhole.com

Page 6: Top schools in india

Review: CPU Building BlocksReview: CPU Building Blocks

Registers (IR, PC, ACC)

Control Unit(CU)

Arithmetic Logic Unit (ALU)

School.edhole.com

Page 7: Top schools in india

The Simplest Computer Building The Simplest Computer Building BlocksBlocks

Instruction Register (IR)

Program Counter (PC)

Control Unit (CU)

ALU

Accumulator (ACC)

0

1

2

3

4

5

.

CPU RAM

Status Register (FLAG)School.edhole.com

Page 8: Top schools in india

What’s ALU?What’s ALU?

1. ALU stands for: Arithmetic Logic Unit2. 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.

School.edhole.com

Page 9: Top schools in india

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 . . .School.edhole.com

Page 10: Top schools in india

Let’s Build a 1-Bit ALULet’s Build a 1-Bit ALU

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.

School.edhole.com

Page 11: Top schools in india

Building a 1-Bit ALU Building a 1-Bit ALU (cont’d)(cont’d)

Adding a full adder to our ALU

School.edhole.com

Page 12: Top schools in india

A 32-Bit ALUA 32-Bit ALUBy paralleling the one-bit ALUs and some other modification on the

logical circuits, we can create bigger ALUs.

School.edhole.com

Page 13: Top schools in india

Useful LinksUseful Links

Virginia Tech online courses:http://courses.cs.vt.edu/~csonline/index.html

Virginia Tech online Circuit Simulatorhttp://courses.cs.vt.edu/~csonline/MachineArchitecture/Lessons/Circuits/simcir_frame.html

Virginia Tech Microprocessor Simulation:http://courses.cs.vt.edu/~csonline/MachineArchitecture/Lessons/CPU/sumprogram.html

School.edhole.com

Page 14: Top schools in india

References:References:

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

School.edhole.com