11. computer systems hardware 1

111
Part 1 Computer Systems Hardware (Book No. 1 Chapter 2)

Upload: new-era-university

Post on 23-Jan-2015

2.963 views

Category:

Technology


1 download

DESCRIPTION

 

TRANSCRIPT

Page 1: 11. Computer Systems   Hardware 1

Part 1Computer Systems

Hardware

(Book No. 1 Chapter 2)

Page 2: 11. Computer Systems   Hardware 1

HARDWARE

• 2.1 Information element• 2.2 Processor architecture• 2.3 Memory architecture• 2.4 Auxiliary storage devices• 2.5 Input/output architecture and devices

Page 3: 11. Computer Systems   Hardware 1

Introduction

Functions of hardware in a computer can be divided into five main units

Page 4: 11. Computer Systems   Hardware 1

Five Main Units in Computing• Central Processing Unit

– 3. Arithmetic Unit• Performs calculation and decision on stored data based on instructions of the

program.– 4. Control Unit

• Controls all other units

• Peripheral Units– 1. Input Unit

• Inputs data and programs for processing.– 5. Output Unit

• Output results in a format understood by humans.

• 2. Storage Unit– Stores the input data and program

Page 5: 11. Computer Systems   Hardware 1

Input UnitMain Storage

UnitOutput Unit

Arithmetic Unit

Control Unit

Processor (CPU)

Data Flow

Control Flow

5 main units of computers

Page 6: 11. Computer Systems   Hardware 1

2.1 Information Element

• Integrated CircuitUses

Levels of integration

• Semiconductor MemoryDifferent types of RAM

Different types of ROM

Page 7: 11. Computer Systems   Hardware 1

IC

• Sometimes called a chip or microchip, is a semiconductor wafer on which thousands or millions of tiny resistors, capacitors, and transistors are fabricated

• An IC can function as an amplifier, oscillator, timer, counter, computer memory, or microprocessor

Page 8: 11. Computer Systems   Hardware 1

Integrated Circuit• Bipolar IC

– Speed and power requirement as well as costs are high. Used as a logic element.

– In digital transmission, an electrical line signalling method where the mark value alternates between positive and negative polarities.

– Used in logical operations

• CMOS (Complementary Metal Oxide Semiconductor) IC– Speed and power requirement as well as costs are low. Used as

storage element.– Used in data and instruction storage

Page 9: 11. Computer Systems   Hardware 1

IC Classification

IC Integration Level

SSI (Small Scale Integration) 101 – 102

MSI (Medium Scale Integration) 102 – 103

LSI (Large Scale Integration) 103 – 104

VLSI (Very Large Scale Integration) > 105

Page 10: 11. Computer Systems   Hardware 1

Transistors Per IC

Page 11: 11. Computer Systems   Hardware 1

Fujitsu Integrated Circuits

86903-33 Full die shot of the Fujitsu 86903-33 showing the

complete pad ring using oblique illumination with blue, red, and yellow gels.

Page 12: 11. Computer Systems   Hardware 1

Sun Microsystems Integrated CircuitsUltraSPARC

• Full die shot of the Sun Microsystems UltraSPARC microprocessor showing the complete pad ring using oblique illumination with red, blue, and yellow gels.

Page 13: 11. Computer Systems   Hardware 1

Intel Integrated Circuitsi4004

• Full die shot of the Intel i4004 microprocessor showing the complete pad with chip identifier, Intel logo, and bus connections using oblique illumination with blue, red, and yellow gels.

Page 14: 11. Computer Systems   Hardware 1

Semiconductor Memory

• RAM (Random Access Memory)– DRAM (Dynamic RAM)– SDRAM (Synchronous DRAM)– SRAM (Static RAM)

• ROM (Read Only Memory)– Mask ROM– User Programmable ROM– PROM, EPROM, EEPROM

Page 15: 11. Computer Systems   Hardware 1

RAM

• A semiconductor memory where all read and write functions are performed.

• It is a volatile memory which needs constant supply of power to store data. All data will be lost when power is turned off.

• Random Access Memory– Can access any memory cell directly

• An IC made of millions of transistors and capacitors

Page 16: 11. Computer Systems   Hardware 1

RAM

• Different types of RAM– SRAM– DRAM– SDRAM– RDRAM– VRAM– Others

Page 17: 11. Computer Systems   Hardware 1

SRAM• Static RAM

– Uses multiple transistors, typically four to six, for each memory cell (a bit)

– Used primarily for cache, registers in main storage units and processors

– Created with a circuit called ‘flip-flop’ which preserves status of data inside the circuit.

– Data is not lost therefore refresh is unnecessary resulting in higher processing speed.

– Cost is high because the circuits are complicated and memory capacity is smaller than DRAM

Page 18: 11. Computer Systems   Hardware 1

DRAM (Dynamic RAM)• Cost low because circuit is simple and small

– A transistor and a capacitor are paired to create a memory cell (a bit)– The capacitor holds the bit of information and acts as a switch for read

and write

• Needs constant charge to store data– The problem with the capacitor is that its value leaks with time– Memory is refreshed at regular intervals which affects performance

speed– Refresh operation happens automatically 1000s of times/sec – as such, it

is ‘dynamic’

• Used in storage units of computers, printers and other devices

Page 19: 11. Computer Systems   Hardware 1

SDRAM (Synchronous DRAM)

• High speed DRAM• Developed to keep up with the operating speed of

processors– Takes advantage of the burst mode concept by staying

on the row containing the requested bit and moving rapidly through the columns, reading each bit as it goes

– The idea is that most of the time the data needed by the CPU will be in sequence

– SDRAM is about five percent faster than EDO RAM– Maximum transfer rate to L2 cache ≈ 528MBps

Page 20: 11. Computer Systems   Hardware 1

RDRAM

• Rambus dynamic random access memory– A radical departure from the previous DRAM

architecture– Uses a Rambus in-line memory module

(RIMM)– Use of a special high-speed data bus called the

Rambus channel– RDRAM memory chips work in parallel to

achieve a data rate of 800 MHz

Page 21: 11. Computer Systems   Hardware 1

VRAM

• Video RAM– Also known as Multiport dynamic random

access memory (MPDRAM)– Used specifically for video adapters or 3-D

accelerators

Page 22: 11. Computer Systems   Hardware 1

Other Types of RAM

• FPM DRAM – Fast page mode dynamic random access memory– It waits for the first bit of data to be located and read before

it looks for the next bit– Maximum transfer rate to L2 cache ≈ 176MBps

• EDO RAM – Extended data-out dynamic random access memory– As soon as the address of the first bit is located, it begins

looking for the next bit– It is about five percent faster than FPM DRAM– Maximum transfer rate to L2 cache ≈ 264MBps

Page 23: 11. Computer Systems   Hardware 1

ROM (Read Only Memory)

• Read-only memory, also known as firmware– Instructions written in ROM by the firm or

manufacturer of the chip.

• Data stored in such chip is non-volatile• Data stored in these chips is either

unchangeable or requires a special operation to change

Page 24: 11. Computer Systems   Hardware 1

5 Basic Types of ROM

• ROM

• PROM

• EPROM

• EEPROM

• Flash memory

Page 25: 11. Computer Systems   Hardware 1

ROM• Also known as ‘mask’ ROM

• Firmware – a program used to start a computer, etc

• User cannot add any programs or data

• Used in memories of games, software etc.

Page 26: 11. Computer Systems   Hardware 1

PROM

• Has a grid of columns and rows just as ordinary ROM

• Every intersection of a column and row has a fuse connecting them

• The higher voltage breaks the connection between the column and row by burning out the fuse

Page 27: 11. Computer Systems   Hardware 1

PROM

• Programmable read-only memory can only be programmed once

• Inexpensive• Great for prototyping the data for a ROM before

committing to the costly ROM fabrication process

Page 28: 11. Computer Systems   Hardware 1

EPROM

• Erasable programmable read-only memory

• Can be rewritten many times

• Similar to PROM, except that the intersection can be charged to create barrier for signal transmission

• Incremental changes cannot be done

• Ultraviolet light is used to erase the chip

Page 29: 11. Computer Systems   Hardware 1

EEPROM

• Electrically erasable programmable read-only memory

• Incremental changes can be done• Electric field is used to alter the data• Slow as only one byte can be changed each time

Page 30: 11. Computer Systems   Hardware 1

Flash Memory

• Similar to EEPROM

• Uses in-circuit wiring to erase by applying an electrical field to the entire chip or to predetermined sections of the chip called blocks

• Chunk of 512 bytes data can be altered each time

Page 31: 11. Computer Systems   Hardware 1

Processor Architecture

• Processor Structure

Control Unit

Arithmetic Unit (ALU)

• Processor Operation Principles

Instruction readout and decoding

Instruction execution

Page 32: 11. Computer Systems   Hardware 1

Processor Structure

• The CPU is the backbone of the computer, often compared to the human brain.

• It consists of the control unit and the arithmetic unit.

Page 33: 11. Computer Systems   Hardware 1

Processor Structure

• Control Unit– Controls all operations of the computer

• Retrieves instruction stored in main storage unit• Decodes retrieved instruction using the instruction

decoder• Executes and transmits instructions to each unit.

The control unit controls each unit and implements the function of each of the units as a computer system. The system by which instructions are executed in this way, sequentially, is called sequential control system, which is based on the concept of John Von Neumann.

Page 34: 11. Computer Systems   Hardware 1

Clock Speed

Page 35: 11. Computer Systems   Hardware 1

Von Neumann Architecture

• Four main parts– Arithmetic unit

– Control unit

– Memory

– Input/Output devices

• Instructions are stored and executed sequentially

Page 36: 11. Computer Systems   Hardware 1
Page 37: 11. Computer Systems   Hardware 1

Sequential control system

Page 38: 11. Computer Systems   Hardware 1

Processor Structure

• Arithmetic Unit or officially the Arithmetic Logic Unit (ALU)– Performs calculations, comparison, branch and

other processes. • Depending on the representation method of data

assigned subject to operations, ALU has functions performing fixed point operation, floating point operation and decimal

A number representation consisting of a mantissa, M, an exponent, E, and an (assumed) radix (or "base") . The number represented is M*R^E where R is the radix - usually ten but sometimes 2.

Page 39: 11. Computer Systems   Hardware 1

ALU

Page 40: 11. Computer Systems   Hardware 1

Processor operation principles

• Instruction readout and decoding– Instruction and instruction format– Instruction readout– Instruction decoding

• Instruction execution– Storing retrieved data– Instruction execution– Processing subsequent to the instruction execution– Flow of instruction from decoding to execution and

hardware structure– Various registers

Page 41: 11. Computer Systems   Hardware 1

Processor Insight

Instruction 1

Instruction 2

Read/write controller

Addre

ss deco

der

Main

Sto

rag

e

Un

it

ALU

GR 0

GR 1

GR 2

GR n

Instruction decoder

Operation Address

+1

Control unitArithmetic unit

PC

IR

Control bus

Address bus

Data bus

Processor

Base Address

Flag

PSW

Index

Complement

Page 42: 11. Computer Systems   Hardware 1

Executing Program

• Processor's four operating stages

1. Fetch – a program's instructions and any needed data into the processor

2. Decode – determines the purpose of the instruction and passes it to the appropriate hardware element

Page 43: 11. Computer Systems   Hardware 1

Executing Program

• Processor's four operating stages

3. Execute – carries out the instruction

4. Retire – takes the results of the execution stage and places them into other processor registers or the computer's main memory

Page 44: 11. Computer Systems   Hardware 1

Clock

• An important part of a microprocessor is its built-in clock, which determines the maximum speed at which other units can operate and helps synchronize related operations

• 2 GHz ≈ 2 billion clock cycles per second

Page 45: 11. Computer Systems   Hardware 1

Silicon Structure

Fetch Logic

Decode/dispatch

L2 cache

L1 cache

Vector Processin

g Unit

Floating Point Unit

Arithmetic Logic

Unit

Load / Store Unit

Retire and write-back logic

Memory Manageme

nt Unit

Branch Processing

Unit

FETCH

DECODE

EXECUTE

RETIRE

Page 46: 11. Computer Systems   Hardware 1

Processor operation principles

Instruction readout and decoding

• Data and program retrieved from the main storage unit are transferred to the processor through the data bus– This data is temporarily stored in the ‘general-

purpose register’– The instruction part is transferred to the

‘instruction register’

Page 47: 11. Computer Systems   Hardware 1

Processor operation principles

Instruction readout and decoding• Instruction and instruction format

– Instruction• A program is a set of instructions in the binary system called the machine language instructions• A program written in any human language is converted to machine language in order to be decoded and executed• Parts of the machine language

– Instruction – indicates instructions and operations– Address – specifies the address and register of main storage unit subject to processing

Page 48: 11. Computer Systems   Hardware 1

Processor operation principles

Instruction readout and format• Instruction format

– Zero-address format• Uses a dedicated register called a stack pointer

• Currently, not used

• Stack pointer is the register that stores the address to be returned to (return address) after completion

Instruction e.g. HALT

Page 49: 11. Computer Systems   Hardware 1

Processor operation principles

Instruction readout and format– Single-address format

• Performs operations between the content of the main storage unit specified in the address and the accumulator data

• The accumulator stores operation values and operation results. There are cases where general purpose registers are also used as accumulator

– Two-address format• Specifies two addresses and uses the address data specified on the main

storage unit.

– Three-address format• Specifies two addresses to be used for the operation, and the address

where the operation result is to be stored

Instruction Address e.g. INC GR1

Instruction Address Address e.g. MOV GR1, X

Instruction Address Address Address e.g. MUL GR3, GR2, GR1

Page 50: 11. Computer Systems   Hardware 1

Processor operation principles

Instruction Readout

Page 51: 11. Computer Systems   Hardware 1

Processor operation principles

Instruction Decoding

• Content of instruction part of instruction register is transferred to a decoder.

• Decoder decodes the instruction and sends signals for the execution of the operation to each unit

• Content of the address part is transferred to the address bus

Page 52: 11. Computer Systems   Hardware 1

Processor operation principles

Instruction Decoding

Page 53: 11. Computer Systems   Hardware 1

Processor operation principles

Instruction Decoding

Page 54: 11. Computer Systems   Hardware 1

Processor operation principles

Instruction Execution

Once the instruction content and address of the data are obtained, the instruction is executed.

Page 55: 11. Computer Systems   Hardware 1

Processor operation principles

Instruction Execution• Storing retrieved data

– If, as a result of decoding the instruction part and the address part using the instruction decoder, the instruction is found to say "Retrieve and transfer to the processor the contents of address 100 of the main storage unit," a place to store the retrieved contents will be needed.

– Therefore, a general-purpose register is set in the arithmetic unit of the processor in order to store the retrieved data.

– In this example, it is assumed that there are five registers, and, for convenience, the numbers 0 to 4 will be assigned to them. Then, using the initials of each of the general-purpose registers, they will be represented as GR0, GR1, GR2, GR3 and GR4.

Page 56: 11. Computer Systems   Hardware 1

Processor operation principles

Instruction Execution

• General-purpose registers

Page 57: 11. Computer Systems   Hardware 1

Processor operation principles

Instruction Execution• Contents of address 100 of the main storage unit (RAM)

passes through the data bus to be stored in general-purpose register GR1

Page 58: 11. Computer Systems   Hardware 1

Processor operation principles

Instruction Execution• If, as a result of decoding the instruction, it is found to say

“Add the contents of address 100 of RAM to the GR1 contents and store result in GR1”

• The unit that performs this kind of addition and subtraction of numeric values is the ALU (Arithmetic and Logic Unit)– Fixed point operation mechanism to perform operations of integer

data (for scientific and engineering calculations)– Floating point operation mechanism to perform operations of

floating point data (for scientific and engineering calculations)– Decimal operation mechanism to perform operations of binary-coded

decimals in packet format (For commercial data processing)– Logical operations, logical sums, bit shifts

Page 59: 11. Computer Systems   Hardware 1

Processor operation principles

Instruction Execution• Storage of process result

Page 60: 11. Computer Systems   Hardware 1

Processor operation principles

Instruction Execution• Hardware structure

Page 61: 11. Computer Systems   Hardware 1

Processor operation principles

Registers

• Types of registers– Program counter– Accumulator– Index register– Base address register– PSW (Program Status Word)– Flag register– Complement register

Page 62: 11. Computer Systems   Hardware 1

Register

Program Counter (PC)• A specialized register within the processor

– When computer boots up, the content of the program counter is immediately read and the address of the main storage unit to be accessed is verified.

– “Load instruction A stored in address 101 of the RAM into the processor”

Page 63: 11. Computer Systems   Hardware 1

Register

Accumulator• Used to exclusively store operation results and values

• There are cases where the general-purpose register is used as a substitute for the accumulator– Accumulator mode: When the accumulator is used.

– General purpose mode: When a general purpose register is used as a substitute for the accumulator

Page 64: 11. Computer Systems   Hardware 1

Register

Index Register• Performs address modification

– Changes address part of the instruction when an address in the main storage unit is specified.

Page 65: 11. Computer Systems   Hardware 1

Register

Base register• Stores the program top address

Page 66: 11. Computer Systems   Hardware 1

Register

Flag register• Stores information related to operation result to

the existence of carry, overflow, etc

Page 67: 11. Computer Systems   Hardware 1

Register

Program Status Word (PWS)• The program counter, flag register and other information are

registered in the PWS.– If an event interrupts the program in the processor, the program

execution can be resumed using the PWS information

Page 68: 11. Computer Systems   Hardware 1

Register

Complement Register• Generates integer complements in order to perform

operations in the addition circuit

Page 69: 11. Computer Systems   Hardware 1

Address specification mode• Address part of instruction specifies main storage unit

address and the register subject to be processed• This address is not used during instruction execution. The

actual address is specified after performing calculations between the specified register and the addresses– This operation is called address modification– Actual address obtained is called the “effective address”

Page 70: 11. Computer Systems   Hardware 1

Address specification mode

Immediate specification Direct address specification Index address specification Register address specification Base address specification Relative address specification Indirect address specification

Page 71: 11. Computer Systems   Hardware 1

Immediate Specification

• Data is contained in the address part, can be executed immediately

Page 72: 11. Computer Systems   Hardware 1

Direct address specification

• Address of data is contained in the address part

Page 73: 11. Computer Systems   Hardware 1

Index address specification• The address part is divided into the section that specifies the number of the

index register and the constant section, and the effective address is the result of the following addition:

(Content of the register content specified with the register number) + (Address constant)

Page 74: 11. Computer Systems   Hardware 1

Register Address Specification– Register number stored in address part

– Address is stored in register of that number

Page 75: 11. Computer Systems   Hardware 1

Base address specification• The program starting address is stored in the base register

• The result of the addition of the address in the base register and the address constant becomes the effective address

Page 76: 11. Computer Systems   Hardware 1

Relative address specification• Result of the address of instruction being

executed and the address of the address part become the effective address

Page 77: 11. Computer Systems   Hardware 1

Indirect address specification• Address of data is contained in the address

specified in the address part• May be performed on two or three levels

Page 78: 11. Computer Systems   Hardware 1

Processor operation principles

• Instruction Set– When user inputs request, the software interacts with the hardware to

process the instructions built into the computer. This group of instruction is called the instruction set

– Depending on the computer, the types and number of instructions differ

– Computer software packages with identical instruction sets are basically compatible

• OS/2 Warp (Win OS/2 packaged)

• Execution control of the instruction– Repetition of readout of instruction from main storage unit – Decoding and execution of instruction by control unit

* Instruction readout (I-cycle or Fetch cycle)* Instruction execution (E-cycle)

Page 79: 11. Computer Systems   Hardware 1

I-Cycle and E-Cycle

Page 80: 11. Computer Systems   Hardware 1

Speed performance enhancement in Processor

• Machine Cycle– I-Cycle– E-Cycle

I-Cycle

E-Cycle

Page 81: 11. Computer Systems   Hardware 1

Sequential processing

Pipeline processing

Page 82: 11. Computer Systems   Hardware 1

Instruction Set

Complex Instruction Set Computer (CISC)

• Variation in the instruction size and length of execution

• Complex, high level type instructions

• Instructions are executed by the mico-program

Reduced Instruction Set Computer (RISC)

• About the same in the instruction size and length of execution

• Basic instructions

• Instructions are executed by the hardware

Page 83: 11. Computer Systems   Hardware 1

Parallel method

• Using multiple processors simultaneously to execute a program

• Speeds execution

• Requires special system software

Page 84: 11. Computer Systems   Hardware 1

Parallel method

Page 85: 11. Computer Systems   Hardware 1

Multi-processor

• Designed to improve performance and reliability of the system

• Multiple processors in parallel with each processor having a dedicated function

• Fault-tolerance

• Resource-sharing

Page 86: 11. Computer Systems   Hardware 1

Parallel Processing

• Super scalar architecture

• Super pipeline architecture

Instruction 1 F D E R

Instruction 3 F D E R

Instruction 5 F D E R

Instruction 2 F D E R

Instruction 4 F D E R

Instruction 6 F D E R

Instruction 1 F' F" D' D" E' E" R' R"Instruction 2 F' F" D' D" E' E" R' R"

Instruction 3 F' F" D' D" E' E" R' R"Instruction 4 F' F" D' D" E' E" R' R"

Instruction 5 F' F" D' D" E' E" R' R"Instruction 6 F' F" D' D" E' E" R' R"

Page 87: 11. Computer Systems   Hardware 1

Multi-processor• Symmetric Multi-processor

– memory  is shared among all the processors executing the same OS.

– Competition for the use of memory limits number of processors that can be connected.

• Array processor– High speed scientific computing using pipeline processing

– Large scale or dedicated mathematical processors

– Deploy pipeline processing principle

– Each unit (i.e. processor) is in a queue passing its completed result to the next unit

– Also known as vector processing

Page 88: 11. Computer Systems   Hardware 1

Parallel Processing

• Multiple processors cooperate with multiple tasks being performed to execute one job.  

• SISD (Single Instruction Single Data Stream)– One instruction stream operating on a single data element and is not

parallel• SIMD (Single Instruction Multiple Data Stream)

– Each instruction may operate on more than one data element and is synchronous.

• Parallel SIMD– The same instruction is executed by all processors operating on

different sets of data.• MIMD (Multiple Instruction Multiple Data Stream)

– Each processor has its own instruction stream acts on its own data stream independent of the other processors

Page 89: 11. Computer Systems   Hardware 1

Processor Performance

• Performance– E.g. 500MHz = 500,000,000 pulses per sec

– Clock frequency = 1/500MHz = 2ns per pulse

• CPI (Cycles Per Instruction)– CPI ≈ number of clock ticks required to execute

one instruction

Page 90: 11. Computer Systems   Hardware 1

Digital IC

NOT gateNOT gate

AND gateAND gate

OR gateOR gate

XOR gateXOR gate

NAND gateNAND gate

NOR gateNOR gate

Half-adderHalf-adder

Full-adderFull-adder

Flip-flopFlip-flop

Digital IC

Logic Gates

TransistorsTransistors

CapacitorsCapacitors

DiodesDiodes

Page 91: 11. Computer Systems   Hardware 1

'NOT' Gate

A NOT A

0 1

1 0

A

Page 92: 11. Computer Systems   Hardware 1

'AND' Gate

A B A AND B

0 0 0

0 1 0

1 0 0

1 1 1

A

B

Page 93: 11. Computer Systems   Hardware 1

'OR' Gate

A B A OR B

0 0 0

0 1 1

1 0 1

1 1 1

A

B

Page 94: 11. Computer Systems   Hardware 1

'XOR' Gate

A B A XOR B

0 0 0

0 1 1

1 0 1

1 1 0

A

B

Page 95: 11. Computer Systems   Hardware 1

'NAND' Gate

A B A NAND B

0 0 1

0 1 1

1 0 1

1 1 0

A

B

Page 96: 11. Computer Systems   Hardware 1

'NOR' Gate

A B A NOR B

0 0 1

0 1 0

1 0 0

1 1 0

A

B

Page 97: 11. Computer Systems   Hardware 1

Exercise 1

• Construct the truth table for the following circuit

A

BC

A B C

0 0 1

0 1 0

1 0 0

1 1 1

Page 98: 11. Computer Systems   Hardware 1

Exercise 2

• Construct the truth table for the following circuit

a1

a0

L1 L2 L3 L4

a1 a0 L1 L2 L3 L4

0 0 0 0 0 1

0 1 0 0 1 0

1 0 0 1 0 0

1 1 1 0 0 0

Page 99: 11. Computer Systems   Hardware 1

Exercise 3

• Construct the truth table for the following circuit

S

A

BC

A B S C

0 0 0 0

0 0 1 0

0 1 0 0

0 1 1 1

1 0 0 1

1 0 1 0

1 1 0 1

1 1 1 1

Page 100: 11. Computer Systems   Hardware 1

Hardware

Storage

Page 101: 11. Computer Systems   Hardware 1

Memory Architecture• Storage function

– Main Storage Unit (RAM) – volatile

– Auxiliary Storage Devices – non-volatile

• Hard disks

• Magnetic tape

• Floppy disk

• Magneto-optical disk

Page 102: 11. Computer Systems   Hardware 1

Memory Capacity and Performance

1. Memory hierarchical structure

2. Access time* Processor requests data readout

* Processor selects main storage unit address with the address bus

* Data of selected address is transferred through data bus

Time taken for these processes to complete is called Access Time.

3. Cycle Time

* Refresh interval

Page 103: 11. Computer Systems   Hardware 1

Memory Hierarchy Structure

Page 104: 11. Computer Systems   Hardware 1

Memory Hierarchy Structure

Page 105: 11. Computer Systems   Hardware 1

Memory Capacity

Page 106: 11. Computer Systems   Hardware 1

Memory Performance (Access Time)

• Time elapsed from when the processor sends the read/write instruction to the storage unit until the data delivery/acceptance is completed.

• For the processor to access the main storage unit data, the following three stages are necessary:

1. The time during which the processor requests the data readout2. The time during which the processor selects the main storage unit

address with the address bus3. The time during which the data of the selected address is transferred

through the data bus.• In other words, ++ represent the time elapsed from

when the data access request is sent until the data transfer is completed. This lapse of time is called the access time.

Page 107: 11. Computer Systems   Hardware 1

Memory Performance (Cycle Time)

• Among the storage elements of the storage unit, when data is to be stored in the capacitor, there are some whose memory fades with time, as with DRAM.

• Refreshing operation that rewrites data at regular intervals becomes necessary.

• For that reason, after the data transfer is completed, a preparation time in order to receive the next request becomes necessary.

• Cycle time = Access time + Preparation time

Page 108: 11. Computer Systems   Hardware 1

Cycle Time

Page 109: 11. Computer Systems   Hardware 1

Memory Configuration

• Memory used in the computer can be classified into hierarchies.

• To provide for the occurrence of malfunctions or failures, these devices are equipped with data error detection and error correction functions.

• Implemented by several Error Correcting Codes (ECC).

Page 110: 11. Computer Systems   Hardware 1

Error Correcting Codes (ECC)• Magnetic disk

– Errors caused by a small scratch (burst errors)– Cyclic Redundancy Check (CRC) code to detect burst

errors

• Magnetic tape– 1 byte data in transverse direction– Parity check system detecting odd number of bit

errors appends vertical parity bits– CRC code used to detect burst errors

Page 111: 11. Computer Systems   Hardware 1

ECC

• Main Memory– Hamming code used to detect single-bit and double-bit errors.

• Memory protection system– Access rights

• Read, Write, Execute

– Data (RW)

– Instructions (E)

– When violated, interrupt occurs and control passes to OS

– Boundary register system (a dedicated register specifies the addressable domain for each program)