Chapter 7 Memory and Programmable Logic
Chapter 7 Memory and Programmable Logic
Chapter No 7
Topics
Random Access Memory (RAM) Memory Decoding Read-Only Memory (ROM) Programmable Logic Array (PLA) Programmable Array Logic (PAL) Sequential Programmable Devices
MEMORY UNIT
A memory unit is a device to which binary information is transferred for storage and from which information is retrieved when needed for processing. A memory unit is a collection of cells capable of storing a large quantity of binary information.
3
Types of memories
There are two types of memories that are used in digital systems
Random Access Memory Read Only Memory
The process of storing new information into memory is referred to as a memory write information and the process of transferring the stored information out of memory is referred to as memory read operation. RAM can perform both write and read operation while ROM allows only read operation.
4
ROM
ROM is a Programmable Logic Device (PLD) As the ROM can only perform read operation, it means a suitable binary information is already stored (In a process called programming the device) inside the memory, which can be retrieved or read at any time. However, the existing information cannot be altered by writing because the ROM can only read; it cannot write. Programming means that the hardware procedure which specifies the bits that are inserted into the hardware configuration of the device.
5
Memory
RAM
Write and Read from the system
ROM
Read from the system Written during configuration
It is customary to refer to the number of words (or bytes) in a memory with one of the letters K(kilo) = 210, M(mega) = 220, or G(giga) = 230 8 For Example: 4K = 212, 16M = 224, 8G = 233
Memory Control
10
12
13
14
Type of Memories
There are two type of memories
Random Access Memory Sequential Access Memory
ROMs
Non Volatile Memory
CD (PROM) RW/CD (EPROM) Memory Sticks (EEPROM)
15
RAM TYPES - I
Following are different type of RAMs DRAM (Dynamic RAM)
Must be constantly refreshed by CPU or it will lose its information
RAM TYPES - II
RDRAM (Rambus Dynamic RAM)
Faster and more expensive than RDRAM Used in P-IV PCs
17
Quiz
18/1/12
It is required to generate six repeated timing signals T0 through T5. Design a circuit using Flip Flops Only A Counter and a Decoder Max Time: 10 mins
18
Memory Decoding
In addition to the storage components in a memory unit, there is a need for decoding circuits to select the memory word specified by the input address Block diagram of a memory cell
Binary Cell Enables the cell for Reading and Writing
Memory Cell
Logic diagram of 1 Bit storage Cell
0 1
X 0 X 0 0 X X 1 0 0 1 10
X 1
1 X 0
Read = 1 Write = 0
20
4 4 (22 X 4) RAM
A memory with 2k words of n bits per word would require k address lines that goes into a k X 2k decoder
0 0
21
Coincident Decoding
A decoder with k inputs and 2k outputs requires 2k AND gates with k inputs per gate, the number of inputs and number of gates can be reduced by employing two decoders in a 2D selection scheme Two k/2 input decoders are used instead of k input decoder One performs row selection while other perform column selection
22
Coincident Decoding
Two dimensional decoding structure for a 1K (210) word memory
Two 5x32 decoders instead of one 10x1024 decoder 5 MSBs of memory address goes into X
1 0 1 0 0
0 1 1 0 0
23
24
25
32 x 8 = 256 connections
27
28
29
30
Types of ROM
Mask Programming
Done during the fab process
32
33
If a variable in the product term appear in its true form, the input variable is 1 If a variable in the product term appear in its compliment form, the input variable is 0 34 If the variable is not there in the product term, the input variable is -
36
37
Complex Programmable Logic Device (CPLD) Field Programmable Gate Array (FPGA)
38
The configuration mostly used for SPLD is the combinational PAL together with D flip flops Each section of the SPLD is called a Macrocell
A macrocell is a circuit that contains a SOP combinational logic function and an optional flip flop 39
SPLD Macrocell
Complex PLDs
The design of a digital system using PLD often requires the connection of several devices to produce the complete specifications. 8-16 macrocells It is more economical to use a CPLD
41
43