coa prep
coa prep
Instruction Set Uses a small, highly optimized set of Uses a large set of complex
instructions instructions
Execution Time Single-cycle execution for most Multiple cycles for many instructions
instructions
Memory Usage More instructions, less memory per Fewer instructions but each can use
instruction more memory
Compiler Role Compiler must handle more code Compiler has simpler job due to rich
optimization instruction set
Usage Used in mobile devices, embedded Used in desktops, laptops, and servers
systems
Register Stack vs Storage Medium Uses processor's internal Uses main memory
Memory Stack registers. (RAM).
Instruction Cycle vs Definition Entire process of fetching, Only the phase where
Execution Cycle decoding, and executing instruction is executed.
an instruction.
Main Memory vs Location Located outside the CPU. Lies between CPU and
Cache Memory main memory.
Programmed I/O vs CPU Involvement CPU continuously checks CPU is interrupted only
Interrupt-driven I/O device status. when device is ready.
nginx
CopyEdit
R1 ← R2 + R3
This denotes that the contents of R2 and R3 are added, and the result is stored in R1.
(b) Arithmetic Microoperations:
These operations perform basic arithmetic functions like addition, subtraction, increment, decrement,
etc., between the contents of registers.
Example:
nginx
CopyEdit
R3 ← R1 + R2
This adds the contents of R1 and R2 and stores the result in R3.
(c) Register Transfer Notation:
Let the registers be A, B, C, D.
Step 1: T ← B + C
Step 2: A ← T - D
Combined:
css
CopyEdit
T ← B + C A ← T - D
nginx
CopyEdit
LDA 200
Means load the content of memory address 200 into the accumulator.
Answer:
(a) Addressing Modes:
They specify how to calculate the effective memory address of an operand. Common modes are
direct, indirect, immediate, register, indexed, etc.
(b)
Indirect: Address field refers to memory location that holds the effective address.
Example: LDA (500)
Immediate: Operand is part of instruction.
Example: LDA #25
(c)
Instruction: LDA (500)
Answer:
css
CopyEdit
Registers ↓ Cache Memory ↓ Main Memory ↓ Secondary/Auxiliary Memory
(c)
EAT = (Hit ratio × Cache time) + (Miss ratio × Memory time)
= (0.9 × 10) + (0.1 × 100)
= 9 + 10 = 19 ns
Section B (2 × 14 = 28 marks)
Q5. Data Representation and Floating Point
(a) Explain normalized floating point representation.
(b) Represent -37.625 in IEEE 754 single precision.
(c) Perform fixed-point addition: A = 01101100, B = 10010110.
Answer:
(a) Normalized Floating Point:
It is a way to represent real numbers such that the mantissa begins with a non-zero digit. IEEE 754
single precision uses 32 bits:
1 bit: Sign
8 bits: Exponent (with bias 127)
23 bits: Mantissa (fraction)
(b) Convert -37.625:
Sign bit = 1
37.625 in binary = 100101.101
Normalized = 1.00101101 × 2^5
Exponent = 5 + 127 = 132 = 10000100
Answer:
(a) Asynchronous Data Transfer:
Data is transferred using handshake signals (ready/ack). Sender and receiver operate independently.
(b)
Section A (4 × 8 = 32 Marks)
Each question contains 3 parts – Concept Explanation, Numerical/Problem, and Application.
Synchronous Transfer: All devices share a common clock. Transfers occur at regular
intervals.
Asynchronous Transfer: No common clock; uses handshake signals for coordination (e.g.,
ACK , REQ ).
(c)
Memory Read: CPU places address on address bus → Control Bus sends “Read” → Memory
sends data on Data Bus.
Memory Write: CPU sends data and address → Control Bus sends “Write” → Memory
stores data.
(Include block diagram with CPU ↔ Memory via buses)
Q2. Microoperations
Logical shift
Arithmetic shift
Circular shift
(b) Arithmetic shift right: Used for signed binary numbers (2’s complement). It preserves the sign bit
while shifting. Equivalent to integer division by 2.
Section B (2 × 14 = 28 Marks)
Each question includes concept explanation, detailed application, and problem.
0-address: Stack-based
1-address: Accumulator-based
2-address: Needs fewer instructions than 1-address
3-address: More flexibility but longer instruction
(c)
MOV R1, R2 (R1 = R2 = 50)
Zero-address using Stack:
PUSH 35
PUSH 50
POP T1, POP T2
T2 → T1
PUSH T1 → Stack: 50