当前位置:网站首页>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)
(
边栏推荐
- Matlab usage
- Intelligent hardware EVT DVT PVT mp
- Some "non-technical" Thoughts on distributed digital identity
- 2022年7月(软考高级)信息系统项目管理师认证招生简章
- Analysis of c voice endpoint detection (VAD) implementation process
- Tutorial on building open source Internet of things platform
- Development tips - Image Resource Management
- Does the SQL server run with administrator privileges? Or run it as a normal user?
- Differences between x86 and x64
- Product manager certification enrollment brochure (NPDP) in July 2022
猜你喜欢

Batch processing of experimental contact angle data matlab analysis

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

首次触电,原来你是这样的龙蜥社区 | 龙蜥开发者说第8期

2022 spring summer collection koreano essential reshapes the vitality of fashion

802.11--802.11n protocol phy

Dialogue | prospects and challenges of privacy computing in the digital age

ThinkPHP 6 使用 mongoDB

今天让你知道PMP考试通过率达97%,可信不可信

TypeScript 變量聲明 —— 類型斷言

Baodawei of the people's Chain: break down barriers and establish a global data governance sharing and application platform
随机推荐
ES6 data type map & set
Open3D 最远点采样(FPS)
P6772 [noi2020] gourmet (matrix fast power)
Leetcode (142) - circular linked list II
Verilog 拼接操作符号
Pointnet的网络学习
Activemq消息组件发布订阅ReDelivery消息重新投递
Working for many years, recalling life -- three years in high school
verilog 移位操作符
单例模式的理解
Measure the level of various chess playing activities through ELO mechanism
打印服务IP设置方案
Notes on key words in the original English work biography of jobs (VIII) [chapter six]
2022 Season 6 perfect children's model Haikou competition area trial successfully concluded
802.11--802.11n protocol phy
Did you really make things clear when you were promoted or reported?
成员内部类、静态内部类、局部内部类
2022第六季完美童模 合肥赛区 决赛圆满落幕
Summary of various series (harmonic, geometric)
来个小总结吧