2082 1

BIT151 ยท 2082

Differentiate between RISC and CISC Architecture and Booth's Multiplication

Differentiate between RISC and CISC Architecture and Booth's Multiplication

Microprocessor and Computer ArchitectureChapter 10: Computer Architecture Paradigms and 8085 FeaturesRISC and CISC architecture comparisonNumerical: Booth's multiplication algorithm

RISC vs CISC Architecture and Booth's Multiplication Algorithm

Given

  • Multiply 9 ร— 7 using Booth's Algorithm
  • Multiplicand $M = 9$
  • Multiplier $Q = 7$
  • Both positive, need signed 2's complement representation

Bit-width check: $9 = 1001_2$ (4 bits). To represent as signed positive, we need a leading 0, so minimum 5 bits: $9 = 01001$. Similarly $7 = 00111$. Use $n = 5$ bits.


Part 1: RISC vs CISC Architecture [4 Marks]

RISC (Reduced Instruction Set Computer) uses a small set of simple, fixed-length instructions, each executing in a single clock cycle.

CISC (Complex Instruction Set Computer) uses a large set of complex, variable-length instructions where one instruction may perform several low-level operations over multiple cycles.

FeatureRISCCISC
Instruction SetSmall, simpleLarge, complex
Instruction LengthFixedVariable
Execution TimeSingle clock cycleMultiple clock cycles
Addressing ModesFewMany
Control UnitHardwiredMicroprogrammed
RegistersLarge numberFewer
Memory AccessLoad/Store onlyInstructions can access memory directly
ExamplesARM, MIPS, SPARCIntel x86, VAX

Part 2: Booth's Multiplication -- 9 ร— 7 [6 Marks]

Booth's Rules

$Q_0$$Q_{-1}$Operation
00Shift only
11Shift only
01$A = A + M$, then shift
10$A = A - M$, then shift

Setup

  • $M = 01001$
  • $-M = 10111$ (2's complement of $M$)
  • $Q = 00111$
  • $A = 00000$, $Q_{-1} = 0$, $n = 5$

Step-by-Step

Initial: $A=00000,\ Q=00111,\ Q_{-1}=0$

Cycle 1: $Q_0 Q_{-1} = 10 \Rightarrow A = A - M$ $$A = 00000 + 10111 = 10111$$ Before ASR: $A=10111,\ Q=00111,\ Q_{-1}=0$ After ASR: $A=11011,\ Q=10011,\ Q_{-1}=1$

Cycle 2: $Q_0 Q_{-1} = 11 \Rightarrow$ no op After ASR: $A=11101,\ Q=11001,\ Q_{-1}=1$

Cycle 3: $Q_0 Q_{-1} = 11 \Rightarrow$ no op After ASR: $A=11110,\ Q=11100,\ Q_{-1}=1$

Cycle 4: $Q_0 Q_{-1} = 01 \Rightarrow A = A + M$ $$A = 11110 + 01001 = 00111$$ Before ASR: $A=00111,\ Q=11100,\ Q_{-1}=1$ After ASR: $A=00011,\ Q=11110,\ Q_{-1}=0$

Cycle 5: $Q_0 Q_{-1} = 00 \Rightarrow$ no op After ASR: $A=00001,\ Q=11111,\ Q_{-1}=0$

Summary Table

CycleAQ$Q_{-1}$$Q_0Q_{-1}$Operation
Init00000001110--Initialize
11011100111010A = A - M
ASR11011100111Shift
21101110011111No op
ASR11101110011Shift
31110111001111No op
ASR11110111001Shift
40011111100101A = A + M
ASR00011111100Shift
50001111110000No op
ASR00001111110Shift

Result

$$AQ = 00001,11111$$

Converting to decimal: $0000111111_2 = 63$

$$9 \times 7 = 63 \checkmark$$

Conclusion: Booth's algorithm correctly yields the product 63.

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.