Loading simulator…
The circuit implements a 4-bit unsigned iterative shift-add multiplier. Instead of using a large combinational multiplier, it reuses the same 4-bit adder over four clock cycles.
1. Conditional Multiplicand Generation
Q[0] determines whether A participates in the current addition.
Four AND gates generate:
X[i] = A[i] AND Q[0]
Therefore:
Q[0] = 0 → X = 0000
Q[0] = 1 → X = A
This allows the adder to receive either A or zero without another 4-bit MUX stage.
2. Shared 4-Bit Addition
Four Full Adders form one ripple-carry adder:
{C,S[3:0]} = ACC[3:0] + X[3:0]
The LSB Full Adder uses Cin = 0, and each carry output connects to the next higher-bit Full Adder.
The same adder is reused on every iteration.
3. ACC Register Update
ACC[3:0] stores the upper part of the partial product.
After each addition:
ACC_DFF_0 ← S[1]
ACC_DFF_1 ← S[2]
ACC_DFF_2 ← S[3]
ACC_DFF_3 ← C
Therefore:
ACC_next = {C,S[3],S[2],S[1]}
nRESET clears all ACC flip-flops before a new multiplication begins.
4. Q Load and Shift
Four MUXes select the next value for the Q register.
When LOAD = 1:
Q_next = B
When LOAD = 0:
Q_DFF_0 ← Q[1]
Q_DFF_1 ← Q[2]
Q_DFF_2 ← Q[3]
Q_DFF_3 ← S[0]
So:
Q_next = {S[0],Q[3],Q[2],Q[1]}
S[0] enters the MSB of Q, completing the combined right shift of the partial product.
5. Four-Cycle Multiplication
After reset and loading B, each rising clock edge performs:
Check Q[0]
→ Generate X
→ Add ACC + X
→ Shift the result
→ Update ACC and Q
This sequence runs four times, one iteration for each bit of the multiplier.
Reusing one adder reduces hardware area, with the trade-off of requiring multiple clock cycles.
6. Final Product
The output is formed directly from the two register banks:
Product[7:4] = ACC[3:0]
Product[3:0] = Q[3:0]
After the fourth iteration:
Product[7:0] = {ACC,Q} = A × B