UNIT V Notes 1
UNIT V Notes 1
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.
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.
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
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.