Semester
Subject
Year
Tribhuwan University
2082
Bachelor Level / First Year / Second Semester / Science
(Microprocessor and Computer Architecture)
Full Marks: 60
Pass Marks: 24
Time: 3 Hours
Candidates are required to give their answers in their own words as for as practicable.
The figures in the margin indicate full marks.
Long Answers Questions
RISC (Reduced Instruction Set Computer) uses simple, fixed-length instructions executed in one clock cycle, while CISC (Complex Instruction Set Computer) uses complex, variable-length instructions that may take multiple cycles.
| Feature | RISC | CISC |
|---|---|---|
| Instructions | Simple, few in number | Complex, large in number |
| Instruction Length | Fixed length | Variable length |
| Execution Time | Single clock cycle | Multiple clock cycles |
| Addressing Modes | Few | Many |
| Design Philosophy | Hardware-oriented (hardwired) | Software-oriented (microprogrammed) |
| Registers | Large number of registers | Fewer registers |
| Examples | ARM, MIPS, SPARC | Intel x86, VAX |
Booth's Algorithm is a multiplication algorithm that handles signed binary numbers using 2's complement representation and works by examining pairs of bits to decide add, subtract, or shift operations.
M = 01001, -M = 10111, Q = 00111, A = 00000, Q₋₁ = 0, n = 5
| Cycle | A | Q | Q₋₁ | Q₀ Q₋₁ | Operation |
|---|---|---|---|---|---|
| Init | 00000 | 00111 | 0 | — | — |
| 1 | 10111 | 00111 | 0 | 1 0 → A=A-M | Subtract |
| ASR | 11011 | 10011 | 1 | Shift | |
| 2 | 11011 | 10011 | 1 | 1 1 → No op | — |
| ASR | 11101 | 11001 | 1 | Shift | |
| 3 | 11101 | 11001 | 1 | 1 1 → No op | — |
| ASR | 11110 | 11100 | 1 | Shift | |
| 4 | 11110 | 11100 | 1 | 0 1 → A=A+M | Add |
| A+M | 00111 | 11100 | 1 | ||
| ASR | 00011 | 11110 | 0 | Shift | |
| 5 | 00011 | 11110 | 0 | 0 0 → No op | — |
| ASR | 00001 | 11111 | 0 | Shift |
Result = A Q = 00001 11111
Verification: in decimal = = 63
Conclusion: Booth's algorithm correctly computes the product as 63 using addition, subtraction, and arithmetic shift right operations.
Short Answers Questions