Docsity

Von Neuman Architecture, Lecture notes of Computer Architecture and Organization

Partial preview of the text

Download Von Neuman Architecture and more Lecture notes Computer Architecture and Organization in PDF only on Docsity!

Von Neumann Architecture

Von Neumann Architecture

John Von Neumann

John Von Neumann

  • December 28, 1903 – February 8, 1957

December 28, 1903 – February 8, 1957

  • Made major contributions to:

Made major contributions to:

Set theory,

Set theory,

  • Functional analysis,

Functional analysis,

  • Quantum mechanics,

Quantum mechanics,

Ergodic theory,

Ergodic theory,

  • Continuous geometry,

Continuous geometry,

  • Economics

Economics

Computer science,

Computer science,

  • Numerical analysis,

Numerical analysis,

  • Hydrodynamics

Hydrodynamics

John Von Neumann

John Von Neumann

He published his first mathematical paper

He published his first mathematical paper

in collaboration with his tutor at the age of

in collaboration with his tutor at the age of

eighteen, and resolved to study

eighteen, and resolved to study

mathematics in college.

mathematics in college.

John Von Neumann Architecture

John Von Neumann Architecture

Goals

Goals

Understand how the von Neumann

Understand how the von Neumann

architecture is constructed.

architecture is constructed.

Understand how the von Neumann

Understand how the von Neumann

architecture works.

architecture works.

Understand how to program in basic

Understand how to program in basic

assembly language.

assembly language.

Sub-Components

Sub-Components

At the onset, computers required hardware

At the onset, computers required hardware

changes to work on new problems; some

changes to work on new problems; some

historians say that this early stage of

historians say that this early stage of

“programming” was wiring.

“programming” was wiring.

Clearly, requiring hardware changes with each

Clearly, requiring hardware changes with each

new programming operation was time-

new programming operation was time-

consuming, error-prone, and costly

consuming, error-prone, and costly

If you recall from the movie

If you recall from the movie The Machine That

The Machine That

Changed the World

Changed the World , one of the key contributors

, one of the key contributors

to computer evolution was John von Neumann

to computer evolution was John von Neumann

The Stored Program Concept and its

The Stored Program Concept and its

Implications

Implications

The Stored Program concept had several

The Stored Program concept had several

technical ramifications:

technical ramifications:

Four key sub-components operate together to make

Four key sub-components operate together to make

the stored program concept work

the stored program concept work

The process that moves information through the sub-

The process that moves information through the sub-

components is called the “fetch execute” cycle

components is called the “fetch execute” cycle

Unless otherwise indicated, program instructions are

Unless otherwise indicated, program instructions are

executed in sequential order

executed in sequential order

Four Sub-Components

Four Sub-Components

  • There are four sub-components in von Neumann

There are four sub-components in von Neumann

architecture:

architecture:

Memory

Memory

Input/Output (called “IO”)

Input/Output (called “IO”)

Arithmetic-Logic Unit

Arithmetic-Logic Unit

Control Unit

Control Unit

  • While only 4 sub-components are called out, there is a 5

While only 4 sub-components are called out, there is a 5

thth

,

,

key player in this operation: a bus, or wire, that connects

key player in this operation: a bus, or wire, that connects

the components together and over which data flows from

the components together and over which data flows from

one sub-component to another

one sub-component to another

  • Let’s look at each sub-component in more detail …

Let’s look at each sub-component in more detail …

Memory Types: RAM

Memory Types: RAM

RAM is typically volatile memory (meaning it doesn’t

RAM is typically volatile memory (meaning it doesn’t

retain voltage settings once power is removed)

retain voltage settings once power is removed)

  • RAM is an array of cells, each with a unique address

RAM is an array of cells, each with a unique address

  • A cell is the minimum unit of access. Originally, this was

A cell is the minimum unit of access. Originally, this was

8 bits taken together as a byte. In today’s computer,

8 bits taken together as a byte. In today’s computer,

word-sized cells (16 bits, grouped in 4) are more typical.

word-sized cells (16 bits, grouped in 4) are more typical.

  • RAM gets its name from its access performance. In RAM

RAM gets its name from its access performance. In RAM

memory, theoretically, it would take the same amount of

memory, theoretically, it would take the same amount of

time to access any memory cell, regardless of its

time to access any memory cell, regardless of its

location with the memory bank (“random” access).

location with the memory bank (“random” access).

Memory Types: ROM

Memory Types: ROM

It gets its name from its cell-protection feature.

It gets its name from its cell-protection feature.

This type of memory cell can be read from, but

This type of memory cell can be read from, but

not written to.

not written to.

Unlike RAM, ROM is non-volatile; it retains its

Unlike RAM, ROM is non-volatile; it retains its

settings after power is removed.

settings after power is removed.

ROM is more expensive than RAM, and to

ROM is more expensive than RAM, and to

protect this investment, you only store critical

protect this investment, you only store critical

information in ROM …

information in ROM …

Memory Types: Other

Memory Types: Other

Modern computers include other forms of

Modern computers include other forms of

memory, such as cache memory.

memory, such as cache memory.

Remember, memory types exist at different trade

Remember, memory types exist at different trade

offs.

offs.

The study of memory organizations and access

The study of memory organizations and access

schemes is an innovative one within Computer

schemes is an innovative one within Computer

Science. In your life time, you should expect to

Science. In your life time, you should expect to

see numerous innovations in memory types and

see numerous innovations in memory types and

capabilities.

capabilities.

What’s Up with Memory

What’s Up with Memory

Regardless of the type of memory, several concepts

Regardless of the type of memory, several concepts

apply in this key component.

apply in this key component.

Cell size or cell width: a key concept within memory is

Cell size or cell width: a key concept within memory is

how many individual memory cells (which we now know

how many individual memory cells (which we now know

are switches!) are addressed at a time.

are switches!) are addressed at a time.

  • At a minimum, this is a byte (8 bits) in today’s

At a minimum, this is a byte (8 bits) in today’s

computers, but to support all data types and operations,

computers, but to support all data types and operations,

cell size can be larger (a word, for instance, at 16 bits).

cell size can be larger (a word, for instance, at 16 bits).

What’s Up with Memory

What’s Up with Memory

Two other key concepts in the study of memory

Two other key concepts in the study of memory

are memory size and address space.

are memory size and address space.

Memory size refers to the number of

Memory size refers to the number of

addressable cells – how many different memory

addressable cells – how many different memory

locations a computer has.

locations a computer has.

Address space refers to the range of

Address space refers to the range of

addressable cell labels. Cell labels begin with the

addressable cell labels. Cell labels begin with the

number 0. So, if you had a computer with 2

number 0. So, if you had a computer with 2

nn

memory size, its address space would be 2

memory size, its address space would be 2

n

n

What’s Up with Memory

What’s Up with Memory

Don’t forget that the memory labels are

Don’t forget that the memory labels are

themselves binary numbers!

themselves binary numbers!

One of the special registers we talked about

One of the special registers we talked about

earlier is a register whose job it is to hold

earlier is a register whose job it is to hold

address locations.

address locations.

Engineers need to know how big to make this

Engineers need to know how big to make this

register, so that it could hold the address of any

register, so that it could hold the address of any

given memory location, even the one with the

given memory location, even the one with the

biggest address.

biggest address.