CSE 3322 Computer Architecture Dr. John Patterson 614 NH Office Hours: M, W 11 –12 noon...

Post on 19-Jan-2016

212 views 0 download

Tags:

transcript

CSE 3322 Computer Architecture

Dr. John Patterson 614 NH

Office Hours: M , W 11 –12 noon 817-272-3679 john.patterson@uta.eduGrading Policy: Project 25% Exam I 25%

Exam III 25% Homework 5% add on

Turn in start of class – no late homework

Exam II 25%

CSE 3322 Computer Architecture

Course WEB SITE

crystal.uta.edu/~jpatters

“If we don’t succeed, we run the risk of failure.”

Bill Clinton

CSE 3322 Computer Architecture

The Low Level knowledge needed byHigh Level Programmers

Five Components of Computers

Input

Output

MemoryControl

Datapath

Processor

Input Instructions

Input

Output

MemoryControl

Datapath

C=A+B

AB

C

Fetch Instructions

Input

Output

MemoryControl

Datapath

C=A+B

AB

C

ADD A,B

Fetch Operands

Input

Output

MemoryControl

Datapath

C=A+B

AB

C

ADD A,B

A,B

Execute Command

Input

Output

MemoryControl

Datapath

C=A+B

AB

C

ADD A,B

A+B

Store Results & Output

Input

Output

MemoryControl

Datapath

C=A+B

AB

A+B

ADD A,B

A+B

Input

Output

MemoryControl

Datapath

C=A+B

AB

A+B

ADD A,B

A+B

Some Architecture Considerations• Integer or Floating Point

• Number of Operands

Architecture Design Criteria

• Performance

Architecture Design Criteria

• Performance

• Hardware Costs

Architecture Design Criteria

• Performance

• Hardware Costs Performance

Architecture Design Criteria

• Performance

• Hardware Costs Performance

• Instruction Complexity

Architecture Design Criteria

• Performance

• Hardware Costs Performance

• Instruction Complexity

• Hardware Software Trade-Offs

Architecture Design Criteria

• Performance

• Hardware Costs Performance

• Instruction Complexity

• Hardware Software Trade-Offs

• Etc., Etc., Etc.

Evolution of Registers in Datapath

Accumulator

ADD 300 Add the contents of memory location 300 to the Accumulator

A + Memory[300] A

A Ex: 32 Flip-Flops

Evolution of Registers in Datapath

Accumulator

ADD 300

A + Memory[300] A

A

Special Registers were added with special functions

Ex: 32 Flip-Flops

Evolution of Registers in Datapath

Accumulator

ADD 300

A + Memory[300] A

A

Special Registers were added with special functions

Ex: 32 Flip-Flops

Models orAbstractions

Evolution of Registers in Datapath

• 32 General Purpose Registers

Evolution of Registers in Datapath

• 32 General Purpose Registers

• Called a Load-Store or Register-Register machine

Evolution of Registers in Datapath

• 32 General Purpose Registers

• Called a Load-Store or Register-Register machine

• All Registers can be used for any purpose

Evolution of Registers in Datapath

• 32 General Purpose Registers

• Called a Load-Store or Register-Register machine

• All Registers can be used for any purpose

• Ex: Add any two Registers and put the result in a third Register

Instruction Set Architecture

• Consists of All of the Instructions and How Each Works

Instruction Set Architecture

• Consists of All of the Instructions and How Each Works

Models orAbstractions

Instruction Set Architecture

• Consists of All of the Instructions and How Each Works

• Is the Interface Between Hardware and Software

Instruction Set Architecture

• Consists of All of the Instructions and How Each Works

• Is the Interface Between Hardware and Software

• Defines the Functionality

Instruction Set Architecture

• Consists of All of the Instructions and How Each Works

• Is the Interface Between Hardware and Software

• Defines the Functionality

• Determines the Inherent Performance

Instruction Set Architecture

• Consists of All of the Instructions and How Each Works

• Is the Interface Between Hardware and Software

• Defines the Functionality

• Determines the Inherent Performance

• Determines the Software Compatibility

Software Hierarchical Layers

Machine Instruction 101110001100010000001

Software Hierarchical Layers

Machine Instruction 101110001100010000001

Assembly Language add $2, $5,$2

Assembler

Software Hierarchical Layers

Machine Instruction 101110001100010000001

Assembly Language add $2, $5,$2

High Level Language g = h + A[8]

Assembler

Compiler

Software Hierarchical Layers

Machine Instruction 101110001100010000001

Assembly Language add $2, $5, $2

High Level Language g = h + A[8]

Assembler

Compiler Models orAbstractions

Why Study Computer Architecture

• Learn to Design Computers– Processors Designed by Few Semiconductor

Companies

Why Study Computer Architecture

• Learn to Design Computers– Processors Designed by Few Semiconductor

Companies

• Learn to Design Device Controllers

Why Study Computer Architecture

• Learn to Design Computers– Processors Designed by Few Semiconductor

Companies

• Learn to Design Device Controllers

• Learn to Design More Optimum Software!

Why Study Computer Architecture

• Learn to Design Computers– Processors Designed by Few Semiconductor

Companies

• Learn to Design Device Controllers

• Learn to Design More Optimum Software!

• Learn to Design More Optimum Systems!