Semiconductor Memories: ROM Explained | Types of ROM | Applications of ROM

ALL ABOUT ELECTRONICS
14 Jan 202414:10

Summary

TLDRThis video from the ALL ABOUT ELECTRONICS YouTube channel delves into the world of Read-Only Memory (ROM). It explains the fundamental structure of ROM, highlighting its non-volatile nature and its ability to store data permanently. The video distinguishes between various types of ROM, including Mask ROM, PROM, EPROM, EEPROM, and flash memory, each with unique characteristics like one-time programming or erasability. It also touches on the practical applications of ROM in devices, embedded systems, and computer BIOS, emphasizing its critical role in storing essential instructions and data.

Takeaways

  • 📚 ROM stands for Read-Only Memory, a type of non-volatile storage used by CPUs to store permanent data.
  • 🔍 Unlike RAM, ROM retains data even when power is lost, making it ideal for storing firmware and critical instructions.
  • 🛠️ Traditional ROMs require data to be set during fabrication, with patterns of 1s and 0s established at the manufacturing stage.
  • 🏭 Mask ROM is a type of ROM where data is permanently set during the manufacturing process and cannot be altered later.
  • 🔧 PROM (Programmable ROM) allows users to program the data after fabrication using special hardware.
  • ⚙️ EPROM (Erasable Programmable ROM) can be erased using UV light and reprogrammed multiple times.
  • 🔌 EEPROM (Electrically Erasable Programmable ROM) can be erased and reprogrammed electrically, supporting multiple write and erase cycles.
  • 💾 Flash memory is a type of EEPROM that allows electrical erasing and reprogramming, with sizes ranging from megabytes to gigabytes.
  • 🔥 NAND flash is preferred for large storage capacities due to its cost-effectiveness and better write speed, whereas NOR flash offers faster read speeds.
  • 🛠️ ROMs are used in various applications such as embedded systems for program code, configuration parameters, and calibration settings, as well as in computer BIOS and peripheral device firmware.

Q & A

  • What is ROM and what does it stand for?

    -ROM stands for Read-Only Memory. It is a type of non-volatile memory used in computers and other electronic devices for storing permanent data, such as firmware or critical instructions.

  • How is ROM different from RAM?

    -ROM is non-volatile and retains data even when power is turned off, while RAM is volatile and loses data when power is not supplied. Additionally, ROM is typically used for permanent data storage, whereas RAM is used for temporary data storage during operation.

  • What is the significance of the term 'read-mostly memory' in the context of ROM?

    -The term 'read-mostly memory' refers to ROMs that are primarily used for reading data but can also be written to when necessary. This indicates that while ROMs are traditionally read-only, modern ROMs can be written to, albeit with certain limitations or requirements.

  • Can you explain the basic structure of a ROM?

    -A ROM has a structure similar to RAM, where it can be addressed to select a specific word. When enabled, the data at that address is available at the output. The ROM consists of address inputs and data outputs, and the data is determined by the interconnections within the ROM, which are established during fabrication.

  • What is a Mask ROM and how is it programmed?

    -A Mask ROM is a type of ROM where the programming is done during the fabrication process. The data to be stored, in the form of 1s and 0s, is provided by the designer to the manufacturer, and the interconnections within the ROM are made accordingly.

  • What is a PROM and how does it differ from a Mask ROM?

    -A PROM, or Programmable ROM, is user-programmable, unlike a Mask ROM which is programmed during fabrication. PROMs require special programming hardware to write data, and once programmed, the data cannot be altered.

  • How is an EPROM different from other types of ROMs?

    -EPROM, or Erasable Programmable ROM, can be erased and reprogrammed multiple times using special UV light through a transparent window on the chip. This feature allows for reusability, unlike one-time programmable ROMs.

  • What is EEPROM and how does it erase data?

    -EEPROM stands for Electrically Erasable Programmable ROM. It can be erased and reprogrammed electrically, multiple times, without the need for UV light like EPROM. This makes EEPROM more convenient for applications requiring frequent updates.

  • What are the two types of flash memory commercially available, and how do they differ?

    -The two types of flash memory are NAND flash and NOR flash. NAND flash offers faster write speeds but slower read speeds, and is more cost-effective for large storage capacities. NOR flash provides faster read speeds but slower write speeds and is more expensive due to its lower density.

  • What are the typical applications of ROM?

    -ROM is typically used for storing permanent instructions and data critical for device operations, such as firmware in embedded systems, BIOS in computer systems, and configurations in peripheral devices. It can also be used as a programmable logic device for implementing different logic circuits.

Outlines

00:00

💾 Introduction to Read-Only Memory (ROM)

This paragraph introduces the concept of Read-Only Memory (ROM), contrasting it with Random Access Memory (RAM). ROM is described as a non-volatile memory type that retains data even when power is off, suitable for permanent data storage. The video will cover the basic construction, types, and applications of ROM. It explains that unlike RAM, ROM is designed for reading data and, in most modern cases, allows for some writing capabilities. The paragraph also sets the stage for a deeper dive into ROM's structure and types, promising to explore its uses in various applications.

05:03

🛠️ ROM Structure and Programming

This section delves into the internal structure of ROM, using a 32x8 ROM as an example. It explains how data is stored in ROM through a network of interconnections represented by 'cross-points', which are either connected (logic 1) or not connected (logic 0). The paragraph describes the process of programming ROMs, highlighting different types such as Mask ROM, PROM, EPROM, and EEPROM. Each type has its unique programming and erasing methods, from fixed programming during fabrication in Mask ROMs to user-programmable and erasable options in PROMs, EPROMs, and EEPROMs. The paragraph also touches on the practical aspects of ROM programming, such as the need for special hardware and the permanence of data once programmed.

10:06

🔍 Types of ROM and Their Applications

The final paragraph discusses the various types of ROM, including EEPROM and flash memory, emphasizing their erasable and programmable capabilities. It highlights the differences between EEPROM, which allows byte-level operations, and flash memory, which supports block-level erasing. The paragraph also covers the commercial availability and typical use cases of these memory types, such as EEPROMs for small data storage and flash memory for larger storage devices like USB drives and SSDs. Additionally, it touches on the limitations of write operations for these memory types and their applications in embedded systems, computer systems, and peripheral devices. The video concludes by inviting viewers to engage with the content through comments and subscriptions, promising further exploration of ROM's use as a programmable logic device in upcoming videos.

Mindmap

Keywords

💡Read-only Memory (ROM)

ROM, or Read-only Memory, is a type of non-volatile memory used in computers and other electronic devices for the permanent storage of data. Unlike RAM, ROM retains its data even when the power is turned off. In the context of the video, ROM is introduced as a critical component that the CPU can read from but cannot write to, highlighting its use for storing firmware and other critical data that should not be altered during normal operation.

💡Volatile vs. Non-volatile Memory

Volatile memory, like RAM, loses its data when power is interrupted, whereas non-volatile memory, such as ROM, retains data even in the absence of power. The video emphasizes the non-volatile nature of ROM, making it suitable for applications where data must be preserved regardless of power status.

💡Mask ROM

Mask ROM is a type of ROM where the data is pre-programmed during the manufacturing process. This data is fixed and cannot be altered after the chip is fabricated. The video explains that in Mask ROMs, the pattern of 1s and 0s is established during fabrication, making them suitable for applications where the same data is used in every unit of a product.

💡Programmable ROM (PROM)

PROM, or Programmable ROM, is a user-programmable memory that allows users to write data into it using special programming hardware. Unlike Mask ROM, PROMs are initially blank and can be programmed by the user to store specific data. The video mentions that PROMs are one-time programmable, which means they can be written to once and then read from many times.

💡Erasable Programmable ROM (EPROM)

EPROM is a type of ROM that can be erased and reprogrammed multiple times. It is erased using ultraviolet (UV) light, which allows the data to be cleared and the ROM to be reused. The video script describes EPROM as having a small transparent quartz window for UV light exposure, which is a key feature for its erasability.

💡Electrically Erasable Programmable ROM (EEPROM)

EEPROM is a type of ROM that can be erased and programmed electrically, without the need for UV light as in EPROM. It allows for multiple erasure and write cycles, typically ranging from 10,000 to 1,00,000 times. The video highlights EEPROM's ability to perform byte-level write and erase operations, making it flexible for applications requiring frequent updates to small amounts of data.

💡Flash Memory

Flash memory is a type of non-volatile memory that can be electrically erased and reprogrammed. It is used in various storage devices, such as USB drives and SSDs. The video contrasts two types of flash memory: NAND and NOR, with NAND offering faster write speeds and larger storage capacities, while NOR provides faster read speeds and is used in applications where frequent writes are not required.

💡BIOS

BIOS, or Basic Input/Output System, is a firmware stored in ROM that initializes and tests computer hardware components during startup. The video mentions that BIOS firmware was traditionally stored in ROM but is now often stored in NOR flash memory, highlighting the evolution of storage technology in computer systems.

💡Logic Gates

Logic gates are digital circuits used in the design of computers and other electronic devices. In the context of the video, OR gates are mentioned as part of the internal structure of ROM, where they help determine the output based on the presence or absence of interconnections, representing the stored data as 1s or 0s.

💡Interconnections

In the video, interconnections refer to the physical connections within a ROM that determine the stored data. Each interconnection represents a bit of data, with a connection indicating a logic 1 and the absence of a connection indicating a logic 0. The video explains how these interconnections are established during the manufacturing process for Mask ROMs and can be modified for PROMs and EEPROMs.

💡Firmware

Firmware is a type of software that provides low-level control for hardware devices. The video discusses how firmware, such as BIOS, is stored in ROM to ensure it is not easily altered and is available for device operation even when the power is off, emphasizing the importance of ROM in device functionality.

Highlights

Introduction to Read-only Memory (ROM) and its basic construction.

Explanation of ROM as a non-volatile memory type that retains data even when power is off.

Differentiation between RAM and ROM in terms of data persistence and usage.

Description of ROM as read-mostly memory with optional write capabilities.

Overview of the internal structure of a 32x8 ROM, including its decoder and OR gates.

Detail on how data is stored in ROM during fabrication with 1s and 0s representing interconnections.

Introduction to Mask ROM, where data programming is done during manufacturing.

Explanation of Programmable ROM (PROM) that allows user programming with special hardware.

Description of Erasable Programmable ROM (EPROM) that can be erased with UV light and reprogrammed.

Introduction to Electrically Erasable Programmable ROM (EEPROM) that supports electrical erasure and reprogramming.

Comparison between NAND and NOR flash memories in terms of write speed, read speed, and cost.

Applications of ROM in embedded systems for storing program code and configuration settings.

Use of ROM in computer systems for storing BIOS firmware, now often replaced by NOR flash memory.

Storage of firmware for peripheral devices like printers and keyboards in ROM.

ROM's potential use as a programmable logic device for implementing logic circuits.

Encouragement for viewers to ask questions or provide suggestions in the comment section.

Call to action for viewers to like and subscribe for more educational content on electronics.

Transcripts

play00:07

Hey friends, welcome to the YouTube channel ALL ABOUT ELECTRONICS.

play00:11

So in this video, we will learn about the Read-only Memory.

play00:15

So during the video, we will see the basic construction of this ROM and we will also

play00:19

see the different types of ROM.

play00:22

So earlier we have seen that there are two types of memories which CPU requires during the operation.

play00:29

That is RAM and ROM.

play00:31

So we have seen that this RAM is a temporary storage device which holds the program and

play00:37

the OS processes which CPU might require during the operation.

play00:42

And we have already seen about this RAM in the previous videos.

play00:45

Then the second type of memory is the ROM.

play00:49

So this ROM stands for the read-only memory.

play00:52

And as its name suggests, this CPU can only read the data from the memory,

play00:57

but it cannot write it.

play00:59

But nowadays, most of the ROMs that are available commercially are the read-mostly memory.

play01:05

Meaning that mostly they can be used for reading the data from the memory, but when required,

play01:10

it is also possible to write the content in this memory.

play01:13

So later on, we will see the different types of ROMs.

play01:17

Now unlike the RAM, this ROM is the non-volatile type of memory.

play01:22

Meaning that even if the power goes down, then also the content of the memory

play01:26

will remain as it is.

play01:29

And that is why it is used in the applications where we want to store the data permanently.

play01:35

So at the end of the video, we will also see the typical applications of the ROM.

play01:40

But first, let's see the basic structure of this ROM.

play01:44

So similar to the RAM, if the ROM contains total 2^k words, then with the help of the

play01:50

k-address lines, it is possible to select any one of the words.

play01:55

And once the ROM is enabled, then the data at the specific word will be available at

play01:59

the output.

play02:01

So if the word length is equal to n bits, then the output data will be of n bits.

play02:07

That means this 2^k word ROM consists of the k inputs and the n outputs.

play02:12

So unlike the RAM, in the traditional ROMs, the binary information which we want to store

play02:17

within the ROM must be specified by the designer during the fabrication.

play02:23

And during the fabrication of the ROM itself, the pattern of 1s and 0s

play02:27

is established in the ROM.

play02:29

So this is the internal structure of this 32x8 ROM.

play02:33

So this 32x8 ROM consists of 32 words and the word length of each word

play02:39

is equal to 8 bits.

play02:41

So here, with the help of the 5 input decoder, it is possible to select any one of the 32 words.

play02:48

So as you can see, here the output of the decoder are labeled from 0 to 31.

play02:54

And the each output of the decoder represents the specific memory address.

play02:59

So here, to read the 8 bits of data from each word, we have total 8 OR gates.

play03:05

And here, the each OR gate consists of the 32 inputs.

play03:10

So depending on how the ROM is programmed with 1s and 0s, the each output of the decoder

play03:15

is connected to these different OR gates.

play03:19

So in this 32x8 ROM, we have total 256 interconnections. Or in other words, we have total 256 cross-points.

play03:28

And here, this each cross-point is programmable.

play03:32

So whenever there is an interconnection between the output of the decoder and the OR gate,

play03:38

then symbolically, it is represented by the cross symbol.

play03:42

And if there is no interconnection between them, then that cross-point is left as it is.

play03:47

So wherever there is a cross, then it represents the logic 1 in the memory.

play03:52

And wherever there is no interconnection, then it represents the logic 0.

play03:57

So let's see, based on this interconnection, how to read the data from the ROM.

play04:03

So let's say, based on the address input, this 5th output of the decoder gets high.

play04:08

And once it gets high, then wherever there is an interconnection, at those locations,

play04:14

the output of the OR gate will also become high.

play04:17

Because at those locations, physically there is an interconnection between the output of

play04:21

the decoder and the OR gate.

play04:23

While for the rest of the OR gates, the output of the OR gate will remain 0.

play04:28

Because as you know, in the decoder, depending on these address inputs, only one of the decoder

play04:33

output will become high.

play04:35

And if we see the remaining outputs of the decoder, then it will remain low.

play04:39

That means in this case, only this 5th output will become high, while the remaining outputs

play04:44

will remain 0.

play04:46

And wherever there is an interconnection between the output of the decoder and the OR gate,

play04:50

at those locations, the output of the OR gate will become high.

play04:54

So in this case, we can say that the information that is stored at the 5th memory address is

play04:59

equal to 00100011.

play05:03

That means if we want to store this information at this 5th memory address, then we need to

play05:07

make the interconnection only at these 3 different locations.

play05:11

And similarly, according to the data that we want to store in each word, we can make

play05:16

the interconnections at the different locations.

play05:20

So in some types of ROM, the programming of this interconnection is done during the fabrication

play05:25

itself.

play05:26

That means the program that we need to store within the ROM, that program we need to provide

play05:30

to the manufacturer beforehand.

play05:33

So basically, this program contains the information in the form of 1s and 0s for each word.

play05:39

And during the manufacturing, according to the data provided by the designer, these interconnections

play05:45

are programmed in the ROM.

play05:47

For example, in this 32x8 ROM, if we want to store this data at the different locations,

play05:53

then these are the corresponding interconnections.

play05:56

For example, at the first address, suppose if we want to store 10110010, then in the

play06:03

first row, at the locations where we want the logic 1, at such locations, we need to

play06:09

make the interconnections.

play06:12

So as you can see, in the first row, at the D7, D5, D4 and D1, these 4 interconnections

play06:18

are made.

play06:20

And that is why, in the first row, you can see the 4 cross symbols at the 4 locations.

play06:26

That means at these 4 locations, where we can see this cross symbol, represents the

play06:31

logic 1.

play06:32

And wherever there is no cross symbol, those locations represent the logic 0.

play06:38

So likewise, at the remaining locations, by making these interconnections, we can store

play06:43

the data that is shown in the Truth Table.

play06:46

So once the data is stored in the ROM, then with the help of these address lines and the

play06:49

enable input, we can read the data from the ROM.

play06:54

So whenever we want to read the data from the ROM, then we just need to apply the specific

play06:58

address to the decoder, and then we just need to enable this decoder.

play07:03

And as soon as we enable the decoder, then the data stored at the specific location

play07:08

will be available at the output.

play07:11

So this type of ROM is known as the Mask ROM.

play07:14

Because during the fabrication of this ROM itself, based on the user requirement, the

play07:18

masking has been done for these 1s and 0s, and accordingly, these interconnections are

play07:23

made at the specific locations.

play07:26

So in this Mask ROM, the programming of the ROM is done during the fabrication itself.

play07:31

And once it is fabricated, then the data which is stored in the ROM cannot be altered during

play07:36

the operation.

play07:38

So this Mask ROM is the one type of ROM.

play07:40

But apart from that, we also have the other types of ROM.

play07:44

So the second type of ROM is the PROM, which is known as the Programmable ROM.

play07:50

So we have seen that in case of the Mask ROM, we need to program it during the fabrication itself.

play07:56

But this PROM is the user programmable.

play07:58

But to program this ROM, the user has to have the special programming hardware.

play08:03

So in this PROM, initially, all the cross points are interconnected with each other.

play08:09

That means before programming, if you see the content of this PROM, then it consists

play08:13

of the all 1s.

play08:15

But after programming, it is possible to remove some of the interconnections.

play08:20

That means here, based on the need of the user, user can remove some of the interconnections

play08:25

by applying a high voltage at the specific pin in the ROM.

play08:29

So once it is programmed, then wherever there is an interconnection, that point represents

play08:34

the logic 1.

play08:36

And wherever there is no interconnection, then that represents the logic 0.

play08:40

And like I said, using the special programming hardware, it is possible to program these

play08:45

PROMs.

play08:47

So once the PROM is programmed, then the fixed bit patterns of 1s and 0s is permanently

play08:52

established in this PROM.

play08:54

And once it is established, then it is not possible to alter that.

play08:59

That means this PROM is the one-time programmable.

play09:02

But there is another type of ROM, which can be programmed multiple times.

play09:07

So this third type of ROM is known as the EPROM.

play09:10

Where this EPROM stands for the Erasable and the Programmable ROM.

play09:14

So in this type of ROM, once it is programmed, then using the special UV light, it is possible

play09:19

to erase the content of the ROM.

play09:22

And then it is possible to reprogram it with the help of the special hardware.

play09:27

So to erase the content of this ROM, as you can see, on the chip, there is a small transparent

play09:33

quartz window.

play09:34

So when this window is exposed with the UV light for a certain duration, then the content

play09:39

of the ROM will get erased.

play09:41

And then it is possible to reprogram it with the help of the special hardware.

play09:46

That means this EPROM is the multiple times programmable.

play09:49

But to erase it, we need the special kind of UV light.

play09:53

But there is a fourth type of ROM, which can be erased electrically.

play09:58

So this ROM is known as the EEPROM.

play10:00

So this EEPROM stands for the Electrically Erasable Programmable ROM.

play10:05

So it is similar to the EPROM, but in this case, it is possible to erase the content

play10:10

of the ROM electrically rather than the UV light.

play10:14

So the advantage of this ROM is that it can be erased electrically multiple times.

play10:19

And the typical Erase and Write operations that can be performed on this memory,

play10:23

varies from 10,000 to 1,00,000.

play10:26

That means it is possible to erase the content of this EEPROM this many times.

play10:31

Now if you see the size of this EEPROM, then it varies from few bytes to hundreds of kilobytes.

play10:38

That means this type of memory is only usable in the applications where we want to store

play10:42

the small amount of data.

play10:45

So if you see this EEPROM, then it allows the byte level write and the erase operations.

play10:50

That means in this EEPROM, at any given time, only one byte of information can be

play10:55

erased or written in the memory.

play10:57

Now similar to the EEPROM, there is another type of non-volatile memory which is

play11:02

often used for the storage.

play11:04

And this memory is known as the flash memory.

play11:07

So similar to the EEPROM, this flash memory can also be electrically erased and reprogrammed.

play11:13

But unlike the EEPROM, this flash memory supports the block level erasing.

play11:18

That means during the erase operation, instead of erasing a single byte at a time, it erases

play11:23

the data of the entire block.

play11:26

Now if you see the size of these memories, then it varies from the megabytes to gigabytes.

play11:32

And that is why it is used in the storage devices like the USB flash drive and the SSDs.

play11:38

And similar to the EEPROM, the number of write operations that we can perform on

play11:42

this memory is limited.

play11:45

So there are two types of flash memories that is available commercially.

play11:49

That is the NAND flash and the NOR flash.

play11:52

So this NAND flash offers the better write speed compared to the NOR flash.

play11:57

But if you see the read speed, then it is slower than the NOR flash.

play12:01

On the other hand, if you see the NOR flash, then it provides the good read speed, but

play12:06

it has a slower write speed compared to the NAND flash.

play12:10

And because of its lower density, it is more costlier than the NAND flash.

play12:15

So if you see this NAND flash, then it is more cost effective for the large storage capacities.

play12:21

And that is why this NAND flash is used in the storage drives.

play12:26

On the other hand, this NOR flash is used in the microcontrollers and the BIOS chips

play12:31

to store the program and the configurations.

play12:34

So basically, it is used in the applications where the write operations are not performed

play12:38

frequently and we also need the good reading speed.

play12:42

So these are the different types of ROMs.

play12:45

And depending on the applications, the different types of ROMs are used at different places.

play12:51

So in general, since the ROM is a non-vertical memory, so it is used for storing the permanent

play12:56

instructions and the data, which is critical for the device operations.

play13:01

Apart from that, in the embedded systems, it is used for storing the program code,

play13:06

the configuration parameters and the calibration settings.

play13:09

Moreover, in the computer systems, this BIOS firmware is also stored in these ROMs.

play13:15

So in the early days, it was stored in the ROM, but nowadays, it is stored in the NOR

play13:20

type flash memory.

play13:22

So apart from that, the firmware for the peripheral devices like the printers and the keyboards

play13:28

is often stored in the ROM.

play13:30

So these are the few applications of the ROM.

play13:33

So apart from storing the data, the ROM can also be used as a programmable logic device.

play13:38

And with the help of it, it is possible to implement the different logic circuits.

play13:43

So in the next video, we will see that how the ROM can be used as a programmable logic device.

play13:49

But I hope in this video, you understood the basic structure of the ROM, the different

play13:53

types of ROMs, as well as the different applications of the ROM.

play13:57

So if you have any question or suggestion, then do let me know here in the comment section below.

play14:03

If you like this video, hit the like button and subscribe to the channel for more such videos.

Rate This

5.0 / 5 (0 votes)

Связанные теги
Read-Only MemoryElectronicsData StorageMask ROMPROMEPROMEEPROMFlash MemoryNon-VolatileMemory Types
Вам нужно краткое изложение на английском?