Cie 2
Cie 2
Program-Controlled I/O:
Write Instruction:
2. Steps:
o If the device is ready, the CPU writes data to the data register
of the device.
o Registers:
o Steps:
2. If the ready flag is set, CPU writes data to the data register.
Read Instruction:
1. Purpose: To receive data from an input device.
2. Steps:
o Registers:
o Steps:
2. If the flag is set, the CPU reads the data from the data register.
Interrupt:
1. Definition:
2. Types:
1. Interrupt Handling:
o Scenario:
o Response:
1. Problem:
Vectored Interrupts:
1. Definition:
2. Advantages:
3. Example:
Interrupt Nesting:
1. Definition:
2. Implementation:
3. Example:
o Device A’s ISR is executing, but Device B (higher priority)
generates an interrupt.
Structure:
1. Basic Components:
2. Organization:
Dynamic RAM:
1. Definition:
2. Working:
3. Advantages:
4. Disadvantages:
1. Definition:
2. Features:
3. Working:
1. Mask ROM:
5. Flash Memory:
1. Definition:
2. Components:
3. Working:
o DMA controller takes control of the bus and performs the data
transfer.
4. Advantages:
Cache Memory:
1. Definition:
o A high-speed memory located between the CPU and main
memory to store frequently accessed data.
2. Features:
3. Operation:
1. Direct Mapping:
2. Associative Mapping:
3. Set-Associative Mapping:
o Each block maps to a specific set but can occupy any line
within the set.
Comparison Table:
Mapping Type Pros Cons
Memory Hierarchy:
1. Definition:
2. Levels of Hierarchy:
o Registers:
o Cache Memory:
o Secondary Storage:
o Tertiary Storage:
▪ Used for archival purposes (e.g., tape drives).
Principles:
1. Locality of Reference:
2. Trade-Offs: