Memory Organization (Microprocessor NIT)-1
Memory Organization (Microprocessor NIT)-1
Irfan Rasool
Introduction to Memory
Memory is a storage device used to store program instructions, data, and results.
Two primary types of memory in computer systems:
● Semiconductor Memories:
○ Characteristics:
■ Faster access time, smaller physical size, lighter, and consumes less power.
○ Usage: Used as the main memory (RAM) in modern computers.
● Magnetic Memories:
○ Characteristics:
■ Slower access time but cheaper compared to semiconductor memories.
○ Usage: Employed as secondary memory (e.g., hard drives) for bulk data storage.
● The capacity of a memory is calculated based on the number of bits and address lines.
○ k-bit address and m-bit word configuration means:
■ Total memory capacity = 2k×m bits.
● Example:
○ Intel 8085A Microprocessor has 16 address lines, allowing it to address 216 memory locations.
○ 216= 65536 memory locations, which is referred to as 64K memory locations.
○ Memory addresses range from 0000H to FFFFH in hexadecimal.
Semiconductor Memory Development
● Basic Unit: The smallest unit of information is the bit (0 or 1).
● Flip-Flop:
○ A flip-flop is an electronic circuit that stores a single bit of data. It has two stable states: 0 and 1.
○ D-Type Flip-Flop:
■ Inputs: Data input (D) and clock input (CLK).
■ Outputs: The stored bit (Q) and its complement (Q’).
■ Flip-flops are commonly used to store bits in memory devices.
● Edge-Triggered Flip-Flop:
○ These flip-flops change state during transitions of the clock signal, either on the rising edge (0 →
1 transition) or the falling edge (1 → 0 transition).
○ Types:
■ Positive Edge Triggered: Responds to the rising edge of the clock.
■ Negative Edge Triggered: Responds to the falling edge of the clock.
Level-Triggered Flip-Flop
High-Z State:
• When the READ signal becomes
inactive, the output bus goes into a
high-impedance (high-Z) state,
ensuring no unwanted data is outputted.
Bidirectional Data Bus and Chip Enable
● Bidirectional Data Bus:
○ Memory systems often use a single bidirectional
data bus for both reading and writing data.
○ At any instant, either data is written to or read from
memory, but not both.
● Chip Enable (CE):
○ Memory systems can contain multiple memory
chips.
○ The CE (chip enable) signal selects which
memory chip is active for a read or write
operation.