Progress Checklist: Final Master Phase
Final Level Active
Level 0: Foundation
Level 1: Range & Limits
Level 2: Fast Conversions
Level 3: Arithmetic & Overflow
Level 4: Advanced Shifts & Hex
1. Binary Shift Operations & Multiplication by Powers of 2
Bit shifting fundamentals, MSB truncation, and LSB zero-fill logic
Computer hardware (ALU) multiplication perform karne ke liye slow repeated addition use nahi karta. Powers of 2 ($2, 4, 8, 16$) se multiply karne ke liye ALU Left Shift (Logical / Arithmetic Shift Left) execute karta hai in a single clock cycle:
- Multiply by 2 ($2^1$): Shift Left by 1 bit (append one
0at LSB). - Multiply by 4 ($2^2$): Shift Left by 2 bits (append two
00at LSB). - Multiply by 8 ($2^3$): Shift Left by 3 bits (append three
000at LSB). - Multiply by 16 ($2^4$): Shift Left by 4 bits (shift exactly 1 full Hex digit!).
Fixed Bit-Width Truncation Rule:
Jab register fixed width ka hota hai (e.g. 16-bit register), toh left shift karne par sabhi high-order bits jo register boundaries se bahar nikalte hain unhe discard (truncate) kar diya jata hai.
Jab register fixed width ka hota hai (e.g. 16-bit register), toh left shift karne par sabhi high-order bits jo register boundaries se bahar nikalte hain unhe discard (truncate) kar diya jata hai.
2. Hexadecimal Shifting Shortcuts
Fast conversion between 4-bit binary nibbles and Hex digits
Har ek Hexadecimal digit exactly 4 Binary bits (one nibble) ke barabar hota hai. Hex mein multiply karne ka sabse fast method:
- Hex → Binary: Har Hex digit ko uske standard 4-bit binary nibble mein expand karo.
- Bit Shift: Jitne bits ka shift chahiye (e.g. $\times 8 \implies$ 3 bits left), bits ko shift karo aur right mein zeros add karo. Discard extra bits from left.
- Binary → Hex: Shuffled bit string ko 4-4 ke groups mein partition karke wapas Hexadecimal digits mein convert karo!
Immediate Demonstration: Multiply $(F87B)_{16}$ by 2
Goal: Compute $2 \times N$ for 16-bit signed integer $N = (\text{F87B})_{16}$.
Step 1 (Binary): 1 1 1 1 1 0 0 0 0 1 1 1 1 0 1 1
F 8 7 B
Step 2 (Shift 1): [1] 1 1 1 0 0 0 0 0 1 1 1 1 0 1 1 0 ← MSB 1 discarded, 0 appended
Step 3 (Hex): F 0 F 6 &implies; (F0F6)_16
3. Advanced Non-Power & Odd Number Multiplication
ALU decomposition techniques for $3N, 5N, 6N, 7N, 9N$
Agar exam question mein multiplier power of 2 na hokar odd number ($3, 5, 7, 9$) ya composite number ($6$) ho, toh ALU us multiplier ko Powers of 2 ke Addition ya Subtraction mein break kar deta hai:
| Operation | Power-of-2 Breakdown | Hardware Shift & Add Expression | ALU Execution Trick |
|---|---|---|---|
| $3 \times N$ | $2 + 1$ | $\mathbf{(\text{Shift } N \text{ left by 1}) + N}$ | Shift 1 bit left, add original $N$ |
| $5 \times N$ | $4 + 1$ | $\mathbf{(\text{Shift } N \text{ left by 2}) + N}$ | Shift 2 bits left, add original $N$ |
| $6 \times N$ | $4 + 2$ | $\mathbf{(\text{Shift } N \text{ left by 2}) + (\text{Shift } N \text{ left by 1})}$ | Shift by 2, add shifted by 1 |
| $7 \times N$ | $8 - 1$ | $\mathbf{(\text{Shift } N \text{ left by 3}) - N}$ | Shift 3 bits left, subtract original $N$ |
| $9 \times N$ | $8 + 1$ | $\mathbf{(\text{Shift } N \text{ left by 3}) + N}$ | Shift 3 bits left, add original $N$ |
4. Official NIMCET PYQs Showcase (2015 & 2019 $N$ & $8N$)
The repeated high-probability 16-bit shift question decoded step-by-step
NIMCET 2019 & 2015 (Repeated Verbatim)
Select an option to check
If $N$ is a 16-bit signed integer, then the 2's complement representation of $N$ is $(F87B)_{16}$. Then, the 2's complement representation of $8 \times N$ is:
A
$(C3D8)_{16}$
B
$(187B)_{16}$
C
$(F878)_{16}$
D
$(987B)_{16}$
NIMCET Standard Advanced Pattern
Select an option to check
If an 8-bit register in 2's complement stores the value $H = (D7)_{16}$, what is the 2's complement representation of $2 \times H$ in hexadecimal?
A
$(AF)_{16}$
B
$(AE)_{16}$
C
$(BD)_{16}$
D
$(AA)_{16}$
5. Interactive Hexadecimal Bit-Shift Simulator
Simulate multiplying any Hexadecimal number by 2, 4, 8, or custom shifts in real time
Multi-Nibble Hex Shift Unit
Enter any Hex value to visualize binary nibbles and left-shift result.