@laserm to [email protected] • 4 months agoelectrical engineer ruleimagemessage-square70arrow-up1482arrow-down118
arrow-up1464arrow-down1imageelectrical engineer rule@laserm to [email protected] • 4 months agomessage-square70
minus-squarepolonius-rexlinkfedilink5•4 months agois that how the alu performs multiplication? with a binary adder?
minus-squareDumbAceDragonlinkfedilinkEnglish9•edit-24 months agoYes. Typically, to multiply two n-bit numbers, you need n - 1 n-bit adders. You basically do long multiplication. I’d upload an image but either voyager or my instance won’t let me for some reason, so sorry if this doesn’t embed right
minus-square@[email protected]linkfedilink3•4 months ago I’d upload an image but either voyager or my instance won’t let me for some reason, so sorry if this doesn’t embed right Embedded just fine on my end (Jerboa)
minus-square@[email protected]linkfedilink2•4 months agoShouldn’t you be able to get away with two 2n bit adders and recursion?
minus-square@Phoenix3875link1•4 months agoConceptually yes, but you can achieve better efficiency by putting multiple adders together with e.g. a Wallace tree. There are more efficient ways to expand adders than simply chaining them as well.
is that how the alu performs multiplication? with a binary adder?
Yes. Typically, to multiply two n-bit numbers, you need n - 1 n-bit adders. You basically do long multiplication.
I’d upload an image but either voyager or my instance won’t let me for some reason, so sorry if this doesn’t embed right
this makes sense
Embedded just fine on my end (Jerboa)
Shouldn’t you be able to get away with two 2n bit adders and recursion?
Conceptually yes, but you can achieve better efficiency by putting multiple adders together with e.g. a Wallace tree.
There are more efficient ways to expand adders than simply chaining them as well.
Gosh, time to rebuild my ALU again…