Tribhuwan University

Institute of Science and Technology

2082

Bachelor Level / First Year / Second Semester / Science

Bachelors in Information Technology (BIT151)

(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.

Section A

Long Answers Questions

Attempt any TWO questions.
[2*10=20]
1.
Differentiate between RISC and CISC architecture.Multiply 9 and 7 using Booth’s Multiplication algorithm.[4+6]

Differentiate between RISC and CISC Architecture [4 marks]

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

Sub-question 1: Multiply 9 and 7 using Booth's Multiplication Algorithm [6 marks]

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: 000011111100001\,11111 in decimal = 00111111200111111_2 = 63

9×7=639 \times 7 = 63

Conclusion: Booth's algorithm correctly computes the product as 63 using addition, subtraction, and arithmetic shift right operations.

2.
Explain the features of SAP2 computer with well labeled block diagram.How is it different compared to SAP1 Computer?[8+2]
3.
Explain different addressing modes in 8085 microprocessor.Explain any five arithmetic instructions in 8085 microprocessor with suitable example.[5+5]
Section B

Short Answers Questions

Attempt any Eight questions.
[8*5=40]
4.
Write an assembly language program to multiply 08H and 09H, store the product in memory location 8050H and carry in 8051H using 8085 microprocessor instructions. [5]
5.
Explain different arithmetic micro operations in brief. [5]
6.
Subtract (1234)10(1234)_{10} from (1197)10(1197)_{10} using the 99's complement and 1010's complement methods. [5]
7.
Explain about memory hierarchy in computer system. [5]
8.
Write symbolic microprogram for FETCH operation. [5]
9.
What are different pipelining hazards? Explain along with their solution. [5]
10.
Explain all the flags in 8085 microprocessor. [5]
11.
Explain the role of DMA controller in DMA operation. [5]
12.
Write short notes on: (a) Microprogrammed Control Unit (b) Virtual Memory. [5]