Booth's Signed Multiplication Algorithm
Hardware-efficient multiplication algorithm that multiplies two signed binary numbers in two's complement notation by treating consecutive strings of 1s as single operations.
Learning Objectives
- •Explain the mathematical rationale behind string-of-ones reduction in binary multiplication.
- •Construct and trace the hardware register state machine: A, Q, Q-1, and M.
- •Execute manual Booth multiplication for positive, negative, and mixed-sign operands.
- •Differentiate between Logical Right Shift and Arithmetic Right Shift (ARS).
- •Analyze why Booth's algorithm reduces the expected number of additions/subtractions.
Essential Prerequisites
- •Binary 2's Complement representation and negation
- •Binary Addition and Subtraction using 2's complement logic
- •Basic register shift concepts in digital logic
Booth's Algorithm - Negative Numbers ki Fast Multiplication
Normal school waali binary multiplication mein negative numbers aate hi dimaag kharab ho jaata hai, kyunki MSB bit 1 hone se value negative hoti hai. Andrew Booth ne 1950 mein ek mast trick nikali: Continuous 1s ke block ko baar-baar add karne ke bajaye, shuruat mein ek baar subtract karo aur end mein ek baar add karo! Jaise 99 se multiply karne ke liye 99 baar add mat karo, seedhe x * 100 karke ek baar x minus kar do. Booth's algorithm 2's complement mein naturally negative numbers ko bina kisi sign separation ke multiply kar deta hai.
Bhai socho tumhe kisi ko 99 rupaye dene hain. Ek-ek rupaye ke 99 sikke dene mein kitna time lagega? Smart banda 100 ka note dega aur 1 rupaya wapas maang lega. Exactly yahi Booth's algorithm karta hai binary 11111 ke saath!
Booth's ka 4-bit manual numerical solve karne ko aata hai (e.g. (+7) * (-3)). Rule hamesha yaad rakhna: Look at (Q0, Q-1): Agar '10' hai toh A = A - M, agar '01' hai toh A = A + M, agar '00' ya '11' hai toh no operation. Aur har cycle ke baad ARS (Arithmetic Right Shift) lagana mat bhoolna, jismein MSB sign bit copy hoti hai!
Why Arithmetic Right Shift (ARS) instead of Logical Right Shift? Interviewer yahi trap set karta hai. Bolo: 'Logical shift MSB mein 0 daal deta hai jo negative number ka sign badal kar usse positive bana dega! ARS MSB sign bit ko preserve karta hai taaki 2's complement arithmetic mathematically accurate rahe.'
The Core Mental Model
Why This Exists
Standard binary multiplication performs an addition for every bit '1' in the multiplier. Andrew Donald Booth realized in 1950 that 011110 = 100000 - 000010 (i.e. 2^5 - 2^1). Booth's algorithm replaces a sequence of repeated additions with a single subtraction at the start and a single addition at the end.
Beginner Foundation
When we multiply signed binary numbers, negative numbers normally cause havoc because regular shift-and-add treats MSB 1 as large positive value instead of negative. Booth's algorithm handles both positive and negative operands natively using an extra 1-bit register called Q-1 and an Arithmetic Shift that keeps the negative sign intact.
Micro Concepts Decomposition
Two's Complement Signed Representation
Negative numbers are represented by taking the 1's complement and adding 1. Booth's algorithm operates directly on 2's complement operands without requiring sign separation.
Register Configuration (A, Q, Q-1, M)
A is the Accumulator initialized to 0. Q holds the Multiplier. Q-1 is a single flip-flop initialized to 0 to store the bit shifted out of Q0. M holds the Multiplicand.
Inspection Condition Table (Q0, Q-1)
Examine the least significant bit of Q (Q0) and Q-1: '10' implies transition from 0 to 1 -> A = A - M; '01' implies transition from 1 to 0 -> A = A + M; '00' and '11' imply no arithmetic change.
Arithmetic Right Shift (ARS)
ARS shifts bits of [A, Q, Q-1] right by 1 position. Crucially, the most significant bit (MSB) of A remains unchanged to preserve the sign (sign-extension).
Iteration Count and Termination
The cycle repeats exactly n times, where n is the number of bits in the multiplier. The final 2n-bit product is stored across concatenated registers A and Q.
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.
Where Students Lose Marks
Active Assessment Quiz
Booth's Signed Multiplication Algorithm — Practice Questions
In Booth's algorithm, what arithmetic action is performed when the two inspection bits (Q0, Q-1) are '10'?