当前位置:网站首页>General multiplier design, verilog code
General multiplier design, verilog code
2022-06-29 09:00:00 【Da Xi】
One 、 Preface :
verilog Is a language for describing hardware , Using the multiplier compiler directly will optimize the multiplier IP.
Small bit width , One cycle can output results , Large bit width allows you to select pipelined output . But the multiplier IP There are also restrictions , Bit width limit , Unknown timing, etc .
The commonly used multiplication method is shift addition . for example
A = A<<1 ; // complete A * 2
A = (A<<1) + A ; // Corresponding A * 3
A = (A<<3) + (A<<2) + (A<<1) + A ; // Corresponding A * 15
A shift register and an adder can be used to multiply 3 operation , But multiply by 15 You need to use 3 Shift registers and 3 An adder , Reverse thinking can also use shift subtraction . Be careful : Sometimes a digital circuit cannot add multiple variables in one cycle , Multiple addition will cause the timing to be unsatisfied . here , Pipelined multipliers are effective .
Two 、 principle : It's like the decimal system

The multiplicand corresponds to the multiplier bit Bits are shifted and accumulated , Even if the multiplication process is completed . Suppose a clock cycle can only complete one accumulation , Then the least multiplication time is exactly the bit width of the multiplier , It is recommended to use the number with narrow bit width as a multiplier .
3、 ... and 、verilog Design
module mult_low
#(parameter N=4,
parameter M=4)
(
边栏推荐
- Unity C# 网络学习(十二)——Protobuf生成协议
- Compare homekit, MI family, and zhiting family cloud edition for what scene based experiences
- Huawei equipment is configured with small network WLAN basic services
- Open3D 最远点采样(FPS)
- Leetcode (142) - circular linked list II
- Tutorial on building open source Internet of things platform
- Self attention mechanism
- P4769-[NOI2018]冒泡排序【组合数学,树状数组】
- Mutex mutex
- MYSQL行转列例子
猜你喜欢
随机推荐
Mysql使用union all统计多张表组合总数,并分别统计各表数量
The final of the sixth season of 2022 perfect children's model Hefei division came to a successful conclusion
MT-yolov6训练及测试
Baodawei of the people's Chain: break down barriers and establish a global data governance sharing and application platform
操作系统产品密钥查看方法
机器人代码生成器之Robcogen使用教程
2022 spring summer collection koreano essential reshapes the vitality of fashion
晋升或汇报,你真的把事情讲清楚了吗?
Unity C# 网络学习(十二)——Protobuf生成协议
人民链鲍大伟:打破壁垒,建立全域数据治理共享及应用平台
Differences between x86 and x64
十大券商账号开户安全吗?是靠谱的吗?
今天让你知道PMP考试通过率达97%,可信不可信
mongoDB 持久化
July 2022 (advanced soft test) information system project manager certification enrollment Brochure
【无标题】
闭关修炼(二十四)浅入了解跨域问题
The return values of hostname -f and uname -n may be different
Compare homekit, MI family, and zhiting family cloud edition for what scene based experiences
编程语言








