517650971 发表于 2011-10-20 17:20:11

FPGA乘法器

if(shift_opb)
    result=result+shift_opa;

shift_opa=shift_opa<<1;
shift_opb=shift_opb>>1;

这个右移我懂,可是这个左移是什么意思呢?

daxiatianzi 发表于 2011-10-21 22:04:30

回复【楼主位】517650971
-----------------------------------------------------------------------
拜托,程序能完整一下吗

hi289 发表于 2011-10-23 13:25:40

不懂啊……

aquan0705 发表于 2011-10-24 08:30:43

左移1位就是乘上2倍嘛,比如,shift_opa=11B,shift_opb=11B,result=11B+110B(11B左移1位)=1001B
页: [1]
查看完整版本: FPGA乘法器