Gunjeet Kaur Dronacharya Group of Institutions. Outline I Random-Access Memory Memory Decoding Error Detection and Correction Read-Only Memory Programmable.

Slides:



Advertisements
Similar presentations
Computer Organization and Architecture
Advertisements

Computer Organization and Architecture
Prith Banerjee ECE C03 Advanced Digital Design Spring 1998
+ CS 325: CS Hardware and Software Organization and Architecture Internal Memory.
Memory Basics. 8-1 Memory definitions Memory is a collection of cells capable of storing binary information. Two types of memory: –Random-Access Memory.
Chapter 7 Memory and Programmable Logic
Chapter 9 Memory Basics Henry Hexmoor1. 2 Memory Definitions  Memory ─ A collection of storage cells together with the necessary circuits to transfer.
ENGIN112 L30: Random Access Memory November 14, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 30 Random Access Memory (RAM)
Memory and Programmable Logic
1 Lecture 16B Memories. 2 Memories in General Computers have mostly RAM ROM (or equivalent) needed to boot ROM is in same class as Programmable Logic.
Overview Memory definitions Random Access Memory (RAM)
CS 151 Digital Systems Design Lecture 30 Random Access Memory (RAM)
CENG 241 Digital Design 1 Lecture 12
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Hao Ji.
1 Lecture 16B Memories. 2 Memories in General RAM - the predominant memory ROM (or equivalent) needed to boot ROM is in same class as Programmable Logic.
Chapter 6 Memory and Programmable Logic Devices
1 The 8051 Microcontroller and Embedded Systems CHAPTER INTERFACING TO EXTERNAL MEMORY.
EKT 221 Digital Electronics II
EE 261 – Introduction to Logic Circuits Module #8 Page 1 EE 261 – Introduction to Logic Circuits Module #8 – Programmable Logic & Memory Topics A.Programmable.
Memory and Programmable Logic
Memory and Programmable Logic Dr. Ashraf Armoush © 2010 Dr. Ashraf Armoush.
EKT 221 : Digital 2 Memory Basics
Logic and Computer Design Dr. Sanjay P. Ahuja, Ph.D. FIS Distinguished Professor of CIS ( ) School of Computing, UNF.
SYEN 3330 Digital SystemsJung H. Kim 1 SYEN 3330 Digital Systems Chapter 9 – Part 1.
Chapter 5 Internal Memory. Semiconductor Memory Types.
Digital Electronics Chapter 7 Memory and Programmable Logic.
Memory and Programmable Logic Memory device: Device to which binary information is transferred for storage, and from which information is available for.
Memory and Storage Dr. Rebhi S. Baraka
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS 352: Digital Systems.
Memory System Unit-IV 4/24/2017 Unit-4 : Memory System.
Memory Intro Computer Organization 1 Computer Science Dept Va Tech March 2006 ©2006 McQuain & Ribbens Built using D flip-flops: 4-Bit Register Clock input.
Digital Logic Design Instructor: Kasım Sinan YILDIRIM
SEQUENTIAL CIRCUITS Component Design and Use. Register with Parallel Load  Register: Group of Flip-Flops  Ex: D Flip-Flops  Holds a Word of Data 
ECE DIGITAL LOGIC DESIGN CHAPTER – VI PART 2 PLA AND MEMORY DEVICES
Chapter 6: Internal Memory Computer Architecture Chapter 6 : Internal Memory Memory Processor Input/Output.
SKILL AREA: 1.2 MAIN ELEMENTS OF A PERSONAL COMPUTER.
Memory Cell Operation.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Dr. Shi Dept. of Electrical and Computer Engineering.
Memory Devices 1. Memory concepts 2. RAMs 3. ROMs 4. Memory expansion & address decoding applications 5. Magnetic and Optical Storage.
Wnopp Memory device Introduction n Memory Cell n Memory Word n Byte n Capacity n Address n Read Operation n Write Operation n Access Time n Volatile.
Digital Circuits Introduction Memory information storage a collection of cells store binary information RAM – Random-Access Memory read operation.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 8 – Memory Basics Logic and Computer Design.
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 22 Memory Definitions Memory ─ A collection of storage cells together with the necessary.
Chapter 5 Internal Memory. contents  Semiconductor main memory - organisation - organisation - DRAM and SRAM - DRAM and SRAM - types of ROM - types of.
Computer Architecture Chapter (5): Internal Memory
AHMEDABAD INSTITUTE OF TECHNOLOGY
Chapter 7 Memory and Programmable Logic
1 Chap 6. Memory and Programmable Devices Memory & Programmable Logic Device Definitions Memory –a collection of cells capable of storing binary.
Gunjeet Kaur Dronacharya Group of Institutions. Outline Introduction Random-Access Memory Memory Decoding Error Detection and Correction Programmable.
CENG 241 Digital Design 1 Lecture 13
Memory and Programmable Logic
William Stallings Computer Organization and Architecture 8th Edition
EE345: Introduction to Microcontrollers Memory
William Stallings Computer Organization and Architecture 7th Edition
William Stallings Computer Organization and Architecture 8th Edition
BIC 10503: COMPUTER ARCHITECTURE
Chapter 7 Memory and Programmable Logic
Memory Basics Chapter 8.
MICROPROCESSOR MEMORY ORGANIZATION
Memory Basics Chapter 7.
LAB 7.
Presentation transcript:

Gunjeet Kaur Dronacharya Group of Institutions

Outline I Random-Access Memory Memory Decoding Error Detection and Correction Read-Only Memory Programmable Devices Sequential Programmable Devices Introduction

Mass Memory Elements Memory is a collection of binary cells together with associated circuits needed to transfer information to or from any desired location. Two primary categories of memory: Random access memory (RAM) Read only memory (ROM)

Programmable Logic Device The binary information within the device can be specified in some fashion and then embedded within the hardware. Most of them are programmed by breaking the fuses of unnecessary connections. Four kinds of PLD are introduced: Read-only memory (ROM) Programmable logic array (PLA) Programmable array logic (PAL) Field-programmable gate array (FPGA)

Outline Introduction Random-Access Me Memory Decoding Error Detection and Correction Read-Only Memory Combinational Programmable Devices Sequential Programmable Devices Random Access memory

Random Access Memory A word is the basic unit that moves in and out of memory The length of a word is often multiples of a byte (=8 bits) Memory units are specified by its number of words and the number of bits in each word Ex: 1024(words) x 16(bits) Each word is assigned a particular address, starting from 0 up to 2k. 1 (k = number of address lines)

Write and Read Operations Write to RAM Apply the binary address of the desired word to the address lines. Apply the data bits that must be stored in memory to the data input lines. Activate the write control. Read from RAM. Apply the binary address of the desired word to the address lines. Activate the read control.

Timing Waveforms CPU clock = 50 MHz cycle time = 20 ns Memory access time = 50 ns. The time required to complete a read or write operation. The control signals must stay active for at least 50 ns 3 CPU cycles are required.

Types of Memories Access mode: Random access: any locations can be accessed in any order Sequential access: accessed only when the requested word has been reached (ex: hard disk) Operating mode: Static RAM (SRAM) Dynamic RAM (DRAM) Volatile mode: Volatile memory: lose stored information when power is turned off (ex: RAM) Non-volatile memory: retain its storage after removal of power (ex: flash, ROM, hard-disk,.)

SRAM vs. DRAM Static RAM: 1. Use internal latch to store the binary information. 2. Stored information remains valid as long as power is on. 3. Shorter read and write cycles 4. Larger cell area and power consumption. Dynamic RAM: 1.Use a capacitor to store the binary information. 2.Need periodically refreshing to hold the stored info. 3.Longer read and write cycles 4. Smaller cell area and power consumption.

Outline Introduction Random-Access Memory Memory Decoding Error Detection and Correction Read-Only Memory Combinational Programmable Devices Sequential Programmable Devices Memory Decoding

Memory Construction

Coincident Decoding Address decoders are often divided into two parts. A two-dimensional scheme. The total number of gates in decoders can be reduced. Can arrange the memory cells to a square shape. EX: 10-bit address 404 = X = (first five) Y = (last five)

Address Multiplexing Memory address lines often occupy too much I/O pads 64K = 16 lines 256M = 28 lines Share the address lines of X and Y domains Reduce the number of lines to a half An extra register is required for both domain to store the address Two steps to send address RAS=0: send row address CAS=0: send column address

Outline Introduction Random-Access Memory Memory Decoding Error Detection and Correction Read-Only Memory Combinational Programmable Devices Sequential Programmable Devices

Error Detection & Correction Memory arrays are often very huge. May cause occasional errors in data access. Reliability of memory can be improved by employing error- detecting and correcting codes. Error-detecting code: only check for the existence of errors Most common scheme is the parity bit. Error-correcting code: check the existence and locations of errors. Use multiple parity check bits to generate a syndrome that can indicate the erroneous bits. Complement the erroneous bits can correct the errors.

Hamming Code k parity bits are added to an n-bit data word The positions numbered as a power of 2 are reserved for the parity bits Ex: original data is (8-bit) ⇒ Bit position: P1 P2 1 P P P1 = XOR of bits (3,5,7,9,11) = 0 P2 = XOR of bits (3,6,7,10,11) =0 P4 = XOR of bits (5,6,7,12) = 1 P8 = XOR of bits (9,10,11,12) = 1 The composite word is (12-bit)

Hamming Code When the 12 bits are read from memory, the parity is checked over the same combination of bits including the parity bit C1 = XOR of bits (1,3,5,7,9,11) C2 = XOR of bits (2,3,6,7,10,11) C4 = XOR of bits (4,5,6,7,12) C8 = XOR of bits (8,9,10,11,12) ( ) " C = C8C4C2C1 = 0000 : no error ( ) " C = C8C4C2C1 = 0001 : bit 1 error ( ) " C = C8C4C2C1 = 0101 : bit 5 error

General Rules of Hamming Code The number of parity bits: The syndrome C with k bits can represent 2k. 1 error locations (0 indicates no error) 2k. 1 ≥ n + k " 2k. 1. k ≥ n The members of each parity bit: C1(P1): have a.1. in bit 1 of their location numbers 1(0001), 3(0011), 5(0101), 7(0111), 9(1001),. C2(P2): have a.1. in bit 2 of their location numbers 2(0010), 3(0011), 6(0110), 7(0111), 10(1010),. C: with parity bit; P: without parity bit itself

Extension of Hamming Code Original Hamming code can detect and correct only a single error. Multiple errors are not detected. Add an extra bit as the parity of total coded word. Ex: P13 (P13=XOR of bits 1 to 12). Still single-error correction but double-error detection. Four cases can occur: If C=0 and P=0, no error occurred If C≠0 and P=1, single error occurred (can be fixed) If C≠0 and P=0, double error occurred (cannot be fixed) If C=0 and P=1, an error occurred in the P13 bit