Unit 5
Unit 5
Unit 5
Memory is the most essential element of a computing system because without it computer can’t
perform simple tasks. Both types of memory (RAM and ROM) are important for the computer,
but they serve different purposes. RAM is used to store data that the computer is currently
using, while ROM is used to store data that the computer needs to boot and operate. RAM is
faster than ROM, as the data stored in it can be accessed and modified in any order, while data
stored in ROM can only be read.
Computer memory is of two basic types:
1. Primary memory (RAM and ROM)
2. Secondary memory (Hard Drive, CD, etc).
What is RAM?
Random Access Memory, is a type of computer memory that allows data to be read and written
randomly, meaning that the computer can access any location in the memory directly rather
than having to read the data in a specific order. This makes RAM an essential component of a
computer system, as it enables the CPU to access data quickly and efficiently.
RAM is volatile in nature, which means if the power goes off, the stored information is lost.
RAM is used to store the data that is currently processed by the CPU. Most of the programs
and data that are modifiable are stored in RAM.
DRAM cell
The below table lists some of the differences between SRAM and DRAM
.
SRAM DRAM
SRAM stands for Static Random Access DRAM stands for Dynamic Random
Memory. Access Memory.
SRAM has a lower access time, so it is faster DRAM has a higher access time, so it is
compared to DRAM. slower than SRAM.
SRAM has long data life. DRAM has short data life.
SRAM provides faster speed of data DRAM provides slower speed of data
read/write. read/write.
Due to complex internal circuitry, less Due to the small internal circuitry in the
storage is available compared to the same one-bit memory cell of DRAM, a large
physical size of a DRAM memory chip. storage capacity is available.
SRAM has low packaging capacity. DRAM has a high packaging density.
SRAM does not require refresh time. DRAM requires periodic refresh time.
SRAMs are used as cache memory in DRAMs are used as main memory in
computer and other computing devices. computer systems.
Application:
Random access memory (RAM) is a computer's short-term memory that's used for many
applications, including:
• Multitasking: RAM allows you to run multiple applications at once without your
computer slowing down.
• Loading applications: RAM helps your computer load applications quickly.
• File handling: RAM helps you edit and process large files, like videos or images, more
smoothly.
• Web browsing: RAM allows you to open more browser tabs at once without your
computer slowing down.
• Gaming: Modern games often require a lot of RAM to run well.
Read Only Memory (ROM) is a type of computer memory that is used to permanently store
data that does not need to be modified. ROM is non-volatile memory, which means that the
data stored in it is retained even when the power is turned off. ROM is typically used to store
the computer’s BIOS (basic input/output system), which contains the instructions for booting
the computer, as well as firmware for other hardware devices.
• Stores crucial information essential to operate the system, like the program essential to
boot the computer.
• It is non-volatile.
• Always retains its data.
• Used in embedded systems or where the programming needs no change.
• Used in calculators and peripheral devices.
• ROM is further classified into four types- M ROM , PROM , EPROM , and EEPROM .
Application:
Read-Only Memory (ROM) has many applications, including:
• Computers: ROM stores the BIOS and other low-level software that's needed to boot
up the computer, such as hardware initialization routines and self-test procedures.
• Smartphones: ROM is used to start up the system on modern smartphones.
• Video games: ROM is used in gaming consoles and games for systems that use
cartridges.
• Other devices: ROM is used in many other devices, including digital watches, video
cassette recorders (VCRs), digital versatile discs (DVDs), graphing calculators, digital
speed meters, smart TVs, washing machines, microwaves, induction stoves, and TV
remote controls.
• Firmware: ROM stores firmware for self-contained devices like hard disk drives,
solid-state drives, optical disc drives, and TFT screens.
PLA is a programmable logic device. PLA consist of two level AND-OR configuration. The
input are applied to the AND matrix through input buffer and output buffer of AND matrix is
applied to the OR matrix. The input of two or more PLA devices should be connected
individually in parallel, then this connection the Number of input and the number of product
terms will remain unchanged but the Number of output lines is increased
. The size of PLA specified as I*P*O
. I= denotes the number of input. P = corresponds to the no of product terms. O= denotes the
number of output.
Key components of a PLA:
• Input Buffer:
Provides the input signals to the AND array in both true and complemented forms.
• AND Array:
A matrix of programmable AND gates where each row represents a product term (combination
of input variables) that can be selected by connecting specific input lines.
• OR Array:
A matrix of OR gates where the outputs from the AND array are connected to create the final
output based on the selected product terms.
Combinational Logic Design using PLA
In the field of digital electronics, the PLAs are extensively used for designing combinational
logic circuits. The greatest advantage of designing combinational circuits using PLAs is that
PLA consist of programmable AND and OR arrays which allows to implement custom desired
logic functions.
The step-by-step procedure to design a combinational logic circuit using PLAs is explained
below −
Step 1 − Develop a PLA program table that shows the inputs, product terms, and outputs.
Step 2 − Design the AND matrix that can generate the desired product terms.
Step 3 − Design the OR matrix that can generate the desired output.
Step 4 − Design the invert/non-invert matrix to set the active-low or active-high output.
Step 5 − Finally, program the PLA by utilizing the PLA program table.
Example :Design a full-adder circuit using programmable logic array (PLA).
A full-adder consists of three-inputs and two outputs. Since it has 3 inputs, thus there are total
8 product terms which are given in the following truth table of the full adder −
Inputs Outputs
A B Cin S Cout
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
From this truth table, the output sum (S) and the output carry (Cout) are given by,
From these two Boolean expressions, we can see that there are seven product terms and two
sum terms. The PLA program table for this full-adder circuit is shown below –
In this PLA program table, "1" stands for the connection and "-" stands for the absence of the
product term in the output. "T" stands for true and it represents the active-high output.
The PLA circuit diagram of the full adder is shown in the following figure.