当前位置:网站首页>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 .
边栏推荐
猜你喜欢

只让电脑运行某个程序设置

三、广域通信网

角色shader小练习

虹科Automation softPLC | 虹科KPA MoDK运行环境与搭建步骤(3)——MoDK例程测试

虹科方案 | 在数字化的变电站中低成本实现无缝集成的独特解决方案

虹科Automation softPLC | 虹科KPA MoDK运行环境与搭建步骤(2)——MoDK运行环境搭建

虹科白皮书 | 在工业4.0阶段,如何利用TSN时间敏感网络技术打造数字化工厂?
![Self study understanding of [chain forward star]](/img/b4/7f66026a482540bf27f088c321a840.png)
Self study understanding of [chain forward star]

Ue5 landscape conversion Nanite conversion method and it does not support the use method of starting dynamic mesh with lumen and lumen

day13_ Under multithreading
随机推荐
解决分频模块modelsim下仿真输出为stx的错误
Merkle Tree 存在性功能第一次修改
TCP套接口通信实验
基于udp通信的在线多人聊天室
不安全的第三方组件的漏洞如何做前置规避?
DDoS攻击与CC攻击的区别
day10_异常处理&枚举
Official tutorial redshift 06 opt parameters
盘点 | 全球关键信息基础设施网络安全大事件
八、 网络安全
Oracle10g出现Enterprise Manager 无法连接到数据库实例解决办法
Software testing career development: where should software testers go
虹科案例 | PAC:一种整合了softPLC控制逻辑、HMI和其他服务功能的集成控制解决方案
FTP的两种模式详解
HOG+SVM实现行人检测
Idea practical shortcut key novice must see
day12_多线程
虹科分享 | 如何测试与验证复杂的FPGA设计(1)——面向实体或块的仿真
6898 changing matrix problem solution
Unity-默认渲染管线-刻晴卡渲shader