Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

important notes of Digital electronics, Study notes of Digital Electronics

important notes of Digital electronics

Typology: Study notes

2020/2021

Available from 01/09/2023

Harshul_Aggarwal
Harshul_Aggarwal 🇮🇳

5 documents

1 / 29

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1
DIGITAL
ELECTRONICS
NOTES
Module 4:
MEMORY DEVICES
Classification of Memories
PAL, PLA, CPLD, FPGA
Comparisons of Memories
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d

Partial preview of the text

Download important notes of Digital electronics and more Study notes Digital Electronics in PDF only on Docsity!

DIGITAL

ELECTRONICS

NOTES

Module 4:

MEMORY DEVICES

❖ Classification of Memories

❖ PAL, PLA, CPLD, FPGA

❖ Comparisons of Memories

MEMORY

A memory is just like a human brain. It is used to store data and instruction. Computer memory is the storage space in computer where data is to be processed and instructions required for processing are stored. The memory is divided into large number of small parts. Each part is called a cell. Each location or cell has a unique address which varies from zero to memory size minus one. For example if computer has 64k words, then this memory unit has 64 * 1024 = 65536 memory location. The address of these locations varies from 0 to 65535. ❖ Classification of Memories Memory is the most essential element of a computing system because without it computer can’t perform simple tasks. Computer memory is of two basic type –

  • Primary memory / Volatile memory: Example: RAM
  • DRAM is used for most system memory because it is cheap and small. All DRAMs are made up of memory cells. These cells are composed of one capacitor and one transistor. 2. Read Only Memory (ROM) ROM stands for Read Only Memory. The memory from which we can only read but cannot write on it. This type of memory is non-volatile. The information is stored permanently in such memories during manufacture. ROM stores a instruction which is required to start computer when electricity is first turned on, this operation is referred to as bootstrap. ROM chip are not only used in the computer but also in other electronic items like washing machine and microwave oven. Following are the various types of ROM −
  • MROM (Masked ROM) The very first ROMs were hard-wired devices that contained a pre-programmed set of data or instructions. These kind of ROMs are known as masked ROMs. It is inexpensive ROM.
  • PROM (Programmable Read Only Memory) PROM is read-only memory that can be modified only once by a user. Once programmed, the data and instructions in it cannot be changed. The user buys a blank PROM and enters the desired contents using a PROM programmer. It can be programmed only once and is not erasable.
  • EPROM (Erasable and Programmable Read Only Memory)

It can be reprogrammed. The EPROM can be erased by exposing it to ultra- violet light for a duration of upto 40 minutes. To reprogram it, erase all the previous data. Usually, an EPROM eraser achieves this function. During programming an electrical charge is trapped in an insulated gate region. The charge is retained for more than ten years because the charge has no leakage path. For erasing this charge, ultra-violet light is passed through a quartz crystal window (lid). This exposure to ultra-violet light dissipates the charge. During normal use the quartz lid is sealed with a sticker.

  • EEPROM (Electrically Erasable and Programmable Read Only Memory) The data can be erased by applying electric field, no need of ultra violet light. We can erase only portions of the chip. Both erasing and programming take about 4 to 10 ms (millisecond). In EEPROM, any location can be selectively erased and programmed. EEPROMs can be erased one byte at a time, rather than erasing the entire chip. Hence, the process of re-programming is flexible but slow. 3. Sequential Access Memory Sequential access means the system must search the storage device from the beginning of the memory address until it finds the required piece of data. Memory device which supports such access is called a Sequential Access Memory or Serial Access Memory. Magnetic tape is an example of serial access memory. 4. Random Access Memory

logical memory from physical memory. This separation allows an extremely large virtual memory to be provided for programmers when only a smaller physical memory is available.

7. Auxiliary Memory Auxiliary memory is much larger in size than main memory but is slower. It normally stores system programs, instruction and data files. It is also known as secondary memory. It can also be used as an overflow/virtual memory in case the main memory capacity has been exceeded. Secondary memories cannot be accessed directly by a processor. First the data/information of auxiliary memory is transferred to the main memory and then that information can be accessed by the CPU. Characteristics of Auxiliary Memory are following − - Non-volatile memory − Data is not lost when power is cut off. - Reusable − The data stays in the secondary storage on permanent basis until it is not overwritten or deleted by the user. - Reliable − Data in secondary storage is safe because of high physical stability of secondary storage device. - Convenience − With the help of a computer software, authorised people can locate and access the data quickly. - Capacity − Secondary storage can store large volumes of data in sets of multiple disks. - Cost − It is much lesser expensive to store data on a tape or disk than primary memory.

Difference between Primary Memory and Secondary Memory: BASIS FOR COMPARISON

PRIMARY MEMORY SECONDARY MEMORY

Basic Primary memory is directly accessible by Processor/CPU. Secondary memory is not directly accessible by CPU. Altered Name Main memory. Auxiliary memory. Data Instructions or data to be currently executed are copied to main memory. Data to be permanently stored is kept in secondary memory. Volatility Primary memory is usually volatile. Secondary memory is non- volatile. Formation Primary memories are made of semiconductors. Secondary memories are made of magnetic and optical material. Access Speed Accessing data from primary memory is faster. Accessing data from secondary memory is slower. Access Primary memory is accessed by the data bus. Secondary memory is accessed by input-output channels. Size The computer has a small primary memory. The computer has a larger secondary memory. Expense Primary memory is costlier than secondary memory. Secondary memory is cheaper than primary memory Memory Primary memory is an internal memory. Secondary memory is an external memory.

Difference between Volatile Memory and Non-Volatile Memory: S.NO VOLATILE MEMORY NON-VOLATILE MEMORY

  1. Volatile memory is the type of memory in which data isn’t keep in memory as before long as power is gone. Non-volatile memory is the type of memory in which data or information remains keep within the memory albeit power is completed.
  2. Volatile memory is not a permanent memory. Non-volatile memory is a permanent memory.
  3. It is faster than non-volatile memory. It is slow than volatile memory.
  4. RAM is the example of volatile memory. ROM is the example of non-volatile memory.
  5. In volatile memory, data can be easily transferred in comparison of non-volatile memory. In non-volatile memory, data can not be easily transferred in comparison of volatile memory.
  6. Volatile memory can read and write. Non-volatile memory can’t write, it only read.
  7. Volatile memory has less storage. Non-volatile memory has more storage than volatile memory.
  8. In volatile memory, the program’s data are stored which are currently in process by the CPU. In non-volatile memory, any kind of data which has to be saved permanently are stored.
  9. Volatile memory is more costly per unit size. Non-volatile memory is less costly per unit size.
  10. Volatile memory has a huge impact on the system’s performance. Non-volatile memory has a huge impact on a system’s storage capacity.

Difference between RAM and ROM: BASIS FOR COMPARISON

RAM ROM

Basic It is a read-write memory. It is read only memory. Use Used to store the data that has to be currently processed by CPU temporarily. It stores the instructions required during bootstrap of the computer. Volatility It is a volatile memory. It is a nonvolatile memory. Stands for Random Access Memory. Read Only Memory. Modification Data in RAM can be modified. Data in ROM can not be modified. Capacity RAM sizes from 64 MB to 4GB. ROM is comparatively smaller than RAM. Cost RAM is a costlier memory. ROM is comparatively cheaper than RAM. Type Types of RAM are static RAM and dynamic RAM. Types of ROM are PROM, EPROM, EEPROM. Difference between SRAM and DRAM: BASIS FOR COMPARISON

SRAM DRAM

Speed Faster Slower Size Small Large Cost Expensive Cheap Used in Cache memory Main memory Density Less dense Highly dense Construction Complex and uses transistors and latches. Simple and uses capacitors and very few transistors. Single block of memory requires 6 transistors Only one transistor. Charge leakage property Not present Present hence require power refresh circuitry Power consumption Low High

Difference between EPROM and EEPROM: BASIS FOR COMPARISON

EPROM EEPROM

Basic Ultraviolet Light is used to erase the content of EPROM. EEPROM contents are erased using electronic signal. Appearance EPROM has a transparent quartz crystal window at the top. EEPROM are totally encased in an opaque plastic case. Erased and Reprogrammed EPROM chip has to be removed from the computer circuit to erase and reprogram the computer BIOS. EEPROM chip can be erased and reprogrammed in the computer circuit to erase and reprogram the content of computer BIOS. Technology EPROM is an older technology. EEPROM is a modern version over EPROM.

Programmable Logic Devices

Programmable Logic Devices (PLDs) are the integrated circuits. They contain an array of AND gates & another array of OR gates. There are three kinds of PLDs based on the type of array(s), which has programmable feature.

  • Programmable Read Only Memory
  • Programmable Array Logic
  • Programmable Logic Array The process of entering the information into these devices is known as programming. Basically, users can program these devices or ICs electrically in order to implement the Boolean functions based on the requirement. Here, the term programming refers to hardware programming but not software programming. ❖ Programmable Read Only Memory (PROM) Read Only Memory (ROM) is a memory device, which stores the binary information permanently. That means, we can’t change that stored information by any means later. If the ROM has programmable feature, then it is called as Programmable ROM (PROM). The user has the flexibility to program the binary information electrically once by using PROM programmer. PROM is a programmable logic device that has fixed AND array & Programmable OR array. The block diagram of PROM is shown in the following figure.

Here, 3 to 8 decoder generates eight min terms. The two programmable OR gates have the access of all these min terms. But, only the required min terms are programmed in order to produce the respective Boolean functions by each OR gate. The symbol ‘X’ is used for programmable connections.

❖ Programmable Array Logic (PAL)

PAL is a programmable logic device that has Programmable AND array & fixed OR array. The advantage of PAL is that we can generate only the required product terms of Boolean function instead of generating all the min terms by using programmable AND gates. The block diagram of PAL is shown in the following figure.

Here, the inputs of AND gates are programmable. That means each AND gate has both normal and complemented inputs of variables. So, based on the requirement, we can program any of those inputs. So, we can generate only the required product terms by using these AND gates. Here, the inputs of OR gates are not of programmable type. So, the number of inputs to each OR gate will be of fixed type. Hence, apply those required product terms to each OR gate as inputs. Therefore, the outputs of PAL will be in the form of sum of products form. Example Let us implement the following Boolean functions using PAL. A=XY+XZ' A=XY'+YZ' The given two functions are in sum of products form. There are two product terms present in each Boolean function. So, we require four programmable AND gates & two fixed OR gates for producing those two functions. The corresponding PAL is shown in the following figure.

❖ Programmable Logic Array (PLA)

PLA is a programmable logic device that has both Programmable AND array & Programmable OR array. Hence, it is the most flexible PLD. The block diagram of PLA is shown in the following figure. Here, the inputs of AND gates are programmable. That means each AND gate has both normal and complemented inputs of variables. So, based on the requirement, we can program any of those inputs. So, we can generate only the required product terms by using these AND gates. Here, the inputs of OR gates are also programmable. So, we can program any number of required product terms, since all the outputs of AND gates are applied as inputs to each OR gate. Therefore, the outputs of PAL will be in the form of sum of products form. Example Let us implement the following Boolean functions using PLA. A=XY+XZ' B=XY'+YZ+XZ'

The given two functions are in sum of products form. The number of product terms present in the given Boolean functions A & B are two and three respectively. One product term, Z'X is common in each function. So, we require four programmable AND gates & two programmable OR gates for producing those two functions. The corresponding PLA is shown in the following figure. The programmable AND gates have the access of both normal and complemented inputs of variables. In the above figure, the inputs X, X', Y, Y', Z & Z', are available at the inputs of each AND gate. So, program only the required literals in order to generate one product term by each AND gate. All these product terms are available at the inputs of each programmable OR gate. But, only program the required product terms in order to produce the respective Boolean functions by each OR gate. The symbol ‘X’ is used for programmable connections.