230 likes | 406 Views
Today. Chapter 5 - Error Detection/Correction Codes Sync DRAM next Tuesday Project 1 Discussion – Switch Debouncing List of 7400 Series Integrated Circuit Chips (7400, 7402, 7404, 7474, 74109, 74112, etc. ) http://en.wikipedia.org/wiki/List_of_7400_series_integrated_circuits
E N D
Today • Chapter 5 - Error Detection/Correction Codes Sync DRAM next Tuesday • Project 1 Discussion – Switch Debouncing • List of 7400 Series Integrated Circuit Chips (7400, 7402, 7404, 7474, 74109, 74112, etc. ) http://en.wikipedia.org/wiki/List_of_7400_series_integrated_circuits • Data Sheets for Chips http://www.datasheetcatalog.com/ • Using the Oscilloscope & Function Generator
Chapter 5Internal Memory Part II Error Detection/Correction Codes Sync DRAM
Error Detection/Correction Errors: • Hard Failure • Permanent defect • Soft Error • Random, non-destructive • No permanent damage to memory Coding: • Coding can be used for - Error detection - Error correcting • Hamming code will be explored
Hamming Code Example Visualizing: With even parity: Word: Identifying error: With Error:
Hamming Code Design – determining K To store an M bit word with detection/correction takes M+K bit words If K =1, we can detect single bit errors but not correct them If 2K - 1 >= M + K , we can detect and correct single bit errors, i.e. detect an error and identify which bit it is. Example: for M = 8: for K = 3: 23 – 1 < 8 + 3 for K = 4: 24 – 1 > 8 + 4 Therefore, choose K =4
Hamming Code Syndrome If we compare the read K bits compared with the write K bits, using an exclusive or function, the result is called the syndrome. If the syndrome is all zeros, there were no errors. If there is a 1 bit somewhere, we know that represents an error.
Layout of Data and Check Bits to Achieve Our Design Criteria: C1 is a parity check on every data bit whose position is xxx1 C1 = D1 exor D2 exor D4 exor D5 exor D7 C2 is a parity check on every data bit whose position is xx1x C2 = D1 exor D3 exor D4 exor D6 exor D7 C4 is a parity check on every data bit whose position is x1xx C4 = D2 exor D3 exor D4 exor D8 C8 is a parity check on every data bit whose position is 1xxx C8 = D5 exor D6 exor D7 exor D8 Why? Because we want the syndrome, the Hamming test word, to yield the address of the error.
Example: Data stored = 00111001 Check bits: Putting it together:
Example: Word fetched: Check bits: Putting it all together: EXOR’ing: 0 1 1 0 0110 = 6 bit position 6 is wrong, i.e. bit D3 is wrong
SEC-DEC Example –Requires One Extra Check Bit Single Error Correction, Double Error Detection: Single Error Correction: Word With Even ParityWord With Even Parity With Two Errors With Errors Identifying ErrorSEC Attempt IS SEC Correct? Extra Bit Confirms DE
Improvements in memory RAM – continually gets denser. DRAM – Several improvements: SDRAM – synchronous DRAM DDR-SDRAM - doubles transfer speed RDRAM – asynchronous one transfer per clock cycle
Comparison of improved DRAM Conventional DRAM – 40 to 100 MB/S transfer rate?
Synchronous DRAM (SDRAM) • Access is synchronized with an external clock • Address is presented to RAM • RAM finds data (CPU waits in conventional DRAM) • Since SDRAM moves data in time with system clock, CPU knows when data will be ready • CPU does not have to wait, it can do something else • Burst mode allows SDRAM to set up stream of data and fire it out in block • DDR-SDRAM sends data twice per clock cycle (leading & trailing edge)
DDR SDRAM • SDRAM can only send data once per clock • Double-data-rate SDRAM can send data twice per clock cycle • Rising edge and falling edge
RAMBUS • Adopted by Intel for Pentium & Itanium • Main competitor to SDRAM • Separate bus (hence the name RAMBUS) • Bus addresses up to 320 RDRAM chips at 1.6Gbps • Asynchronous block protocol • Precise control signal timing • 480ns access time • Then 1.6 Gbps