introduction to computer architecture 1 - tulane...

25
Introduction to Computer Architecture and Digital Logic I Fall 2013 Carola Wenk

Upload: others

Post on 18-Jul-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Introduction to Computer Architecture 1 - Tulane Universitycarola/teaching/cmps1500/fall13/slides... · 2013-08-28 · Introduction to Computer Architecture and Digital Logic I Fall

Introduction to Computer Architecture

and Digital Logic IFall 2013

Carola Wenk

Page 2: Introduction to Computer Architecture 1 - Tulane Universitycarola/teaching/cmps1500/fall13/slides... · 2013-08-28 · Introduction to Computer Architecture and Digital Logic I Fall

What’s In There?

Every modern computational device has a von Neumann architecture.

1990s Present-day

1980s1940s

Page 3: Introduction to Computer Architecture 1 - Tulane Universitycarola/teaching/cmps1500/fall13/slides... · 2013-08-28 · Introduction to Computer Architecture and Digital Logic I Fall

What’s In There?

Page 4: Introduction to Computer Architecture 1 - Tulane Universitycarola/teaching/cmps1500/fall13/slides... · 2013-08-28 · Introduction to Computer Architecture and Digital Logic I Fall

von Neumann Architecture

Every modern computational device has a von Neumann architecture.

Page 5: Introduction to Computer Architecture 1 - Tulane Universitycarola/teaching/cmps1500/fall13/slides... · 2013-08-28 · Introduction to Computer Architecture and Digital Logic I Fall

von Neumann Architecture

Every modern computational device has a von Neumann architecture.

Page 6: Introduction to Computer Architecture 1 - Tulane Universitycarola/teaching/cmps1500/fall13/slides... · 2013-08-28 · Introduction to Computer Architecture and Digital Logic I Fall

von Neumann Architecture

Every modern computational device has a von Neumann architecture.

Page 7: Introduction to Computer Architecture 1 - Tulane Universitycarola/teaching/cmps1500/fall13/slides... · 2013-08-28 · Introduction to Computer Architecture and Digital Logic I Fall

von Neumann Architecture

Every modern computational device has a von Neumann architecture.

CPU(central processing unit)

Page 8: Introduction to Computer Architecture 1 - Tulane Universitycarola/teaching/cmps1500/fall13/slides... · 2013-08-28 · Introduction to Computer Architecture and Digital Logic I Fall

Where is the CPU? Where is the memory? What are the I/O devices?

Page 9: Introduction to Computer Architecture 1 - Tulane Universitycarola/teaching/cmps1500/fall13/slides... · 2013-08-28 · Introduction to Computer Architecture and Digital Logic I Fall

Where is the CPU? Where is the memory? What are the I/O devices?

Page 10: Introduction to Computer Architecture 1 - Tulane Universitycarola/teaching/cmps1500/fall13/slides... · 2013-08-28 · Introduction to Computer Architecture and Digital Logic I Fall

Where is the CPU? Where is the memory? What are the I/O devices?

Page 11: Introduction to Computer Architecture 1 - Tulane Universitycarola/teaching/cmps1500/fall13/slides... · 2013-08-28 · Introduction to Computer Architecture and Digital Logic I Fall

Where is the CPU? Where is the memory? What are the I/O devices?

Page 12: Introduction to Computer Architecture 1 - Tulane Universitycarola/teaching/cmps1500/fall13/slides... · 2013-08-28 · Introduction to Computer Architecture and Digital Logic I Fall

What’s in a CPU?

Intel Pentium MMX (1990s)

Output

Input

Page 13: Introduction to Computer Architecture 1 - Tulane Universitycarola/teaching/cmps1500/fall13/slides... · 2013-08-28 · Introduction to Computer Architecture and Digital Logic I Fall

CPU History

Intel 4004 (1971)

Page 14: Introduction to Computer Architecture 1 - Tulane Universitycarola/teaching/cmps1500/fall13/slides... · 2013-08-28 · Introduction to Computer Architecture and Digital Logic I Fall

CPU History

Intel 386 (1985)

Page 15: Introduction to Computer Architecture 1 - Tulane Universitycarola/teaching/cmps1500/fall13/slides... · 2013-08-28 · Introduction to Computer Architecture and Digital Logic I Fall

CPU History

Intel Pentium (1993)

Page 16: Introduction to Computer Architecture 1 - Tulane Universitycarola/teaching/cmps1500/fall13/slides... · 2013-08-28 · Introduction to Computer Architecture and Digital Logic I Fall

CPU History

Intel Itanium (2001)

CPUs have gotten smaller, but what is actually being miniaturized?

Page 17: Introduction to Computer Architecture 1 - Tulane Universitycarola/teaching/cmps1500/fall13/slides... · 2013-08-28 · Introduction to Computer Architecture and Digital Logic I Fall

Modern CPUs

ProcessorMemory

Side-view of ARM A4

Top-view of processor layer

images courtesy of ifixit.com

Page 18: Introduction to Computer Architecture 1 - Tulane Universitycarola/teaching/cmps1500/fall13/slides... · 2013-08-28 · Introduction to Computer Architecture and Digital Logic I Fall

CPU Architecture

Every CPU has an instruction set; a computer program consists of a sequence of these instructions. Programs are loaded into the CPU and instructions are executed one at a time.

Memory CPU

Page 19: Introduction to Computer Architecture 1 - Tulane Universitycarola/teaching/cmps1500/fall13/slides... · 2013-08-28 · Introduction to Computer Architecture and Digital Logic I Fall

CPU Architecture

Every CPU has an instruction set; a computer program consists of a sequence of these instructions. Programs are loaded into the CPU and instructions are executed one at a time.

Memory

Page 20: Introduction to Computer Architecture 1 - Tulane Universitycarola/teaching/cmps1500/fall13/slides... · 2013-08-28 · Introduction to Computer Architecture and Digital Logic I Fall

CPU Architecture

Programs are loaded into the CPU and instructions are executed one at a time. The execution of logic components is timed by a master clock, whose rate determines computation speed.

Memory

Fetch

Decode

Execute

Program

Page 21: Introduction to Computer Architecture 1 - Tulane Universitycarola/teaching/cmps1500/fall13/slides... · 2013-08-28 · Introduction to Computer Architecture and Digital Logic I Fall

CPU Architecture

Programs are loaded into the CPU and instructions are executed one at a time. The execution of logic components is timed by a master clock, whose rate determines computation speed.

Memory

Fetch

Decode

Execute

z=x+y

Page 22: Introduction to Computer Architecture 1 - Tulane Universitycarola/teaching/cmps1500/fall13/slides... · 2013-08-28 · Introduction to Computer Architecture and Digital Logic I Fall

What is an “Instruction”?

Let’s consider the simple operation of adding two numbers.

add x, y, z

MemoryAdder

We retrieve two numbers, add them, and store the result. How do we add them?

Page 23: Introduction to Computer Architecture 1 - Tulane Universitycarola/teaching/cmps1500/fall13/slides... · 2013-08-28 · Introduction to Computer Architecture and Digital Logic I Fall

What is an “Instruction”?

Let’s consider the simple operation of adding two numbers.

add x, y, z

MemoryAdder

We retrieve two numbers, add them, and store the result. How do we add them? What does the circuit look like?

Page 24: Introduction to Computer Architecture 1 - Tulane Universitycarola/teaching/cmps1500/fall13/slides... · 2013-08-28 · Introduction to Computer Architecture and Digital Logic I Fall

What is an “Instruction”?

Let’s consider the simple operation of adding two numbers.

Adder

add x, y, z

What is the representation of numbers in a computer?

Page 25: Introduction to Computer Architecture 1 - Tulane Universitycarola/teaching/cmps1500/fall13/slides... · 2013-08-28 · Introduction to Computer Architecture and Digital Logic I Fall

What is an “Instruction”?

Let’s consider the simple operation of adding two numbers.

Adder

add x, y, z

01010010010

11100100011

Why are numbers represented in binary? How would we add binary numbers?