Binary Multiplication Flashcards
What are the two numbers in a multiplication called? Which is which?
> Multiplicand = Number to be multiplied
> Multiplier = Number to multiply the multiplicand by
What is the table for single digit multiplication?
x | 0 | 1 |
0 | 0 | 0 |
1 | 0 | 1 |
How can single digit multiplication be implamented?
Using an AND gate
For two multiplied binary numebrs what is the total number of bits required for any result?
Max Width = n + m
How can two unsigned binary numbers be multiplied?
Using binary long multiplication
How can two signed binary number be multiplied?
By using binary long multiplication but we extend to inifinity the most significant bit of each binary number and then take the max width number of bits from the result
What is a shift add multiplier?
This method uses an ALU and shoft registers with an output register and some control logic to calculate the total
What is the benefit and draw back of using a shift add multiplier?
> Good: because it uses few added logic elements to implament
Bad: Because it takes a lot of clock cycles to calcualte
What are the 4 differet registers used in a shift add multiplier?
> Register I: Counter (for number of clock cycles)
Register B: Multiplicand
Register Q: Multiplier
Register A: Output
What is the process for shift add multiplication?
- Output register A = 0
[LOOP] - Read the register Q to see if it has a 1 in its first position
> If it is a 1 then add B to A using the ALU - The output is then fed back into the input of the ALU
- Register B is then left shifted
- Register Q is then right shifted
[GOTO LOOP]
> The process repeats until the I register is equal to the number of digits in the Q register
> Final output A is the total
What is an array multiplier?
This is a method of conducting a multiplication in a signle clock cycle using hardware
What is a 1-bit array multiplier?
An AND gate
What is the circuit for a 4-bit array multiplier?
[Picture5]
What are the pros and cons of array multipliers?
Pros: It can perform unsigned multiplication in a single clock cycle Cons: > Propagation delay can limit speed > Lots of resources required > Takes up a lot of space