Presentation is loading. Please wait.

Presentation is loading. Please wait.

BIC 10503: COMPUTER ARCHITECTURE

Similar presentations


Presentation on theme: "BIC 10503: COMPUTER ARCHITECTURE"— Presentation transcript:

1 BIC 10503: COMPUTER ARCHITECTURE
Chapter 3 Memory Organization (Part 2) INTERNAL MEMORY

2 Semiconductor Memory Basic elements is the memory cell.
Common Properties of memory cell:- They exhibit 2 stable states, to represent binary 1 and 0 They are capable of being written into, to set the state They are capable of being read, to sense the state

3 Semiconductor Memory RAM
Misnamed as all semiconductor memory is random access Read/Write Volatile Temporary storage Static or dynamic

4 Random-Access Memory (RAM)

5 Dynamic RAM ( DRAM ) Characteristics of DRAM
Bits stored as charge in capacitors Charges leak Need refreshing even when powered Simpler construction Smaller per bit Less expensive Slower Main memory Essentially analogue Level of charge determines value

6

7 DRAM Operation Address line active when bit read or written Write Read
Transistor switch closed / open Write Voltage to bit line High for 1 low for 0 Then signal address line Transfers charge to capacitor Read Address line selected transistor turns on Charge from capacitor fed via bit line to sense amplifier Compares with reference value to determine 0 or 1 Capacitor charge must be restored

8 Static RAM ( SRAM ) Characteristics of SRAM
Bits stored as on/off switches No charges to leak No refreshing needed when powered Does not need refresh circuits More complex construction Larger size per bit More expensive Faster Cache Digital Uses flip-flops

9 Static RAM (SRAM) Cell Transistor arrangement gives stable logic state
C1 high, C2 low T1 T4 off, T2 T3 on State 0 C2 high, C1 low T2 T3 off, T1 T4 on Address line transistors T5 T6 is switch Write – apply value to B & compliment to B Read – value is on line B

10 SRAM vs DRAM Both volatile Dynamic cell Static
Power needed to preserve data Dynamic cell Simpler to build, smaller More dense Less expensive Needs refresh Larger memory units Static Faster Cache

11 Read Only Memory (ROM) Permanent storage Application of ROM:
Nonvolatile Application of ROM: Microprogramming Library subroutines Systems programs (BIOS) Function tables

12 Types of ROM Written during manufacture Programmable (once)
Very expensive for small runs Programmable (once) PROM Needs special equipment to program Read “mostly” Erasable Programmable (EPROM) Erased by UV Electrically Erasable (EEPROM) Takes much longer to write than read Flash memory Modern type of EEPROM Erase whole memory electrically

13

14 Semiconductor Memory Types

15 Main Memory Organization
Simple: CPU, Cache, Bus, Memory are same width (32 bits) CPU Cache BUS M 1-word-wide memory M CPU Cache BUS Wide Memory MUX M Bank bank bank bank CPU Cache BUS Interleaved Memory Wide: CPU/Mux 1 word Mux/Cache, Bus, Memory N words (Alpha: 64 bits & 256 bits) Interleaved: CPU, Cache, Bus 1 word Memory N Modules (4 Modules) Each bank can independently serve memory read/write request

16 Error Correction A semiconductor memory is subject to errors:
Hard Failure Permanent physical defect Memory cell or cells affected cannot reliably store data but become stuck at 0 or 1 or switch erratically between 0 and 1 Can be caused by: Harsh environmental abuse Manufacturing defects Wear Soft Error Random, non-destructive event that alters the contents of one or more memory cells No permanent damage to memory Power supply problems Alpha particles

17 Error Correcting Code Function

18 Error Correcting Code Function (cont)
Three possible results of Compare: No errors are detected. The fetched data bits are sent out. An error is detected, and it is possible to correct the error. The data bits plus error correction bits are fed into a corrector, which produces a corrected set of M bits to be sent out. An error is detected, but it is not possible to correct it. This condition is reported.

19 Hamming Error Correcting Code
The simplest error-correcting codes is the Hamming code use Venn diagrams to illustrate Example on 4-bit words (M = 4). Assign the 4 data bits to the inner compartments The remaining compartments are filled with what are called parity bits. Rule: Total number of 1s in a circle is even (Figure5.8b). If an error changes one of the data bits (Figure 5.8c), it is easily found. By checking the parity bits, discrepancies are found in circle A and circle C but not in circle B. Error is detected in intersection in A and C but not B. Correction to be made; change 0 to 1

20 Advanced DRAM Organization
SDRAM One of the most critical system bottlenecks when using high-performance processors is the interface to main internal memory The traditional DRAM chip is constrained both by its internal architecture and by its interface to the processor’s memory bus A number of enhancements to the basic DRAM architecture have been explored: DDR-DRAM RDRAM

21 Synchronous DRAM (SDRAM)
Characteristics of SDRAM :- Exchanges data with the processor synchronized to an external clock signal. Running at the full speed of the processor (no processor wait states) Burst mode allows SDRAM to set up stream of data and send it out in block May employ multiple-bank internal architecture (support on-chip parallelism)

22 Rambus DRAM (RDRAM) Characteristics of RDRAM :-
Memory requested/transmitted over the high-speed bus Request contains the desired address, the type of operation, and the number of bytes in the operation High clock speeds Higher cost Operates at high temperature RDRAM memory with integrated heat spreader

23 Double Data Rate SDRAM (DDR SDRAM)
Previous SDRAM can only send data once per bus clock cycle Characteristics of DDR SDRAM:- DDR SDRAM can send data twice per clock cycle Low latency Low cost (compared to RDRAM)

24 Thank You !


Download ppt "BIC 10503: COMPUTER ARCHITECTURE"

Similar presentations


Ads by Google