FPGA乘法器
if(shift_opb)result=result+shift_opa;
shift_opa=shift_opa<<1;
shift_opb=shift_opb>>1;
这个右移我懂,可是这个左移是什么意思呢? 回复【楼主位】517650971
-----------------------------------------------------------------------
拜托,程序能完整一下吗 不懂啊…… 左移1位就是乘上2倍嘛,比如,shift_opa=11B,shift_opb=11B,result=11B+110B(11B左移1位)=1001B
页:
[1]