Logic Assignment 2-1
Logic Assignment 2-1
Semiconductor Memory
Memory Capacity: The number of bits that a semiconductor memory chip can
store is called chip capacity. It can be in units of Kbits (kilobits), Mbits (megabits),
and so on. This must be distinguished from the storage capacity of computer
systems. While the memory capacity of a memory IC chip is always given in bits,
the memory capacity of a computer system is given in bytes. If a 16M memory
chip is present, then 16 megabits is stored in the semiconductor memory. If a
computer comes with 16M memory, 16 megabytes can be stored which means that
16 words are stored, each with the capacity of 8 bits.
Memory Organization
Memory chips are organized into a number of locations within the IC. Each
location can hold 1 bit, 4 bits, 8 bits, or even 16 bits, depending on how it is
designed internally. The number of locations within a memory IC depends on the
address pins. The number of bits that each location can hold is always equal to the
number of data pins. In general, if x is the number of address lines in a memory
chip, it contains 2 x locations. Dynamic RAMs (DRAMs) are exceptions to this as
indicated. Each location contains y bits, where y is the number of data pins on the
chip. The entire chip will contain 2x × y bits.
Example for memory organization
A 512K memory chip has 8 pins for data. Find: (a) The organization, and (b) the
number of address pins for this memory chip. Solution: (a) A memory chip with 8
data pins means that each location within the chip can hold 8 bits of data. To find
the number of locations within this memory chip, divide the capacity by the
number of data pins. 512K/8 = 64K; therefore, the organization for this memory
chip is 64K × 8. (b) The chip has 16 address lines since 216= 64K.
Speed
The speed of the memory chip is commonly referred to as its access time. The
access time of a memory chip varies from a few nanoseconds to hundreds of
nanoseconds, depending on the IC technology used in the design and fabrication
process.
ROM (read-only memory): ROM is a type of memory that does not lose its
contents when the power is turned off. For this reason, ROM is also called
nonvolatile memory. There are different types of read-only memory. They are:
✓ PROM
✓ EPROM
✓ EEPROM
✓ Flash EPROM
✓ Mask ROM
PROM (programmable ROM) and OTP: For every bit of the PROM, there
exists a fuse. PROM is programmed by blowing the fuses. If the information
burned into PROM is wrong, that PROM must be discarded since its internal fuses
are blown permanently.
✓ PROM is also referred to as an OTP (one-time programmable) device.
✓ Programming ROM, also called burning ROM, requires special equipment
called a ROM burner or ROM programmer.
EPROM(Erasable Programmable ROM) and UV-EPROM: EPROM was
invented to allow making changes in the contents of PROM after it is burnt.
✓ In EPROM, one can program the memory chip and erase it thousands of times.
A widely used EPROM is called UVEPROM.
✓ UV stands for ultra-violet. The only problem with UV-EPROM is that erasing
its contents can take up to 20 minutes. All UV-EPROM chips have a window that
is used to shine ultraviolet (UV) radiation to erase its contents. The major
disadvantage of UV-EPROM, is that it cannot be programmed while in the system
board
EEPROM(Electrically Erasable Programmable ROM) : EEPROM has several
advantages over EPROM. Its method of erasure is electrical and therefore instant,
as opposed to the 20-minute erasure time required for UVEPROM. One can select
which byte is to be erased, in contrast to UV-EPROM, in which the entire contents
of the ROM are erased. One can program and erase its contents while it is still in
the system board. EEPROM does not require an external erasure and programming
device. The designer incorporates into the system board the circuitry to program
the EEPROM.
RAM(Random Access Memory) : RAM memory is called volatile memory since
cutting off the power to the IC will result in the loss of data. Sometimes RAM is
also referred to as RAWM (read and write memory), in contrast to ROM, which
cannot be written to. There are three types of RAM:
✓ Static RAM (SRAM),
✓ NV-RAM (nonvolatile RAM), and
✓ Dynamic RAM (DRAM).
SRAM (static RAM) : Storage cells in static RAM memory are made of flip-flops.
Therefore, they do not require refreshing in order to keep their data. This is in
contrast to DRAM.
DRAM (Dynamic RAM): DRAM (dynamic RAM) uses a capacitor to store each
bit. It requires constant refreshing due to leakage of charge from the capacitor.
Packaging issue in DRAM: In DRAM there is a problem of packing a large
number of cells into a single chip with the normal number of pins assigned to
addresses. To solve this problem, multiplexing is used. Column address and row
address are multiplexed onto the same pins here. Row Address Strobe (RAS) and
Column Address Strobe (CAS) are used to indicate whether the row address or the
column address are carried on the address lines. This requires only half the number
of address pins. As shown , in the 256Kx1 DRAM, the address lines A0 to A8 are
used along with RAS and CAS to carry row address and column address
respectively. Thus with 9 pins we can address 256K locations
Non-volatile random-access memory (NVRAM) NVRAM is random-access
memory that retains its information when power is turned off (non-volatile). This is
in contrast to dynamic, random-access memory(DRAM) and static random-access
memory (SRAM), which both maintain data only for as long as power is applied.
The best-known form of NVRAM memory today is flash memory.
Memory Address Decoding Large capacity memories are constructed using
smaller blocks of memories. Hence the required block has to be selected based on
the memory address. This is done by decoding the memory addresses. There are
three ways to generate a memory block selector a) using simple logic gates, b)
using a decoder, such as, 74LS138, and c) using the programmable logic. We
discuss the first two methods here.
Decoder using NAND and other gates.
4K*8 memory chip Decoder with NAND and other gates. There are twelve address
lines from A0-A11 for accessing the location and data lines from D0-D7.CS, RD
and WR are the control signals. CS is the Chip select pin which is enabled by the
address lines A15 to A12. If RD is set to 0, then we can read the Content, and if
WR is set to 0, we can write into the chip. The chip select can be enabled by giving
the address lines A15-A12=0011. This will correspond to an address range of 3000
to 3FFFH.
Semiconductor memory can be divided into two main categories: volatile and non-
volatile memory. Volatile memory, such as dynamic random-access memory
(DRAM) and static random-access memory (SRAM), requires power to retain
stored data. Non-volatile memory, such as read-only memory (ROM), flash
memory, and Electrically Erasable Programmable Read-Only Memory
(EEPROM), can retain data even when power is turned off. Various differences
between volatile and non-volatile memory are there.
Classification OF Memories
1)Registers :
✓ fastest
2) Primary memory:
✓ Ram:
⁃ Both read and write operation
⁃ Volatile
⁃ Random access
✓ Rom:
⁃ Only read
⁃ Non-volatile
⁃ Random access
3) Secondary memory:
✓ Serial Access:
⁃ Magnetic type
⁃ Ferrite core
✓ Semi-random Access:
⁃ CD
⁃ HD
⁃ DVD
⁃ FD
1) Random Access Memory (RAM): RAM is a type of volatile memory that can be
read and written to. RAM is used as temporary storage for data and program
instructions when the computer is running. As the names suggest, the RAM or
random access memory is a form of semiconductor memory technology that is
used for reading and writing data in any order - in other words as it is required by
the processor. It is used for such applications as the computer or processor memory
where variables and other stored and are required on a random basis. Data is stored
and read many times to and from this type of memory. Random access memory is
used in huge quantities in computer applications as current day computing and
processing technology requires large amounts of memory to enable them to handle
the memory hungry applications used today. Many types of RAM including
SDRAM with its DDR3, DDR4, and soon DDR5 variants are used in huge
quantities.
a. Static RAM (SRAM): SRAM is a type of RAM that uses flip-flops to store each
bit of data. SRAM is faster and more expensive than DRAM. Static Random
Access Memory. This form of semiconductor memory gains its name from the fact
that, unlike DRAM, the data does not need to be refreshed dynamically.
These semiconductor devices are able to support faster read and write times than
DRAM (typically 10 ns against 60 ns for DRAM), and in addition its cycle time is
much shorter because it does not need to pause between accesses.
However SRAM chips consume more power, they are less dense and more
expensive than DRAM. As a result of this SRAM is normally used for caches,
while DRAM is used as the main semiconductor memory technology.
b. Dynamic RAM (DRAM): DRAM is a type of RAM that uses capacitors to store
each bit of data. DRAM is slower and less expensive than SRAM. Dynamic RAM
is a form of random access memory. DRAM uses a capacitor to store each bit of
data, and the level of charge on each capacitor determines whether that bit is a
logical 1 or 0.
However these capacitors do not hold their charge indefinitely, and therefore the
data needs to be refreshed periodically. As a result of this dynamic refreshing it
gains its name of being a dynamic RAM. DRAM is the form of semiconductor
memory that is often used in equipment including personal computers and
workstations where it forms the main RAM for the computer. The semiconductor
devices are normally available as integrated circuits for use in PCB assembly in the
form of surface mount devices or less frequently now as leaded components.
As can be seen, these two types of memory are very different, and as a result they
are used in very different ways.
Each of the semiconductor memory technologies outlined below falls into one of
these two types of category. each technology offers its own advantages and is used
in a particular way, or for a particular application.
Like other types of PROM, EEPROM retains the contents of the memory even
when the power is turned off. Also like other types of ROM, EEPROM is not as
fast as RAM.
To erase and re-programme areas of the chip, programming voltages at levels that
are available within electronic equipment are used. It is also non-volatile, and this
makes it particularly useful. As a result Flash memory is widely used in many
applications including USB memory sticks, compact Flash memory cards, SD
memory cards and also now solid state hard drives for computers and many other
applications.
b. NAND Flash: NAND gate flash is used for data storage. It has a faster write
speed but a slower read speed.
Registers are memories located within the Central Processing Unit (CPU). Various
types of registers are available within the CPU. Registers are small but the CPU
can access them quickly. Some of the registers available in the system are given
below.
• Instruction Register
• Status Register
• Refreshing is required.
Advantages of Static RAM Over Dynamic RAM
Static RAM and Dynamic RAM both are types of Read Acess Memory. It can be
used for the purpose of data storage. Here few differences between SRAM and
DRAM are discussed below.
• The access time of SRAM is less and thus these memories are
faster memories.
Classification of ROM
1. Mask-programmed ROM: The required contents of the memory are
programmed during fabrication. Data stored this way can never be altered. It
can be implemented using Fixed AND Fixed OR Circuit.
Programmable logic devices are a special type of IC. Different types of logic
functions can be implemented using a single programmed IC chip of PLD. PLDs
can be reprogrammed because these are based on rewritable memory technologies.
PLDs are divided into three types. They are PLA, PAL, and FPGA.
• The AND and OR gates are fixed for any PLA chip.
Other forms of memory are seen around the home in the form of USB memory
sticks, Compact Flash, CF cards or SD memory cards for cameras and other
applications as well as solid state hard drives for computers.
The semiconductor devices are available in a wide range of formats to meet the
differing PCB assembly and other needs