当前位置:网站首页>Multiplier design (pipeline) Verilog code
Multiplier design (pipeline) Verilog code
2022-06-29 09:00:00 【Da Xi】
One 、 Preface
Commonly used multiplier design , Generally, a cycle can only be accumulated once , So it takes time to multiply the bit width , If you need a cycle to produce results, you need pipelining .
Two 、 principle
The variable is saved after each execution of multiplication , Convenient for streamline operation .
3、 ... and 、verilog code
Single accumulation design
module mult_cell
#(parameter N=4,
parameter M=4)
(
input clk,
input rstn,
input en,
input [M+N-1:0] mult1, // Multiplier
input [M-1:0] mult2, // The multiplier
input [M+N-1:0] mult1_acci, // Last cumulative result
output reg [M+N-1:0] mult1_o, // Save the value after the multiplicand shift
output reg [M-1:0] mult2_shift, // Save value after multiplier shift
output reg [N+M-1:0] mult1_acco, // Current accumulation result
output reg rdy );
always @(posedge clk or negedge rstn) begin
if (!rstn) begin
rdy <= 'b0 ;
边栏推荐
- 2022年7月(软考高级)信息系统项目管理师认证招生简章
- July 2022 (advanced soft test) information system project manager certification enrollment Brochure
- 对比HomeKit、米家,智汀家庭云版有哪些场景化的体验
- MYSQL行转列例子
- Leetcode (142) - circular linked list II
- 抽象类、接口
- Huawei equipment is configured with medium-sized network WLAN basic services
- 重磅发布 | 《FISCO BCOS应用落地指南》
- Sorting out easily confused words in postgraduate entrance examination English 【 flash 】
- 二手交易平台碳减排,有了评估标准
猜你喜欢

io流的总结

标准|中国支付清算协会发布首个隐私计算金融规范

Uber前安全主管面临欺诈指控 曾隐瞒数据泄露事件

Summary of various series (harmonic, geometric)

Open3D 最远点采样(FPS)

Some "non-technical" Thoughts on distributed digital identity

闭关修炼(二十五)基础web安全

mongoDB 持久化

Oracle subquery

The sixth season of 2022 perfect children's model Qingyuan competition area audition came to a successful conclusion
随机推荐
2022 Season 6 perfect children's model Haikou competition area trial successfully concluded
2022年7月产品经理认证招生简章(NPDP)
Core development board & debugger
mysql insert 时出现Deadlock死锁场景分析
递归方法 rbac菜单层级显示 无限极分类
2022第六季完美童模 海口赛区 选拔赛圆满落幕
在 golang 中是如何对 epoll 进行封装的?
“国防七校”之一西工大遭境外网络攻击
How to gain profits from the operation of the points mall
TypeScript 變量聲明 —— 類型斷言
工厂模式和策略模式的区别
人民链鲍大伟:打破壁垒,建立全域数据治理共享及应用平台
Differences between x86 and x64
Working for many years, recalling life -- three years in high school
First electric shock, so you are such a dragon lizard community | dragon lizard developer said that issue 8
Transformer details
P6776-[NOI2020]超现实树
Uber前安全主管面临欺诈指控 曾隐瞒数据泄露事件
Chengtong network disk imitation blue playing network disk source code with video tutorial
【最全】PS各个版本下载安装及小试牛刀教程(PhotoShop CS3 ~~ PhotoShop 2022)