Top Banner
Chapter 5 Computer Organization
45

Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Jan 05, 2016

Download

Documents

Rosalind Hodge
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Chapter 5

ComputerOrganization

Page 2: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Distinguish between the three components of a computer Distinguish between the three components of a computer hardware.hardware.List the functionality of each component.List the functionality of each component.

Understand memory addressing and calculate the number ofUnderstand memory addressing and calculate the number ofbytes for a specified purpose.bytes for a specified purpose.

After reading this chapter, the reader should After reading this chapter, the reader should be able to:be able to:

OOBJECTIVESBJECTIVES

Distinguish between different types of memories.Distinguish between different types of memories.

Understand how each input/output device works. Understand how each input/output device works.

Continued on the next slideContinued on the next slide

Page 3: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Understand the systems used to connect different Understand the systems used to connect different components together.components together.

Understand the addressing system for input/outputUnderstand the addressing system for input/outputdevices.devices.

Understand the program execution and machine cycles.Understand the program execution and machine cycles.

OOBJECTIVES (continued)BJECTIVES (continued)

Distinguish between programmed I/O, interrupt-drivenDistinguish between programmed I/O, interrupt-drivenI/O and direct memory access (DMA).I/O and direct memory access (DMA).

Understand the two major architectures used to define Understand the two major architectures used to define the instruction sets of a computer: CISC and RISC. the instruction sets of a computer: CISC and RISC.

Page 4: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Figure 5-1

Computer hardware (subsystems)

Page 5: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

CENTRALCENTRALPROCESSINGPROCESSING

UNITUNIT(CPU)(CPU)

CENTRALCENTRALPROCESSINGPROCESSING

UNITUNIT(CPU)(CPU)

5.15.1

Page 6: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Figure 5-2

CPU

Page 7: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

MAIN MEMORYMAIN MEMORYMAIN MEMORYMAIN MEMORY

5.25.2

Page 8: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Table 5.1 Memory unitsTable 5.1 Memory units

UnitUnit------------kilobyte

megabytegigabyteterabytepetabyteexabyte

Exact Number of bytesExact Number of bytes------------------------

210 bytes220 bytes230 bytes240 bytes250 bytes260 bytes

ApproximationApproximation------------103 bytes106 bytes109 bytes1012 bytes1015 bytes1018 bytes

Page 9: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Figure 5-3

Main memory

Page 10: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Memory addresses are defined usingMemory addresses are defined usingunsigned binary integers. unsigned binary integers.

Note:Note:

Page 11: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Example 1Example 1

A computer has 32 MB (megabytes) of memory. How many bits are needed to address any single byte in memory?

SolutionSolution

The memory address space is 32 MB, or 2The memory address space is 32 MB, or 22525 (2 (255 x x 222020). This means you need). This means you needloglog22 2 22525 or 25 bits, to address each byte. or 25 bits, to address each byte.

Page 12: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Example 2Example 2

A computer has 128 MB of memory. Each word in this computer is 8 bytes. How many bits are needed to address any single word in memory?

SolutionSolution

The memory address space is 128 MB, which The memory address space is 128 MB, which means 2means 22727. However, each word is 8 (2. However, each word is 8 (233) bytes, ) bytes, which means that you have 2which means that you have 22424 words. This words. This means you need logmeans you need log22 2 22424 or 24 bits, to address or 24 bits, to address

each word.each word.

Page 13: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Figure 5-4

Memory hierarchy

Page 14: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Figure 5-5

Cache

Page 15: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

INPUT / OUTPUTINPUT / OUTPUTINPUT / OUTPUTINPUT / OUTPUT

5.35.3

Page 16: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Figure 5-6

Physical layout of a magnetic disk

Page 17: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Figure 5-7

Surface organization of a disk

Page 18: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Figure 5-8

Mechanical configuration of a tape

Page 19: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Figure 5-9

Surface organization of a tape

Page 20: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Figure 5-10

Creation and use of CD-ROM

Page 21: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Table 5.2 CD-ROM speedsTable 5.2 CD-ROM speeds

SpeedSpeed------------

1x2x4x6x8x12x16x24x32x40x

Data RateData Rate------------------------

153,600 bytes per second307,200 bytes per second614,400 bytes per second921,600 bytes per second1,228,800 bytes per second1,843,200 bytes per second 2,457,600 bytes per second3,688,400 bytes per second 4,915,200 bytes per second6,144,000 bytes per second

ApproximationApproximation------------150 KB/s300 KB/s600 KB/s900 KB/s1.2 MB/s1.8 MB/s2.4 MB/s3.6 MB/s4.8 MB/s6 MB/s

Page 22: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Figure 5-11

CD-ROM format

Using correction code hamming code

Page 23: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Figure 5-12

Making a CD-R

Page 24: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Figure 5-13

Making a CD-RW

transparent

SIAT

silver

Page 25: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Table 5.3 DVD capacitiesTable 5.3 DVD capacities

FeatureFeature---------------------------------single-sided, single-layersingle-sided, dual-layer

double-sided, single-layerdouble-sided, dual-layer

CapacityCapacity------------

4.7 GB8.5 GB9.4 GB17 GB

Page 26: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

SUBSYSTEMSUBSYSTEMINTERCONNECTIONINTERCONNECTION

SUBSYSTEMSUBSYSTEMINTERCONNECTIONINTERCONNECTION

5.45.4

Page 27: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Figure 5-14

Connecting CPU and memory using three buses

Page 28: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Figure 5-15

Connecting I/O devices to the buses

Page 29: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Figure 5-16

SCSI controller

Page 30: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Figure 5-17

FireWire controller

High speed device 50 Mb/s

Page 31: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Figure 5-18

USB controller

Low speed device 1.5 Mb/s

Page 32: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Figure 5-19

Isolated I/O addressing

Instruction used to R/W memory is different from that used I/O devices

Page 33: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Figure 5-20

Memory-mapped I/O addressing

Cpu treats each register in the controller as a word in memory.Smaller no. of instruction , read add, if the address is for memory , data will be red from memory, if it’s for a register it will red from register.

Page 34: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

PROGRAMPROGRAMEXECUTIONEXECUTIONPROGRAMPROGRAM

EXECUTIONEXECUTION

5.55.5

Page 35: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Figure 5-21

Steps of a cycle

Page 36: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Figure 5-22

Contents of memory and register before execution

Page 37: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Figure 5-23.a

Contents of memory and registers after each cycle

Page 38: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Figure 5-23.b

Contents of memory and registers after each cycle

Page 39: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Figure 5-23.c

Contents of memory and registers after each cycle

Page 40: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Figure 5-23.d

Contents of memory and registers after each cycle

Page 41: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Synchronization

• During transfer of data from I/O to CPU

• Because I/O devices are much slower than CPU

• Three methods can be used for this synchronization.

1. Programmed I/O

2. Interrupt-driven I/O

3. DMA

Page 42: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Figure 5-24

Programmed I/O

Page 43: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Figure 5-25

Interrupt-driven I/O

Page 44: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Figure 5-26

DMA connection to the general bus

Page 45: Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.

Figure 5-27

DMA input/output