COA Module5
COA Module5
Soumya Majumdar
What is memory unit?
● Memories are made up of registers.
● Each register in the memory is one storage location.
● Storage location is also called a memory location.
● Memory locations are identified using Address. The total number of bits a memory can
store is its capacity.
● A storage element is called a Cell.
● Each register is made up of a storage element in which one bit of data is stored. The data
in a memory are stored and retrieved by the process called writing and reading
respectively.
● A word is a group of bits where a memory unit stores binary information. A word with a
group of 8 bits is called a byte.
What is memory unit?
● A memory unit consists of data lines, address selection lines, and control lines that specify the
direction of transfer.
● Bit (Binary Units): bit is a logical representation of the electric state. It can be 1 or 0.
● Nibble: it means the group of 4 bits.
● Byte: a byte is a group of 8 bits.
● Word: it is a fixed number of bits, it is different from computer to computer, but the same for
each device. Compute store information in the form of words.
RAM: Random Access Memory
● It is also called read-write memory or the main memory or the primary memory.
● Used to temporarily store data that the computer is currently using or processing
● Programs and data that the CPU requires during the execution of a program are stored in this
memory.
● Typically used to store the operating system, application programs, and data that the computer is
currently using.
● It is a volatile memory as the data is lost when the power is turned off.
RAM classification: SRAM and DRAM
Requires recharge in every few miliseconds to Holds its content as long as power is available
maintain its data
Inexpensive Expensive
Can store many bits per chip Can’t store many bits per chip
● EEPROM (Electrically erasable programmable read-only memory): The data can be erased
by applying an electric field, with no need for ultraviolet light. We can erase only portions of the
chip.
● MROM(Mask ROM): Mask ROM is a kind of read-only memory, that is masked off at the
time of production. Like other types of ROM, mask ROM cannot enable the user to change the
data stored in it. If it can, the process would be difficult or slow.
ROM advantages
● Non-volatility: ROM is non-volatile memory, which means that the data stored in it is retained
even when the power is turned off. This makes it ideal for storing data that does not need to be
modified, such as the BIOS or firmware for other hardware devices.
● Reliability: Because the data stored in ROM is not easily modified, it is less prone to corruption
or errors than other types of memory.
● Power Management: ROM consumes less power compared to other types of memory, which
makes it an ideal memory for portable devices.
ROM disadvantages
● Limited Flexibility: ROM is read-only memory, which means that the data stored in it cannot
be modified. This can be a problem for applications or firmware that need to be updated or
modified.
● Limited Capacity: The capacity of ROM is typically limited, and upgrading it can be difficult
or expensive.
● Cost: ROM can be relatively expensive compared to other types of memory, such as hard drives
or solid-state drives, which can make upgrading the memory of a computer or device more
costly.
Differences between RAM and ROM
RAM ROM
Volatile Non-volatile
where
where
i = cache set number
j = main memory block number
v = number of sets
m = number of lines in the cache number of sets
k = number of lines in each set
Set-associative Mapping