Booth's Signed Multiplication Algorithm and Hardware Architecture
Hardware multiplier architecture for 2's complement signed binary arithmetic without sign-extension blowup.
Learning Objectives
Essential Prerequisites
The Core Mental Model
Why This Exists
Modern CPUs jaise Intel Core aur Apple M-series me arithmetic operations per clock cycle billions of times execute hoti hain. Booth algorithm signed numbers ko efficiently multiply karta hai aur contiguous 1s ki strings ko single addition aur subtraction me convert karke execution cycles drastically reduce karta hai.
Beginner Foundation
Booth's algorithm 2's complement signed binary numbers ko multiply karne ke liye 4 registers use karta hai: 1. M (Multiplicand): Pehla number jise multiply karna hai. 2. Q (Multiplier): Doosra number. 3. A (Accumulator): Result ka high-order register, initially 0. 4. Q-1: Ek 1-bit extra flip-flop register, initially 0. Har cycle me hum Q ki last bit (Q0) aur Q-1 ko check karte hain: - 10: A = A - M, fir Arithmetic Right Shift - 01: A = A + M, fir Arithmetic Right Shift - 00 ya 11: No operation, sirf Arithmetic Right Shift Yeh process N cycles (bits count) tak chalta hai.
Micro Concepts Decomposition
Booth Recoding Table (00, 01, 10, 11)
10 triggers subtraction (-M), 01 triggers addition (+M), 00 and 11 trigger no addition.
Arithmetic Shift Right (ASHR)
ASHR right shifts all bits but replicates the sign bit (MSB) to preserve 2's complement value.
Hardware Register Datapath
Registers A, Q, and Q-1 act as a continuous shift register of length 2n + 1 bits.
Hardware State Machine Architecture
Interactive Simulator
Booth's Signed Multiplier State Machine
Inspect register transitions, arithmetic operations, and sign-preserving arithmetic right shifts in real-time.
Configure operands and start the simulator.
Booth's algorithm state machine visualizer.
Step-by-Step Hardware Trace Log
| Step | Cycle | Phase | Operation | A | Q | Q₋₁ | SC |
|---|
End-to-End Execution Trace
Step-by-Step Code Execution (C)
Sandbox Terminal Ready
Click Run Code or press Ctrl+Enter to compile and execute.
Active Assessment Quiz
No Practice Questions Configured
Questions for this topic are currently undergoing faculty review.