Memory and Its Types and Structure
Memory and Its Types and Structure
4. Virtual Memory
• A technique that allows the system to use secondary memory as if it were part of
the main memory. This helps extend the apparent size of the system's memory.
Mohamed Abdallah Elghzaly
Types of RAM
1.Dynamic RAM (DRAM):
• Characteristics:
1. Volatile: Loses data when power is off.
2. Structure: Stores each bit of data in a separate capacitor within an integrated circuit.
3. Refresh Requirement: Capacitors leak charge, so the data needs to be refreshed periodically,
typically thousands of times per second.
4. Usage: Commonly used as the main memory in computers due to its higher density and lower
cost compared to SRAM.
• Types of DRAM:
• Synchronous DRAM (SDRAM): Synchronized with the system clock, allowing for more efficient
data transfer. It's the standard form of DRAM used in most computers.
• Double Data Rate SDRAM (DDR SDRAM): An evolution of SDRAM that can transfer data on both
the rising and falling edges of the clock signal, effectively doubling the data rate. Subsequent
generations include DDR2, DDR3, DDR4, and DDR5, each offering increased speed and reduced
power consumption.
• Graphics DDR (GDDR): A type of DDR memory optimized for graphics cards, with versions like
GDDR3, GDDR5, and GDDR6.
Mohamed Abdallah Elghzaly
Types of RAM
2.Static RAM (SRAM):
• Characteristics:
• Volatile: Data is lost when power is off.
• Structure: Uses a flip-flop circuit for each bit, typically made from four to six transistors. This
structure does not require refreshing.
• Speed: Faster than DRAM because it does not need to be refreshed.
• Usage: Used in cache memory and other applications where speed is critical, but the memory
size is smaller.
• Advantages: Faster and more reliable than DRAM.
• Disadvantages: More expensive and consumes more power compared
to DRAM.
Mohamed Abdallah Elghzaly
Types of RAM
3.Video RAM (VRAM):
• Characteristics:
• Specialized Type: Specifically designed to store image data for computer displays.
• Dual-Ported: Can be accessed by both the CPU and the display hardware simultaneously,
allowing for faster rendering of images.
• Usage: Commonly used in graphics cards.
Mohamed Abdallah Elghzaly
Types of RAM
4.Other Types:
• Embedded DRAM (eDRAM): DRAM integrated directly onto the same chip as the processor
or other circuitry. Used in high-performance systems like gaming consoles.
• Magnetoresistive RAM (MRAM): Uses magnetic states rather than electrical charges to
store data, offering the potential for faster speeds and lower power consumption.
• Ferroelectric RAM (FeRAM): Uses a ferroelectric layer to achieve non-volatility, offering a
combination of speed and endurance with non-volatile characteristics.
Mohamed Abdallah Elghzaly
• Structure of RAM
• Memory Cells:
• DRAM: Consists of a transistor and a capacitor for each bit of data. The capacitor holds a charge
(representing a '1') or no charge (representing a '0').
• SRAM: Each bit is stored in a flip-flop made of four to six transistors. This structure is stable as
long as power is supplied, with no need for refreshing.
• Addressing:
• Memory cells are organized in a matrix (rows and columns).
• Row and Column Address: Each cell is accessed via a unique address formed by the
combination of row and column signals.
• Data Lines (Buses):
• Data Bus: Transfers data to and from the RAM.
• Address Bus: Specifies the address of the data being read from or written to.
• Control Bus: Carries control signals that manage the operations of reading and writing data.
• Memory Modules:
• DIMM (Dual Inline Memory Module): A module with separate electrical contacts on each side,
commonly used in desktops.
• SO-DIMM (Small Outline DIMM): A smaller form factor used in laptops and other compact
devices.
Mohamed Abdallah Elghzaly
• Structure of ROM
1.Memory Cells:
• ROM memory cells are typically arranged in a matrix of rows and columns. Each cell stores a
single bit of data, which is either a '0' or '1'.
• Transistors and Diodes: These are used in various configurations to represent and read the
stored data. The presence or absence of a connection in each memory cell determines the stored
value.
2.Address Decoder:
1. This component selects the specific memory cell to read based on the input address. It decodes
the binary address provided to access the corresponding data stored in the ROM.
3.Data Bus:
1. The data bus transfers the read data from the ROM to the CPU or another device. The width of the
data bus determines how many bits can be read from the ROM at once.
4.Control Lines:
1. Control signals manage the reading process. In most cases, ROM chips include signals like Chip
Enable (CE), Output Enable (OE), and Write Enable (WE) (for programmable ROM types).
5.Programming Elements (for programmable types):
1. PROM: Includes fusible links that can be selectively blown to represent data.
2. EPROM: Uses floating-gate transistors that can be charged or discharged using UV light.
3. EEPROM/Flash Memory: Employs floating-gate transistors that can be electrically charged or
discharged.
Mohamed Abdallah Elghzaly