1.

Design A Circuit That Calculates The Square Of A Number?

Answer»

It should not use any multiplier circuits. It should use Multiplexers and other logic?

1^2=0+1=1
2^2=1+3=4
3^2=4+5=9
4^2=9+7=16
5^2=16+9=25

See a PATTERN yet? To get the next square, all you have to do is add the next odd number to the PREVIOUS square that you found. See how 1,3,5,7 and finally 9 are added. Wouldn’t this be a possible SOLUTION to your question since it only will use a COUNTER, multiplexer and a COUPLE of adders? It seems it would take n clock cycles to calculate square of n.

It should not use any multiplier circuits. It should use Multiplexers and other logic?

1^2=0+1=1
2^2=1+3=4
3^2=4+5=9
4^2=9+7=16
5^2=16+9=25

See a pattern yet? To get the next square, all you have to do is add the next odd number to the previous square that you found. See how 1,3,5,7 and finally 9 are added. Wouldn’t this be a possible solution to your question since it only will use a counter, multiplexer and a couple of adders? It seems it would take n clock cycles to calculate square of n.



Discussion

No Comment Found