当前位置:网站首页>Verilog除法器的设计总结
Verilog除法器的设计总结
2022-06-21 20:40:00 【吉大秦少游】
Verilog除法器的设计总结
1 概述
Verilog实现除法器需要根据实际使用场景进行调整,但整体来说实现的算法有两类:
- 基于减法和移位实现除法
- 基于乘法和移位实现除法
下面将对两类算法的实现过程和原理进行总结,并给出基本的实例。
2 基于减法和移位实现除法
2.1 组合逻辑实现的实例
对于32的无符号除法,被除数a除以除数b,他们的商和余数一定不会超过32位。首先将a转换成高32位为0,低32位为a的temp_a。把b转换成高32位为b,低32位为0的temp_b。在每个周期开始时,先将temp_a左移一位,末尾补0,然后与b比较,是否大于b,是则temp_a减去temp_b将且加上1,否则继续往下执行。上面的移位、比较和减法(视具体情况而定)要执行32次,执行结束后temp_a的高32位即为余数,低32位即为商
/*
* module:div_rill
* file name:div_rill.v
* syn:yes
* author:network
* mo边栏推荐
- Use the for loop to calculate n! Value of
- Instadeep ltd:arthur flajolet | group based rapid reinforcement learning on a single machine
- 个人的股票交易经验
- ES7 create index template
- How to uninstall a package installed with the CONDA command
- GDB debugging practice (7) signal processing
- File i/o
- flutter系列之:flutter中的IndexedStack
- Use the for loop to calculate the odd and even sums in 1-100 [method 1]
- Use the do while loop to calculate the odd and even sums in 1-100 [method 1]
猜你喜欢

Yi Li, head of Alibaba cloud container service: how does cloud origin solve the problem of reducing costs and improving efficiency?

翻译软件Bob安装教程

Second understanding microservice

【深入理解TcaplusDB技术】一键安装Tmonitor后台

【深入理解TcaplusDB技术】TcaplusDB业务数据备份

Notes on topic brushing (16) -- binary tree: modification and construction

如何卸载用conda命令安装的包

UEFI dual system + dual hard disk installation

项目流程管理工具OmniPlan Pro 4

PAML|计算dN/dS值的生信软件
随机推荐
[in depth understanding of tcapulusdb technology] how to realize single machine installation of tmonitor
promise错误捕获处理——Promisifying技术
Iqtree| software for constructing evolutionary tree
GDB调试实战(8)给程序传递启动参数
【深入理解TcaplusDB技术】如何实现Tmonitor单机安装
【深入理解TcaplusDB技术】TcaplusDB导入数据
[leetcode] 8. String conversion integer (ATOI)
将字符串按长度截取成数组
Li Kou: Change
gdb调试技巧(0)gdb入门
【深入理解TcaplusDB技术】Tmonitor系统升级
Font size in DataGridView of C #
软件架构介绍
Self made C compiler
软件测试----测试的分类
celery+rabbit分布式任务处理
利用while循环,分别计算1-100中奇数的和、偶数的和【方法一】
High level project - project initiation management
Install RkNN toolkit Lite2 for itop-3568 development board
Is it OK for Zhongyan futures to open an account? Is the platform reliable? Is it safe?