their types and state diagrams. Semiconductor memories

Comprehensive study notes, diagrams, and exam preparation for their types and state diagrams. Semiconductor memories.

Semiconductor Memories: Types and State Diagrams

Definition

Semiconductor memory is an electronic memory device that stores binary information using semiconductor devices such as transistors and capacitors, and it can be read, written, or retained depending on its design.

A state diagram is a graphical representation of the possible states of a memory element and the transitions between those states caused by inputs such as write, reset, set, enable, or clock signals.


Main Content

1. Semiconductor Memory Classification

Volatile memories

  • lose stored data when power is removed. The most common example is RAM (Random Access Memory). Volatile memory is used for temporary storage during processing because it is fast and allows frequent read/write operations.

Non-volatile memories

  • retain data even after power is switched off. Examples include ROM, PROM, EPROM, EEPROM, and Flash memory. These memories are used for permanent or semi-permanent storage of firmware, configuration data, and program code.

  • Semiconductor memories are also classified as static and dynamic:

  • Static memory (SRAM) stores data using flip-flops and does not need refreshing.
  • Dynamic memory (DRAM) stores data as charge in capacitors and requires periodic refreshing.

  • Another classification is based on access method:

  • Random access means any memory location can be accessed directly and in roughly equal time.
  • Sequential access is not typical of semiconductor memory but is seen in other storage systems.
  • Associative access is used in specialized memories such as CAM.

  • Based on usability:

  • Read-only memories are mainly for storing fixed information.
  • Read/write memories allow data to be changed repeatedly.

2. Types of Semiconductor Memories

RAM (Random Access Memory)

  • RAM is a read/write memory used as working memory in computers and digital systems.
  • It stores temporary data, intermediate results, and instructions currently being executed.
  • Types of RAM:
    • SRAM (Static RAM): faster, more expensive, used in cache memory.
    • DRAM (Dynamic RAM): denser, cheaper, used in main memory.

ROM (Read Only Memory)

  • ROM is non-volatile memory used to store permanent instructions.
  • It is used for boot programs, embedded system code, and fixed lookup tables.
  • Types of ROM:
    • Mask ROM: programmed during manufacturing.
    • PROM: programmable once by the user.
    • EPROM: erasable using ultraviolet light and reprogrammable.
    • EEPROM: electrically erasable and reprogrammable.
    • Flash memory: a fast, block-erasable form of EEPROM widely used in storage devices.

Special semiconductor memory types

  • Cache memory is a small, very fast memory located close to the CPU, usually made from SRAM.
  • Video memory stores image/frame data for display systems.
  • CAM (Content Addressable Memory) searches by content rather than by address.
  • FIFO memories are used for buffering and temporary data transfer between systems operating at different speeds.

Key structural difference

  • SRAM uses flip-flops, which makes it fast but large in cell size.
  • DRAM uses one transistor and one capacitor per bit, which makes it dense but needs refresh.
  • ROM-based memories are designed to preserve information without constant power.

Example: A computer uses SRAM in cache, DRAM as main memory, and Flash memory for BIOS/firmware storage or SSDs.


3. State Diagrams of Semiconductor Memory Elements

  • A state diagram shows how memory changes from one stable condition to another based on control inputs.
  • In semiconductor memory, state diagrams are especially useful for understanding bistable elements, SRAM cells, flip-flops, and latch behavior.
  • Memory elements commonly have two stable states:
  • State 0
  • State 1

  • A simple bistable state diagram may look like this:

        Set
   +-----------+
   |           v
 [0] --------> [1]
  ^             |
  |             |
  +-------------+
       Reset
  • This indicates:
  • A Set operation drives the memory to state 1.
  • A Reset operation drives it to state 0.
  • The memory remains in its present state unless an input causes a transition.

  • For a flip-flop or latch, state diagrams help show:

  • Memory retention: maintaining the current state when inputs are inactive.
  • State switching: changing state when write/set/reset control is applied.
  • Invalid or forbidden conditions in some circuits, such as unstable inputs in certain latch designs.

  • In memory cell design:

  • SRAM cell is built from cross-coupled inverters, making it bistable.
  • The cell can stay in either of two states indefinitely as long as power is applied.
  • During write, the input forces the cell into a new state.
  • During read, the state is sensed without disturbing the stored value.

  • For DRAM-like behavior, the state model is different:

  • The stored bit depends on capacitor charge.
  • The state is not perfectly stable over long time periods.
  • Refresh operation restores the charge periodically.

  • State diagrams are also used in finite-state memory control circuits:

  • address decoding
  • write enable sequencing
  • read enable timing
  • refresh control in DRAM

Example of retention and transition:

[1] --(Reset)--> [0]
[0] --(Set)-----> [1]
[1] --(No input)--> [1]
[0] --(No input)--> [0]

This shows that the memory holds its state until a control signal changes it.


Working / Process

1. Data Storage Operation

  • A binary 0 or 1 is stored using electrical states in the memory cell.
  • In SRAM, this is done using a bistable flip-flop arrangement.
  • In DRAM, a capacitor stores charge to represent a bit.
  • In ROM, information is fixed during manufacturing or programming.

2. Data Access Operation

  • During a read operation, the address lines select the required memory location.
  • The memory decoder activates the selected cell or word line.
  • The stored bit is sensed through the output circuitry.
  • In SRAM, the read is fast and does not need refreshing.
  • In DRAM, the read process is destructive in many designs, so the data must be restored afterward.

3. Updating and Retaining Operation

  • In write-enabled memories, input data is forced into the addressed cell.
  • The cell changes state according to the write signal.
  • In volatile memories, the stored data remains only while power is supplied.
  • In DRAM, refresh circuits periodically restore the charge.
  • In ROM-based memories, stored data usually cannot be changed, or can only be changed by special programming methods.

Advantages / Applications

  • Semiconductor memories are compact and lightweight, allowing high storage capacity in small physical space.
  • They provide fast access speed, especially SRAM and cache memories, which improves overall system performance.
  • They are reliable and easy to integrate into digital systems, microprocessors, and embedded devices.
  • They are used in main memory, cache memory, firmware storage, mobile phones, digital cameras, SSDs, routers, and controllers.
  • They support a wide range of applications:
  • temporary working storage in CPUs
  • permanent program storage in embedded systems
  • buffering in communication devices
  • fast lookup and control operations in digital circuits
  • State diagrams help in designing, analyzing, and troubleshooting memory circuits by clearly showing state changes and control behavior.

Summary

  • Semiconductor memories store binary data using electronic circuits in silicon-based devices.
  • They are mainly divided into volatile and non-volatile types, with RAM, ROM, SRAM, DRAM, PROM, EPROM, EEPROM, and Flash as major examples.
  • State diagrams show how memory elements move between logical states like 0 and 1 during set, reset, write, and hold operations.
  • Important terms to remember: RAM, ROM, SRAM, DRAM, Flash memory, volatile memory, non-volatile memory, state diagram, set, reset, refresh, bistable element.