Presentation is loading. Please wait.

Presentation is loading. Please wait.

Computer Engineering II

Similar presentations


Presentation on theme: "Computer Engineering II"— Presentation transcript:

1 Computer Engineering II
4th year, Communications Engineering Winter 2014 Dr. Tamer Samy Gaafar Dept. of Computer & Systems Engineering

2 Course Web Page http://www.tsgaafar.faculty.zu.edu.eg

3 Announcements Eng. Mohamed Atef will take the last 50 minutes of today’s class to cover the material required for Lab1. Lab/Assignment Groups are posted or not?. Lab1 is now posted. Before your lab day, get prepared by reading the posted material very well so that you don’t waste much of your lab time trying to figure out what is going on. Today’s lecture and lab presentation are posted.

4 Chapter 5. Internal Memory Technology (Cont.)
Lecture 2 Chapter 5. Internal Memory Technology (Cont.)

5 4 x 4 DRAM

6 Typical 16 Mb DRAM (4M x 4) Logically, 4 square arrays of 2048 x 2048 elements. Each horizontal line connects to the Select terminal of each cell in its row. Each vertical line connects to the Data in/Sense terminal of each cell in its column. Reduces number of address pins Multiplex row address and column address 11 pins to address (211=2048) Adding one more pin doubles range of values so x4 capacity

7 Refreshing Refresh circuit included on chip. Disable chip. Count through rows. Data is read out and written back into the same location  each cell is refreshed. Takes time. Slows down apparent performance.

8 Chip Packaging 16-Mbit DRAM, 4M x 4. 8-Mbit EPROM chip, 1M x 8.
One-word-per-chip package. Address: A0-A19, Data: D0-D7 Vcc; power, Vss: ground, CE: chip enable, Vpp: programming voltage. 16-Mbit DRAM, 4M x 4. Updatable  data pins in/out. WE: Write Enable OE: Output Enable NC: No Connect  even # of pins

9 Module Organization 256 k byte memory Available: 256 k x 1-bit chips

10 Module Organization (2)
1 M byte memory Available: 256 k x 1-bit chips

11 Semiconductor memory is subject to errors. Hard Failure
Error Correction Semiconductor memory is subject to errors. Hard Failure Permanent physical defect. Memory cells cannot store data: stuck at 0 or 1, or switching. Caused by harsh environments, manufacturing defects, or wear. Soft Error Random, non-destructive event that alters contents of one or more memory cells. No permanent damage to memory. Caused by power supply problems or alpha particles. Detected/corrected using Hamming error correcting code.

12 Error-Correcting Code Function
Syndrome word

13 Hamming Error-Correcting Code
Data bits: 1110 A B 1 1 1 1 Discrepancies C Parity bits Chosen so that total number of 1s in each circle is even. By checking the parity bits, discrepancies are found  error can be easily found and corrected.

14 How many check bits to use?
The comparison logic receives as input two K-bit values. A bit-by-bit comparison is done by taking the XOR of the two inputs  syndrome word. Each bit of the syndrome word is 0 if there was a match in that position, otherwise, it is 1. Syndrome word is K bits wide  range 0 : 2K -1. The value 0 indicates no error  2K -1 are left to indicate which bit was in error. 2K -1 ≥ M + K

15 Hamming Code 2K - 1 ≥ M + K  2K ≥ 9+K  K = 4 1 1 1 1 Data bits 12 11 10 9 8 7 6 5 4 3 2 1 1 1 ? 1 1 ? 1 1 ? 1 ? ? 1 1 1 1 = Bit position 4 Bit position 8 Bit position 1 Bit position 2 Bit position 8: 0 Bit position 2: 1 Bit position 1: 1 Bit position 4: 1

16 1 1 ? 1 1 1 ? 1 ? 1 ? Hamming Code (2) Assume error in bit 9.
12 11 10 9 8 7 6 5 4 3 2 1 1 1 ? 1 1 1 ? 1 ? 1 ? Assume error in bit 9. Recompute the check bits. Bit 1 = 0 (error). Bit 2 = 1. Bit 4 = 1. Bit 8 = 1 (error). Error is in bit position = = 9  flip it (correction).

17 Reading Material Stallings, chapter 5, pages


Download ppt "Computer Engineering II"

Similar presentations


Ads by Google