You have a 4bit binary number. You wish to multiply it with decimal 24 using only combinational logic, with minimal adders.
Respostas da entrevista
Sigiloso
9 de mar. de 2020
one could store 2^4=16 lines of already made solutions in mem and get them in O(1)
1
Sigiloso
22 de abr. de 2022
24 decimal could be represented by: 16 + 8.
Power of 2 multiplication could be done by shifting left.
Therfore, we have: 24*X = 16*X + 8*X = X & "0000" + X & "000".
In this solution we used one adder.