当前位置:网站首页>[FPGA tutorial case 19] factorial operation through multiplier
[FPGA tutorial case 19] factorial operation through multiplier
2022-07-29 09:59:00 【FPGA and MATLAB】
---------------------------------------------------------------------------------------
1. Software version
vivado2019.2
2. Theoretical knowledge of this algorithm
The operation of factorial , The calculation process is as follows :
![]()
According to the mathematical formula , The calculation process of factorial is input data P multiply P-1, multiply P-2, Ride all the way to 1 Unknown . So in FPGA design process , We first need to define a subtraction counter , Generate count values in turn P,P-1,P-2,...1 When you get 1 when , The counter stops counting . Whenever the counter decreases by one , Multiply the multiplication value of the previous time by the current count value through the multiplier , Know that the count value is 1 when , Output the final factorial result .
among , Multipliers can be obtained by
边栏推荐
- i.MX6ULL驱动开发 | 32 - 手动编写一个虚拟网卡设备
- Function - (C travel notes)
- shell编程之sed,正则表达式
- MySQL logging system: binlog, redo log and undo log
- Pyqt5 rapid development and practice 6.4 qboxlayout (box layout)
- Implementation and verification logic of complex expression input component
- Examples of specific usage of diagnostic instructions in s7-1200 and s7-1500 (led+devicestates+modulestates)
- 【微信小程序】接口生成自定义首页二维码
- 《LOL》从代码上来说最难的是哪个英雄?
- 10 suggestions for 10x improvement of application performance
猜你喜欢

一知半解 ~题目杂记 ~ 一个多态问题
![[wechat applet] interface generates customized homepage QR code](/img/9b/cccdb8ff6db61518402a27b94d0196.png)
[wechat applet] interface generates customized homepage QR code

不堆概念、换个角度聊多线程并发编程

SiC功率半导体产业高峰论坛成功举办

手动从0搭建ABP框架-ABP官方完整解决方案和手动搭建简化解决方案实践

Source code analysis of senparc.weixin.sample.mp

Random number setting and reference between parameters

PyQt5快速开发与实战 6.4 QBoxLayout(框布局)

Node (II)

最新翻译的官方PyTorch简易入门教程(PyTorch1.0版本)
随机推荐
Zhongang Mining: four steps for sustainable and healthy development of fluorite industry
Opencv introductory basic learning
这是一份不完整的数据竞赛年鉴!
QoS服务质量五QoS边界行为之流量整形
A sharp tool for data visualization Seaborn easy to get started
The function of that sentence
TCP failure model
什么是卡特兰数?有哪些应用?
Meituan senior technical expert: DDD's practice in the evolution of tourism e-commerce architecture
Sublime Text3 设置不同文件不同缩进
Comprehensively design an oppe home page -- the bottom of the page
上海交大牵手淘宝成立媒体计算实验室:推动视频超分等关键技术发展
A little knowledge ~ miscellaneous notes on topics ~ a polymorphic problem
Which hero is the most difficult for lol in terms of code?
Parameter passing mode of C language (int x) (int *x) (int & x)
leetcode刷题——排序
How big is the bandwidth of the Tiktok server for hundreds of millions of people to brush at the same time?
10 suggestions for 10x improvement of application performance
node(二)
我的问题解决记录1:类上使用了@Component注解,想要使用这个类中的方法,便不能直接new,而应该使用# @Autowired进行注入,否则会报错(如空指针异常等)