Memory and Programmable Logic

Slides:



Advertisements
Similar presentations
Random-Access Memory (RAM)
Advertisements

Computer Organization and Architecture
Computer Organization and Architecture
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Chapter 3 – Combinational.
+ CS 325: CS Hardware and Software Organization and Architecture Internal Memory.
Chapter 7 Memory and Programmable Logic
Parity. 2 Datasheets TTL:  CMOS: 
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)
©Brooks/Cole, 2003 Chapter 5 Computer Organization.
ECE 301 – Digital Electronics
Memory Key component of a computer system is its memory system to store programs and data. ITCS 3181 Logic and Computer Systems 2014 B. Wilkinson Slides12.ppt.
Programmable Array Logic (PAL) Fixed OR array programmable AND array Fixed OR array programmable AND array Easy to program Easy to program Poor flexibility.
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
Random-Access Memory (RAM)
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.
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 Interface A Course in Microprocessor Electrical Engineering Dept. University of Indonesia.
Internal Memory.
Digital Logic Design Instructor: Kasım Sinan YILDIRIM
ECE DIGITAL LOGIC DESIGN CHAPTER – VI PART 2 PLA AND MEMORY DEVICES
1 Memory Design EE 208 – Logic Design Chapter 7 Sohaib Majzoub.
Memory Cell Operation.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Dr. Shi Dept. of Electrical and Computer Engineering.
IC design options PLD (programmable logic device)
Digital Circuits Introduction Memory information storage a collection of cells store binary information RAM – Random-Access Memory read operation.
Gunjeet Kaur Dronacharya Group of Institutions. Outline I Random-Access Memory Memory Decoding Error Detection and Correction Read-Only Memory Programmable.
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.
Programmable Logic Devices
Gunjeet Kaur Dronacharya Group of Institutions. Outline Introduction Random-Access Memory Memory Decoding Error Detection and Correction Programmable.
UNIT V Programmable Devices. RAM A RAM constitutes the internal memory of the CPU for storing data, program and program result. It is read/write memory.
CENG 241 Digital Design 1 Lecture 13
Prof. Hsien-Hsin Sean Lee
Digital Design Lecture 14
Chapter 5 Internal Memory
William Stallings Computer Organization and Architecture 7th Edition
Internal Memory.
Logic and Computer Design Fundamentals
Memory Units Memories store data in units from one to eight bits. The most common unit is the byte, which by definition is 8 bits. Computer memories are.
William Stallings Computer Organization and Architecture 7th Edition
Electronics Technology
ECE 434 Advanced Digital System L03
William Stallings Computer Organization and Architecture 8th Edition
CPE/EE 422/522 Advanced Logic Design L02
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
حافظه و منطق قابل برنامه ریزی
Introduction to Computing Chapter 0
Chapter 7 Memory and Programmable Logic
Memory Basics Chapter 8.
Memory Basics Chapter 7.
William Stallings Computer Organization and Architecture 8th Edition
Semiconductor memories are classified in different ways. A distinction is made between read-only (ROM) and read-write (RWM) memories. The contents RWMs.
Presentation transcript:

Memory and Programmable Logic Mano & Ciletti Chapter 7 By Suleyman TOSUN Ankara University

Outline RAM Memory decoding Error detection and correction ROM Programmable Logic Array (PLA) Programmable Array Logic (PAL)

Memories Memory unit is a collection of cells capable of storing a large quantity of binary information. Information from input device is stored in memory Information to output is taken from memory Two types of memories Random-access memory (RAM) Stores binary info for later use Write operation: Storing data into memory Read operation: Transferring data out of memory Read-only memory (ROM) Can perform only read operation

RAM vs ROM ROM is a programmable logic device (PLD). The binary information is embedded within the hardware. Other programmable devices Programmable logic array (PLA) Programmable array logic (PAL) Field programmable gate array (FPGA) Since PLDs have a lot of gates and paths, gates in array logic is shown in different way.

Random-Access Memory (RAM) The time it takes to transfer to or from any random location always the same That’s why the name random access memory. In magnetic tapes, the time depends on the location of the data.

Word size 4 bits - nibble 8 bits - byte 16 bits – 2 bytes Most computer uses multiples of 8 bits The capacity of a memory is stated as the total number of bytes.

A memory unit Communication between memory and its environment is achieved by Data input and output lines Address selection lines Control lines

Address Each word is assigned to an address Ranges from 0 to 2k-1, where k is the number of address lines Internal decoder decodes the address for specific word. Memory size vs address lines 10 bits (k=10) can address 210 words 32 bits, 232 words

Memory addressing A memory with 1K words of 16 bits each

Read and Write Operations To read data Put the binary address on the address lines Activate read input To write data Put binary address on the address lines Put data on data input lines Activate write input

Write cycle

Read cycle

Types of memories Static RAM (SRAM) Dynamic RAM (DRAM) Consists of latches to store binary data Stored data is valid as long as power is applied Easier to use Shorter write and read cycles Dynamic RAM (DRAM) Stores data in the form of electric charges on capacitors (MOS transistors). It must be refreshed periodically. Has less power consumption Larger storage capacity.

Volatile vs Nonvolatile SRAMs and DRAMs are volatile memories Since they loose data when power is turned off Magnetic disks are nonvolatile They store data using magnetization.

Memory Decoding Decoders are used to select word locations. A memory with m words and n bits per word requires mxn storage cells. A basic cell is behaves like D latch (4 to 6 transistors) When read/write=1, read operation When read/write=0, write operation

4x4 RAM 4 words needs 2 address lines to be decoded 2k words needs k address lines

Coincident decoding A decoder with k inputs and 2k output requires 2k AND gates with k inputs per gate. Use two decoders to reduce this (two dimensional decoding) Two decoders with k/2 inputs 2x32=64 AND gates instead of 1024 AND gates (for 10 bits) 32x32 memory cell array

Error Detection and Correction Use parity bits Error correction Use multiple parity bits Each parity is generated for a group of bits If check parity bits are correct No error If check bit/bits are not correct They give a pattern (called syndrome) that gives which bit is incorrect.

Hamming Code K parity bits are added to n bit data Bit positions are numbered from 1 to n+k (no 0) Parity bits are positioned as powers of 2. Remaining bits are data bits. Example: data word is 11000100 (8 bit)

Parity generation

Parity check C=C8C4C2C1 If C=0, no error If C!=0, error (C gives the erroneous bit position)

Single error correction, Double error detection Add additional parity bit (P13)

ROM Only read occurs K inputs and n outputs Nonvolatile

32x8 bit ROM 32 words of 8 bits each. 2kxn ROM has kx2k decoder and n OR gates

Combinational Circuit Implementation Similar to design procedure of circuits with decoders and OR gates as we have seen in Chapter 4. We have decoders and OR gates inside of the ROM.

Design example B1=0 B0=A0

Types of ROMs ROM-mask programming PROM (programmable ROM) Fill out the truth table, manufacturer makes the mask to produce 0’s and 1’s. PROM (programmable ROM) Can be programmed in a lab by blowing the fuses (all fuses initially intact) EPROM (Erasable PROM) Program it then erase under ultraviolet light. EEPROM or E2PROM(Electrically erasable PROM) Can be programmed and erased electrically.

Combinational PLDs

Programmable Logic Array Similar to PROMS except that decoder is replaced with AND gates. AND gates are connected to OR gates to produce sum-of-product terms.

An example PLA circuit F1=AB’+AC+A’BC’ F2=(AC+BC)’

Fuse Map - means not connected, 1 means connected, 0 means complement is connected. T means true (for XOR) C means complement (for XOR)

Example

Programmable Array Logic (PAL) Fixed OR array and programmable AND array. Figure shows 4 input 4 output PAL

Design example PALs may need simplifications as z includes w in this example.

Sequential Programmable Devices Needs flip-flops Types

SPLD

Basic Macrocell Logic