当前位置:网站首页>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 ;
边栏推荐
- Official reply on issues related to the change of children's names after parents' divorce
- 开发小技巧-图片资源管理
- Is it safe for the top ten securities companies to open accounts? Is it reliable?
- 批量处理实验接触角数据-MATLAB分析
- laravel 8 实现 订单表按月份水平分表
- MQTT第二话 -- emqx高可用集群实现
- Some behaviors of Apple developers that are prone to investigation
- Compare homekit, MI family, and zhiting family cloud edition for what scene based experiences
- 抽象类、接口
- [redis] redis6 learning framework ideas and details
猜你喜欢
随机推荐
Verilog 大小端以及 +:使用
Did you really make things clear when you were promoted or reported?
Activemq消息组件发布订阅ReDelivery消息重新投递
New paid Tarot calculation source code (with building tutorial)
[most complete] download and installation of various versions of PS and tutorial of small test ox knife (Photoshop CS3 ~ ~ Photoshop 2022)
uniapp引入组件不生效解决方法
La finale de la zone de compétition Hefei de la sixième saison 2022 a été couronnée de succès.
15 things to learn in a year of internship in famous enterprises, so you can avoid detours.
How to recover data loss of USB flash disk memory card
在 golang 中是如何对 epoll 进行封装的?
单例模式的理解
Oracle-子查询
Carbon emission reduction of second-hand trading platform, with assessment standards
Does the SQL server run with administrator privileges? Or run it as a normal user?
ES6数据类型Map&Set
Transformer details
Summary of various series (harmonic, geometric)
Operating system product key viewing method
随心玩玩(三)Mirai框架QQ机器人
How to recite words in tables




![[microservices openfeign] timeout of openfeign](/img/b1/9bc92250b4d544c704d2af5c08d059.png)



