📄 8bits_multiplier.v
字号:
module _8bits_multiplier(result,opa,opb);parameter size=8,wordsize=16;output[wordsize-1:0] result;input[size-1:0] opa,opb;reg[wordsize-1:0] result;always@(opa or opb) begin:mult reg[wordsize-1:0] shift_opa,shift_opb; shift_opa=opa; shift_opb=opb; result=0; repeat(size) if(shift_opb[0]==1) result=result+shift_opa; shift_opa=shift_opa<<1; shift_opb=shift_opb>>1; endendmodule
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -