Hey,
I had a question about programming in VHDL. I need to write a program that will multiply two (two bit) numbers without using the * (multiplication operator).
I have figured out how to do this, we could do a bit shift to the left if we were multiplying by 2, and we could do the same and add the first number to the result if the number is being multiplied by 3.
I took a shot at writing the code, but it doesn't quite work...
Appreciate any help on this.
When multiplying 2 2-bit numbers, the result will be 4 bits. If you write out a truth table, you can use that to generate a formula for each of the result bits.