ecology labfaculty.cse.tamu.edu/slupoli/notes/csoverview/computer... · web viewcomputer...

13
Computer Architecture 2 Introduction Computer organization examines the computer as a collection of interacting “functional units” Functional units may be built out of the circuits already studied Higher level of abstraction assists in understanding by reducing complexity The Concept of Abstraction

Upload: others

Post on 26-Jul-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: ecology labfaculty.cse.tamu.edu/slupoli/notes/CSOverview/Computer... · Web viewComputer Architecture 2 Introduction Computer organization examines the computer as a collection of

Computer Architecture 2

Introduction Computer organization examines the computer as a collection of interacting

“functional units” Functional units may be built out of the circuits already studied Higher level of abstraction assists in understanding by reducing complexity

The Concept of Abstraction

Page 2: ecology labfaculty.cse.tamu.edu/slupoli/notes/CSOverview/Computer... · Web viewComputer Architecture 2 Introduction Computer organization examines the computer as a collection of

The Components of a Computer System Von Neumann architecture has four functional units

o Memoryo Input/Outputo Arithmetic/Logic unito Control unit

Sequential execution of instructions Stored program concept

Components of the Von Neumann Architecture

Memory and Cache Information stored and fetched from memory subsystem Random access memory maps addresses to memory locations Cache memory keeps values currently in use in faster memory to speed access

times RAM (random access memory)

o Memory made of addressable cellso Current standard cell size is 8 bitso All memory cells accessed in equal timeo Memory address

Unsigned binary number N long Address space is then 2N cells

Structure of Random Access Memory

Page 3: ecology labfaculty.cse.tamu.edu/slupoli/notes/CSOverview/Computer... · Web viewComputer Architecture 2 Introduction Computer organization examines the computer as a collection of

Parts of the memory subsystemo Fetch/store controller

Fetch: Retrieve a value from memory Store: Store a value into memory

o Memory address register (MAR)o Memory data register (MDR)o Memory cells with decoder(s) to select individual cells

Fetch operationo The address of the desired memory cell is moved into the MARo Fetch/store controller signals a fetch, accessing the memory cello The value at the MAR’s location flows into the MDR

Store operationo The address of the cell where the value should go is placed in the MARo The new value is placed in the MDRo Fetch/store controller signals a store, copying the MDR’s value into the

desired cell Memory register

o Very fast memory locationo Given a name, not an addresso Serves some special purposeo Modern computers have dozens or hundreds of registers

Cache Memory Memory access is much slower than processing time Faster memory is too expensive to use for all memory cells Locality principle

o Once a value is used, it is likely to be used again

Page 4: ecology labfaculty.cse.tamu.edu/slupoli/notes/CSOverview/Computer... · Web viewComputer Architecture 2 Introduction Computer organization examines the computer as a collection of

Small size, fast memory just for values currently in use speeds computing time

Input/Output and Mass Storage Communication with outside world and external data storage

o Human interfaces: Monitor, keyboard, mouseo Archival storage: Not dependent on constant power

External devices vary tremendously from each other Volatile storage

o Information disappears when the power is turned offo Example: RAM

Nonvolatile storageo Information does not disappear when the power is turned offo Example: Mass storage devices such as disks and tapes

Mass storage deviceso Direct access storage device

Hard drive, CD-ROM, DVD Uses its own addressing scheme to access data

o Sequential access storage device Tape drive Stores data sequentially Used for backup storage these days

Direct access storage deviceso Data stored on a spinning disko Disk divided into concentric rings (sectors)o Read/write head moves from one ring to another while disk spinso Access time depends on

Time to move head to correct sector Time for sector to spin to data location

Overall Organization of a Typical Disk

Page 5: ecology labfaculty.cse.tamu.edu/slupoli/notes/CSOverview/Computer... · Web viewComputer Architecture 2 Introduction Computer organization examines the computer as a collection of

I/O controllero Intermediary between central processor and I/O deviceso Processor sends request and data, then goes on with its worko I/O controller interrupts processor when request is complete

Organization of an I/O Controller

The Arithmetic/Logic Unit Actual computations are performed Primitive operation circuits

o Arithmetic (ADD)o Comparison (CE)o Logic (AND)

Data inputs and results stored in registers Multiplexor selects desired output ALU process

o Values for operations copied into ALU’s input register locationso All circuits compute results for those inputso Multiplexor selects the one desired result from all valueso Result value copied to desired result register

Page 6: ecology labfaculty.cse.tamu.edu/slupoli/notes/CSOverview/Computer... · Web viewComputer Architecture 2 Introduction Computer organization examines the computer as a collection of

Using a Multiplexor Circuit to Select the Proper ALU Result

The Control Unit Manages stored program execution Task

o Fetch from memory the next instruction to be executedo Decode it: Determine what is to be doneo Execute it: Issue appropriate command to ALU, memory, and I/O

controllers

Machine Language Instructions Can be decoded and executed by control unit Parts of instructions

o Operation code (op code) Unique unsigned-integer code assigned to each machine language

operation Address fields

o Memory addresses of the values on which operation will work

Typical Machine Language Instruction Format

Page 7: ecology labfaculty.cse.tamu.edu/slupoli/notes/CSOverview/Computer... · Web viewComputer Architecture 2 Introduction Computer organization examines the computer as a collection of

Operations of machine languageo Data transfer operations

Move values to and from memory and registerso Arithmetic/logic operations

Perform ALU operations that produce numeric valueso Compare operations

Compare two values and set an indicator on the basis of the results of the compare; set register bits

o Branch operations Jump to a new memory address to continue processing

Control Unit Registers and Circuits Parts of control unit Links to other subsystems Instruction decoder circuit Two special registers

o Program counter (PC) Stores the memory address of the next instruction to be executed

o Instruction register (IR) Stores the code for the current instruction

Organization of the Control Unit Registers and Circuits

Putting All the Pieces Together—the Von Neumann Architecture Subsystems connected by a bus

o Bus: Wires that permit data transfer among them

Page 8: ecology labfaculty.cse.tamu.edu/slupoli/notes/CSOverview/Computer... · Web viewComputer Architecture 2 Introduction Computer organization examines the computer as a collection of

At this level, ignore the details of circuits that perform these tasks: Abstraction!

Computer repeats fetch-decode-execute cycle indefinitely

The Organization of a Von Neumann Computer

Non-Von Neumann Architectures Physical limitations on speed of Von Neumann computers Non-Von Neumann architectures explored to bypass these limitations Parallel computing architectures can provide improvements; multiple

operations occur at the same time SIMD architecture

o Single instruction/multiple datao Multiple processors running in parallelo All processors execute same operation at one timeo Each processor operates on its own datao Suitable for vector operations

A SIMD Parallel Processing System

Page 9: ecology labfaculty.cse.tamu.edu/slupoli/notes/CSOverview/Computer... · Web viewComputer Architecture 2 Introduction Computer organization examines the computer as a collection of

MIMD architectureo Multiple instruction/multiple datao Multiple processors running in parallelo Each processor performs its own operations on its own datao Processors communicate with each other

Model of MIMD Parallel Processing

Page 10: ecology labfaculty.cse.tamu.edu/slupoli/notes/CSOverview/Computer... · Web viewComputer Architecture 2 Introduction Computer organization examines the computer as a collection of