Computer Organisation and Architecture Solution 1
Computer Organisation and Architecture Solution 1
Input device is
Answer: a. Keyboard
3. 1 GB = _____ Bytes
Answer: d. 1,000,000,000
4. RAM is
Answer: c. EAROM
11. The ___ stores intermediate data used during the execution of the instructions:
Answer: Register
13. Register that holds the address for the stack is called:
Answer: Stack pointer
14. The ____ points at the address of the next instruction in the program:
Answer: Storage
One-Address Instructions:
Definition: The address field specifies a memory location that contains the address of
the operand.
Example: LOAD (2000) means load data from the address found at memory location
2000.
Advantages: Allows greater flexibility in addressing and can access larger memory
space, but requires two memory accesses.
Q23: What are the steps followed by CPU when an interrupt occurs?
1. Save Current State – The CPU saves the current execution state (registers, program
counter, etc.).
2. Disable Further Interrupts – It temporarily disables other interrupts to prevent
conflicts.
3. Identify the Interrupt – The CPU checks the interrupt type and its priority.
4. Fetch Interrupt Service Routine (ISR) Address – The CPU loads the address of the
corresponding ISR from the interrupt vector table.
5. Execute the ISR – The CPU runs the ISR to handle the interrupt.
6. Restore Saved State – Once the ISR is completed, the CPU restores the previously
saved state.
7. Resume Execution – The CPU resumes normal execution from where it left off.
8. Q24: Compare internal interrupts and external interrupts.
Q.29 What is the difference between static RAM and dynamic RAM?
Data is sent at regular intervals, synchronized with a shared clock signal between
sender and receiver.
Ensures both parties operate in time, increasing transfer efficiency.
Ideal for high-speed communication where large volumes of data need to be
transmitted quickly.
Example: USB communication.
Data is sent without a shared clock; it uses start and stop bits to indicate the beginning
and end of each byte.
Allows for flexibility, as the sender and receiver do not need to be perfectly timed.
Suitable for sporadic data transmission over longer distances.
Example: RS-232 serial communication.
Key Points:
Function: It determines which interrupt has the highest priority when multiple
interrupts occur simultaneously.
Operation: The encoder generates a priority code corresponding to the highest-
priority interrupt, allowing the CPU to service it first.
Importance: This ensures critical tasks are handled promptly while preventing lower-
priority interrupts from delaying the processing of more important ones, thus
maintaining system efficiency and stability.