Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


Presentation on theme: "Computer Engineering II 4 th year, Communications Engineering Winter 2014 Dr. Tamer Samy Gaafar Dept. of Computer & Systems Engineering."— Presentation transcript:

1 Computer Engineering II 4 th 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 Teaching Staff Instructor: —Tamer Samy Gaafar —Email: tsgaafar@yahoo.com —Lectures: Sunday 8:30am-11:00pm —Location ( comp. Sys. Lab #2, Electrical Building) —Office Hours: TBA Teaching Assistant: —Mohamed Issa —Email: mohmed.issa@gmail.com —Tutorials: TBA —Office Hours: TBA

4 Teaching Staff (Cont.) Teaching Assistant: —Mohamed Atef (Labs) —Email: eng_m_atef_1@yahoo.com —Tutorials: TBA —Office Hours: TBA

5 Course Info Course website: —http://www.tsgaafar.faculty.zu.edu.eg Textbook: —“Computer Organization and Architecture: Designing for Performance”, William Stallings, 8 th Edition, 2010, www.williamstallings.com/ComputerOrganization www.williamstallings.com/ComputerOrganization —“Computer Organization”, Carl Hamacher, Zvonko Vranesic, and Safwat Zaki, 5 th Edition.

6 Course Info (Cont.) Grading: Course workGrade distribution Labs + Reports 10pt 60 Assignments + Sections 15pt Oral & Practical Exam 20pt Midterm Exam 15pt Final Exam 90pt Total Points150

7 Announcements Lab/Assignment Groups Decide your Lab/Assignment group names and e- mail them to Eng. Mohamed Atef at eng_m_atef_1@yahoo.com by Friday, 13 February, 2014, 11:59pm. Non received group names (on time) will be grouped according to the student list Students in the same group must be from the same section. Groups are 5 students Each In case of a conflict, groups will be assigned according to the student list

8 Announcements Section time will be arranged with eng. Mohamed Issa (Time & Location) No student will be allowed to attend the lab after the entrance of the TA (Mohamed Atef) No student will be allowed to attend the lecture or the sections after 10 minutes from the begining of the session. The absence of the student from the lab means neither attendance nor reports degree

9 Course Overview Internal Memory External Memory Input / Output Computer Arithmetic Introduction to Operating Systems Large Computer Systems

10 Lecture 1 Chapter 5. Internal Memory Technology

11 Memory Cell Semiconductor memory: electronic memory implemented on a semiconductor-based IC. Memory cell: basic element of a semiconductor memory. — Holds one bit. — Properties –Two stable states used to represent 0 and 1. –Can be written into to set the state. –Can be read to sense the state.

12 Conceptual Operation of a Memory Cell Three terminals: select, control, data in/sense. — Select: select a memory cell for read/write. — Control: indicate the required operation: read or write. — Data in/sense: –Read: Output the state of the cell. – Write: electrical signal that sets the state to 0 or 1.

13 Individual words of memory are directly accessed through wired-in addressing logic. All semiconductor memories are random access. Read/Write: by electrical signals. Volatile: must be provided with a constant power supply  temporary storage Dynamic or static. Semiconductor Memory Types - RAM

14 Dynamic RAM (DRAM) Bits are stored as charge on capacitors. —Charge  1, no charge  0. Capacitors discharge  DRAM needs periodic charge refreshing even when powered. Analog device: capacitor can store any charge value within a range  a threshold value is used. Adv. —Simpler construction. —Smaller per bit. —Less expensive. Dis. —Need refresh circuits. —Slower. Main memory.

15 DRAM Structure

16 DRAM Operation Address line active when bit read or written. —Transistor switch closed (current flows). 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 a sense amplifier –Compares with threshold/reference value to determine 0 or 1. —Readout discharges capacitor  charge must be restored

17 Static RAM (SRAM) Bits stored as on/off switches. Digital device: uses flip-flops. No charges to leak. No refreshing needed. Adv. —Does not need refresh circuits. —Faster. Dis. —More complex construction. —Larger per bit. —More expensive. Cache memory.

18 SRAM Structure

19 SRAM Operation Transistor arrangement gives stable logic state. C 1 and C 2 : diff. states State 1 — C 1 high, C 2 low — T 2 on, T 4 off — T 1 off, T 3 on State 0 — C 1 low, C 2 high — T 2 off, T 4 on — T 1 on, T 3 off Address line transistors T 5 T 6 are switches. Write – apply value to B & compliment to B. Read – value is on line B. ON OFF Low High Low High ON OFF ON

20 DRAM vs SRAM Both volatile —Power needed to preserve data. Dynamic cell —Simpler to build, smaller. —More dense: more cells per unit area. —Less expensive. —Needs refreshment. —Fixed cost of refreshment circuitry  use large memory units to benefit from the small cell cost. —Used in main memory. Static cell —Faster —Used in cache memory.

21 Read Only Memory (ROM) Permanent storage that cannot be changed. —Nonvolatile. Can read stored data, cannot write new data. Written during fabrication —Large fixed cost of data insertion  expensive for small number of copies. —No room for error. One bit error  throw the whole batch of ROMs. Why useful? —Data or program is permanently in main memory and need never be loaded from a secondary storage device. Applications —Microprogramming. —Library subroutines. —Systems programs (BIOS). —Function tables.

22 Programmable ROM (PROM) Nonvolatile. Can be written into only once. Writing (or programming) is performed electrically using a special equipment. Writing can be performed by a supplier or by a customer later than chip fabrication. Useful when a small number of ROMs with a particular memory content is needed. Flexible and convenient. ROM is good for high-volume production.

23 Erasable Programmable ROM (EPROM) Nonvolatile. Read-mostly memory: read operations are far more than write operations. Read and written electrically. —Before a write operation, all cells must be optically erased to the same initial state. Erasure —Done optically by exposure of the packaged chip to ultraviolet radiation. —Takes up to 20 minutes. —Can be done repeatedly. One transistor per bit  dense. More expensive than PROM, but can do multiple updates.

24 Electrically Erasable Programmable ROM (EEPROM) Nonvolatile. Read-mostly memory. Can be written into without erasing prior contents —Only the byte/bytes addressed are updated. Write operation takes longer than read. Flexible: updatable in place using ordinaly bus lines. More expensive than EPROM. Less dense than EPROM: fewer bits per chip.

25 Flash Memory Nonvolatile. Read-mostly memory. First introduced in the mid-1980s. Intermediate between EPROM and EEPROM in cost and functionality —Like EEPROM, it uses electrical erasing technology. —Entire flash memory can be erased in a few seconds  much faster than EPROM. —Only a block of memory can be erased. —No byte-level erasure. —Like EPROM, one transistor per bit  higher density than EEPROM.

26 Semiconductor Memory Types - Summary

27 Chip Logic Semiconductor memory comes in packaged chips. Each memory chip contains an array of memory cells. Design issue: number of bits of data that maybe read/written at a time. —One extreme: physical arrangement of cells in the array is the same as the logical arrangement of words in memory. A 16 M bit chip can be organized as 1 M 16-bit words —Other extreme: 1-bit-per-chip organization: data is read/written 1 bit at a time. 16 lots of 1 M bit chip with bit 1 of each word in chip 1 and so on.

28 Reading Material Stallings, chapter 5, pages 158-164


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

Similar presentations


Ads by Google