当前位置:网站首页>Is it OK to directly compare the size of two numbers in FPGA?
Is it OK to directly compare the size of two numbers in FPGA?
2022-07-29 06:34:00 【qq_ forty-six million four hundred and seventy-five thousand on】
Defined 2 Constant
parameter signed [15:0] hight_threshold = 500;
parameter signed [15:0] low_threshold = -500;
Compare with a register
reg signed [15:0]data,
When data by -80 When using the following judgment, it is no good , Always true
if(data > hight_threshold || data < low_threshold)
Finally, it's normal to change to the following one
if($signed(data) > $signed(hight_threshold) || $signed(data) < $signed(low_threshold)
This kind of judgment must use $signed Define signed direction .
边栏推荐
- NoClassDefFoundError processing
- Noi online 2022 popular group problem solving & personal understanding
- Ue5 texture system explanation and common problem setting and Solutions
- day06_类与对象
- Unity-默认渲染管线-刻晴卡渲shader
- Raw advanced socket experiment
- 虹科教您 | 想进入TSN领域?虹科教您如何搭建TSN测试系统
- 电脑系统没有standard tcp/ip port端口的处理操作
- HOG+SVM实现行人检测
- 模型空间下的旋转和世界空间下的旋转
猜你喜欢

Vivado IP核之浮点数开方 Floating-point

day03_1_流程控制

Official tutorial redshift 07 instances and proxy

Official tutorial redshift 05 system parameter detailed explanation

虹科分享 | 带你全面了解“CAN总线错误”(三)——CAN节点状态与错误计数器

Vivado IP核之定点数转为浮点数Floating-point

SQL Developer图形化窗口创建数据库(表空间和用户)

Thinking about MySQL taking shell through OS shell

Vivado IP核之复数浮点数乘法 Floating-point
![[interview questions] the latest software test interview questions in 2022 (400) [with answers] continue to update](/img/72/445d78bdd6c921cc5a0843f056c435.png)
[interview questions] the latest software test interview questions in 2022 (400) [with answers] continue to update
随机推荐
OSPF理论介绍
Webshell管理工具的流量特征
day03_1_流程控制
[interview questions] the latest software test interview questions in 2022 (400) [with answers] continue to update
NoClassDefFoundError processing
虹科 | 使用JESD204串行接口高速桥接模拟和数字世界
Overview and summary of GI engine in redshift 024, the official tutorial
网站服务器80,443端口一直被恶意攻击怎么办?
Merkle Tree 存在性功能第一次修改
Unity-默认渲染管线-刻晴卡渲shader
Clickhouse failed to import CSV without error but no data
虹科案例 | PAC:一种整合了softPLC控制逻辑、HMI和其他服务功能的集成控制解决方案
七、 下一代互联网IPV6
DDoS攻击与CC攻击的区别
Scanbasepackages scanning range configuration
MerkleTree 构建QT实现UI
Circular linked list and bidirectional linked list
TCP socket communication experiment
虹科方案 | 在数字化的变电站中低成本实现无缝集成的独特解决方案
day14_ Unit test & Date common class & String common class