0% found this document useful (0 votes)
57 views7 pages

UNIT V Notes 1

The document summarizes memory units and programmable logic devices. It discusses: - RAM and ROM memory types, including how RAM can perform both read and write operations while ROM can only read. - Programmable logic devices (PLDs) like programmable logic arrays (PLAs) and programmable array logic (PALs) that allow logic functions to be specified through programming. - Memory decoding circuits that use address lines and decoders to select individual memory words for reading or writing.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views7 pages

UNIT V Notes 1

The document summarizes memory units and programmable logic devices. It discusses: - RAM and ROM memory types, including how RAM can perform both read and write operations while ROM can only read. - Programmable logic devices (PLDs) like programmable logic arrays (PLAs) and programmable array logic (PALs) that allow logic functions to be specified through programming. - Memory decoding circuits that use address lines and decoders to select individual memory words for reading or writing.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

UNIT V

Memory and Programmable Logic


RAM – Memory Decoding – Error Detection and Correction – ROM – Programmable Logic
Array – Programmable Array Logic – Sequential Programmable Devices.

INTRODUCTION

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.
• When data processing takes place, information from memory is transferred to selected
registers in the processing unit.
• Intermediate and final results obtained in the processing unit are transferred back to
be stored in memory.
• Binary information received from an input device is stored in memory, and
information transferred to an output device is taken from memory.
• A memory unit is a collection of cells capable of storing a large quantity of binary
information.

Types of memories
There are two types of memories that are used in digital systems:
• Random‐Access Memory (RAM)
• Read‐Only Memory (ROM)
RAM
• RAM stores new information for later use.
• The process of storing new information into memory is referred to as a memory write
operation.
• The process of transferring the stored information out of memory is referred to as a
memory read operation.
• RAM can perform both write and read operations.
ROM
• ROM can perform only the read operation.
• This means that suitable binary information is already stored inside memory and can
be retrieved or read at any time.
• However, that information cannot be altered by writing.
PLD(Programmable Logic Device)
• A PLD is an integrated circuit with internal logic gates connected through electronic
paths that behave similarly to fuses.
• The binary information that is stored within such a device is specified in some fashion
and then embedded within the hardware in a process is referred to as programming
the device.
• The word “programming” here refers to a hardware procedure which specifies the bits
that are inserted into the hardware configuration of the device.
• In the original state of the device, all the fuses are intact.
• Programming the device involves blowing those fuses along the paths that must be
removed in order to obtain the particular configuration of the desired logic function.
• A typical PLD may have hundreds to millions of gates interconnected through
hundreds to thousands of internal paths.
Examples of PLD
• ROM -OR
• Programmable Logic Array (PLA) AND - OR
• Programmable Array Logic (PAL) AND
• Field‐Programmable Gate Array (FPGA)
Conventional and array logic diagrams for OR gate

I.RANDOM-ACCESS MEMORY
• A memory unit is a collection of storage cells, together with associated circuits needed
to transfer information into and out of a device.
• The architecture of memory is such that information can be selectively retrieved from
any of its internal locations.
• The time it takes to transfer information to or from any desired random location is
always the same—hence the name random‐access memory, abbreviated RAM.
• In contrast, the time required to retrieve information that is stored on magnetic tape
depends on the location of the data.
• A memory unit stores binary information in groups of bits called words .
• Data is transferred into and out of memory in terms of words.
• A memory word is a group of 1’s and 0’s and may represent a number, an instruction,
one or more alphanumeric characters, or any other binary‐coded information.
• A group of 8 bits is called a byte .
• 16‐bit word contains two bytes,
• 32‐bit word is made up of four bytes.
• The capacity of a memory unit is usually stated as the total number of bytes that the
unit can store.
• Communication between memory and its environment is achieved through data input
and output lines, address selection lines, and control lines that specify the direction of
transfer.

Fig: Block diagram of a memory unit using 2kxn decoder


 The n data input lines provide the information to be stored in memory, and the n data
output lines supply the information coming out of memory.
• The k address lines specify the particular word chosen among the many
available.
• The two control inputs specify the direction of transfer desired:
1. The Write input causes binary data to be transferred into the memory,
and
2. The Read input causes binary data to be transferred out of memory.
 The memory unit is specified by the number of words it contains and the number of
bits in each word.
 The address lines select one particular word.
 Each word in memory is assigned an identification number, called an address, starting
from 0 up to 2k – 1 , where k is the number of address lines.
 An internal decoder accepts this address and opens the paths needed to select the word
specified.
 the number of words (or bytes) in memory with one of the letters K (kilo), M (mega),
and G (giga).
o K is equal to 210 = 1024 bytes
o M is equal to 220
o G is equal to 230
o Thus, 64K = 216, 64x 210 =26 x 210 = 216
o 2M = 221 , and 4G = 232
Consider, for example, a memory unit with a capacity of 1K words of 16 bits each. Find
the number of bytes accommodated by the memory.
1Kx16
1024 bytes x2 bytes
2048 bytes or 2x 1024 bytes = 2K bytes

Write Operations
1. Apply the binary address of the desired word to the address lines.
2. Apply the data bits that must be stored in memory to the data input lines.
3. Activate the write input.
The memory unit will then take the bits from the input data lines and store them in the
word specified by the address lines.
Read Operations
1. Apply the binary address of the desired word to the address lines.
2. Activate the read input.
The memory unit will then take the bits from the word that has been selected by the
address and apply them to the output data lines.

Commercial memory components available in integrated‐circuit chips


sometimes provide the two control inputs for reading and writing
1. Memory Enable
2. Read/Write

Types of Memories
• Static RAM (SRAM)
• Dynamic RAM (DRAM)
Static RAM (SRAM)
• Static RAM (SRAM) consists essentially of internal latches that store the binary
information.
• The stored information remains valid as long as power is applied to the unit.
Dynamic RAM (DRAM)
• Dynamic RAM (DRAM) stores the binary information in the form of electric charges
on capacitors provided inside the chip by MOS transistors.
• The stored charge on the capacitors tends to discharge with time, and the capacitors
must be periodically recharged by refreshing the dynamic memory.
• Refreshing is done by cycling through the words every few milliseconds to restore
the decaying charge.

SRAM Vs DRAM
• DRAM offers reduced power consumption and larger storage capacity in a single
memory chip.
• SRAM is easier to use and has shorter read and write cycles.
Volatile Vs Non-volatile memory
• Memory units that lose stored information when power is turned off are said to be
volatile .
• RAM-volatile
• A nonvolatile memory, such as magnetic disk, retains its stored information after the
removal of power.
• ROM – non-volatile
Masked ROM
Programmable ROM
Erasable PROM
Electrically EPROM

II. MEMORY DECODING


Decoding circuits are used to select the memory word specified by the input address
Internal Construction of RAM
• The internal construction of a RAM of m words and n bits per word consists of m * n
binary storage cells and associated decoding circuits for selecting individual words.
• The binary storage cell is the basic building block of a memory unit.
• m = 2 power k

Fig:Logic diagram of memory cell


Storage part of a cell is modeled by a SR latch with associated gates to form a D latch.

Fig:Block Diagram of memory cell


• A cell is an electronic circuit with four to six transistors.
• A binary storage cell must be very small in order to be able to pack as many cells as
possible in the small area available in the integrated circuit chip.
• The binary cell stores one bit in its internal latch.
• The select input enables the cell for reading or writing, and the read/write input
determines the operation of the cell when it is selected.
• A 1 in the read/write input provides the read operation by forming a path from the
latch to the output terminal.
• A 0 in the read/write input provides the write operation by forming a path from the
input terminal to the latch.
Diagram of a 4 * 4 RAM
2kxn RAM
m= 2k
mxn RAM= m words
Each word contains n bits
requires mxn cells
4x4 RAM= 4 words
Each word contains 4 bits
requires 4x4 cells
Memory with 2k words of n bits per word requires: k address lines that go into a k * 2k
decoder.
Each one of the decoder outputs selects one word of n bits for reading or writing.
4x4 RAM
K=2 address lines-2 Decoder- 2x4

2kxn RAM
Memory with 2k words of n bits per word requires: k address lines that go into a k * 2k
decoder.
4x4 RAM 22x4 RAM
2 address lines that go into a 2* 22 decoder.

Fig: Diagram of a 4 * 4 RAM


Coincident Decoding
• A decoder with k inputs and 2k outputs requires 2k AND gates with k inputs per gate.
• The total number of gates and the number of inputs per gate can be reduced by
employing two decoders in a two‐dimensional selection scheme.
• In this configuration, two k /2‐input decoders are used instead of one k ‐input decoder.
• One decoder performs the row selection and the other the column selection in a two‐
dimensional matrix configuration.
• Decoding Structure for 1K word memory:
1K=1024 bytes=210
Need a kx2K decoder
10x 1024 decoder
Instead of a k input decoder use two k/2 input decoder
K=10,k/2=5
5- input decoder
5x25 decoder
So, we need two 5x25 decoder

Fig: Two‐dimensional decoding structure for a 1K‐word memory


Address Multiplexing
• To build memories with higher density, it is necessary to reduce the number of
transistors in a cell.
• To reduce the number of pins in the IC package, designers utilize address
multiplexing whereby one set of address input pins accommodates the address
components.
• In a two‐dimensional array, the address is applied in two parts at different times, with
the row address first and the column address second.
• Since the same set of pins is used for both parts of the address, the size of the
package is decreased significantly.
Fig: Address multiplexing for a 64K DRAM
• The memory consists of a two‐dimensional array of cells arranged into 256 rows by
256 columns, for a total of 64K words.
• There is a single data input line, a single data output line, and a read/write control, as
well as an eight‐bit address input and two address strobes, the latter included for
enabling the row and column address into their respective registers.
• The row address strobe (RAS) enables the eight‐bit row register, and the column
address strobe (CAS) enables the eight‐bit column register.
• The bar on top of the name of the strobe symbol indicates that the registers are
enabled on the zero level of the signal.
16‐bit address is applied to the DRAM in two steps using RAS and CAS
• Initially, both strobes are in the 1 state.
• The 8‐bit row address is applied to the address inputs and RAS is changed to 0.
• This loads the row address into the row address register.
• RAS also enables the row decoder so that it can decode the row address and select one
row of the array.
• After a time equivalent to the settling time of the row selection, RAS goes back to the
1 level.
• The 8‐bit column address is then applied to the address inputs, and CAS is driven to
the 0 state.
• This transfers the column address into the column register and enables the column
decoder.
• Now the two parts of the address are in their respective registers, the decoders have
decoded them to select the one cell corresponding to the row and column address, and
a read or write operation can be performed on that cell.
• CAS must go back to the 1 level before initiating another memory operation.

You might also like