CS 1308 Computer Literacy and the Internet Computer Systems Organization.

29
CS 1308 Computer Literacy and the Internet Computer Systems Organization

Transcript of CS 1308 Computer Literacy and the Internet Computer Systems Organization.

Page 1: CS 1308 Computer Literacy and the Internet Computer Systems Organization.

CS 1308 Computer Literacy and the Internet

Computer Systems Organization

Page 2: CS 1308 Computer Literacy and the Internet Computer Systems Organization.

Objectives

2

In this chapter, you will learn about:

The components of a computer system

Putting all the pieces together – the Von Neumann architecture

Why getting more memory will help your computer run faster

The future: non-Von Neumann architectures

Page 3: CS 1308 Computer Literacy and the Internet Computer Systems Organization.

Introduction

3

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

Page 4: CS 1308 Computer Literacy and the Internet Computer Systems Organization.

The Components of a Computer System

4

Von Neumann architecture has four functional units:MemoryInput/OutputArithmetic/Logic unitControl unit

Sequential execution of instructionsStored program concept

Page 5: CS 1308 Computer Literacy and the Internet Computer Systems Organization.

Components of the Von Neumann Architecture

5

Bus

Cache

Page 6: CS 1308 Computer Literacy and the Internet Computer Systems Organization.

RAM and Cache Memory

6

Information stored and fetched from memory subsystem

Random Access Memory (RAM) maps addresses to memory locations

Cache memory keeps values currently in use in faster memory to speed access times

Page 7: CS 1308 Computer Literacy and the Internet Computer Systems Organization.

Memory and Cache (continued)

7

RAM (Random Access Memory)

Memory made of addressable “cells”

Current standard cell size is 8 bits

All memory cells accessed in equal time

Memory address

Unsigned binary number N bits long

Address space is then 2N cells

Page 8: CS 1308 Computer Literacy and the Internet Computer Systems Organization.

Memory and Cache (continued)

8

Parts of the memory subsystemFetch/store controller

Fetch: retrieve a value from memory

Store: store a value into memory

Memory address register (MAR)

Memory data register (MDR)

Memory cells, with decoder(s) to select individual cells

Page 9: CS 1308 Computer Literacy and the Internet Computer Systems Organization.

Figure 5.3

Structure of Random Access Memory

9

Page 10: CS 1308 Computer Literacy and the Internet Computer Systems Organization.

Cache Memory

10

Memory access is much slower than processing time

Faster memory is too expensive to use for all memory cells

Locality principle

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

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

Page 11: CS 1308 Computer Literacy and the Internet Computer Systems Organization.

Input/Output and Mass Storage

11

Communication with outside world and external data storage

Human interfaces: monitor, keyboard, mouse

Archival storage: not dependent on constant power

External devices vary tremendously from each other

Page 12: CS 1308 Computer Literacy and the Internet Computer Systems Organization.

Input/Output and Mass Storage (continued)

12

Volatile storageInformation disappears when the power is

turned offExample: RAM

Nonvolatile storageInformation does not disappear when the

power is turned offExample: mass storage devices such as

disks and tapes

Page 13: CS 1308 Computer Literacy and the Internet Computer Systems Organization.

Input/Output and Mass Storage (continued)

13

Mass storage devicesDirect access storage device

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

Sequential access storage deviceTape drive, etc.Stores data sequentiallyUsed for backup storage these days

Page 14: CS 1308 Computer Literacy and the Internet Computer Systems Organization.

Input/Output and Mass Storage (continued)

14

Direct access storage devicesData stored on a spinning diskDisk divided into concentric rings (sectors)Read/write head moves from one ring to another

while disk spinsAccess time depends on:

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

Page 15: CS 1308 Computer Literacy and the Internet Computer Systems Organization.

Figure 5.8Overall Organization of a Typical Disk

15

Page 16: CS 1308 Computer Literacy and the Internet Computer Systems Organization.

Figure 5.9Organization of an I/O Controller

16

Page 17: CS 1308 Computer Literacy and the Internet Computer Systems Organization.

The CPU

17

Arithmetic/Logic UnitDoes all the computation

Control UnitSelects the proper results

Page 18: CS 1308 Computer Literacy and the Internet Computer Systems Organization.

The Arithmetic/Logic Unit

18

Actual computations are performed

Primitive operation circuits Arithmetic (ADD, etc.)

Comparison (CE, etc.)

Logic (AND, etc.)

Data inputs and results stored in registers

Multiplexor selects desired output

Page 19: CS 1308 Computer Literacy and the Internet Computer Systems Organization.

The Arithmetic/Logic Unit (continued)

19

ALU process

Values for operations copied into ALU’s input register locations

All circuits compute results for those inputs

Multiplexor selects the one desired result from all values

Result value copied to desired result register

Page 20: CS 1308 Computer Literacy and the Internet Computer Systems Organization.

Figure 5.12Using a Multiplexor Circuit to Select the Proper ALU Result

20

Page 21: CS 1308 Computer Literacy and the Internet Computer Systems Organization.

The Control Unit

Manages stored program execution

Task

Fetch from memory the next instruction to be executed

Decode instruction: determine what is to be done

Execute instruction: issue appropriate command to ALU, memory, and I/O controllers

Decode

Execute

Fetch

21

Instruction Cycle

Page 22: CS 1308 Computer Literacy and the Internet Computer Systems Organization.

Machine Language Instructions

22

Can be decoded and executed by control unit

Parts of instructions

Operation code (op code)

Unique unsigned-integer code assigned to each machine language operation

Address field(s)

Memory addresses of the values on which operation will work

Page 23: CS 1308 Computer Literacy and the Internet Computer Systems Organization.

Machine Language Instructions (continued)

23

Operations of machine language

Data transfer

Move values to and from memory and registers

Arithmetic/logic

Perform ALU operations that produce numeric values

Page 24: CS 1308 Computer Literacy and the Internet Computer Systems Organization.

Machine Language Instructions (continued)

24

Operations of machine language (continued)

Compares

Set bits of compare register to hold result

Branches

Jump to a new memory address to continue processing

Page 25: CS 1308 Computer Literacy and the Internet Computer Systems Organization.

Control Unit Registers And Circuits

25

Parts of control unitLinks to other subsystemsInstruction decoder circuitThree special registers:

Program Counter (PC)Stores the memory address of the next instruction to

be executedInstruction Register (IR)

Stores the code for the current instruction

Accumulator (ACC)Where the results of all arithmetic operations and

loads is stored.

Page 26: CS 1308 Computer Literacy and the Internet Computer Systems Organization.

Pippin View

26

Assembly language(Closer to Human Language)

Machine Language(Only thing a computer understands.)

Copyright Notice©2003 PWS Publishing Company, All

Rights Reserved.

Page 27: CS 1308 Computer Literacy and the Internet Computer Systems Organization.

Putting All the Pieces Together—the Von Neumann Architecture

27

Subsystems connected by a bus

Bus: wires that permit data transfer among them

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

Computer repeats fetch-decode-execute cycle indefinitely

Page 28: CS 1308 Computer Literacy and the Internet Computer Systems Organization.

28

Figure 5.18The Organizationof a Von NeumannComputer

Page 29: CS 1308 Computer Literacy and the Internet Computer Systems Organization.

Summary

29

Computer organization examines different subsystems of a computer: memory, input/output, arithmetic/logic unit, and control unit

Machine language gives codes for each primitive instruction the computer can perform, and its arguments

Von Neumann machine: sequential execution of stored program

Parallel computers improve speed by doing multiple tasks at one time