当前位置:网站首页>verilog 等价操作符
verilog 等价操作符
2022-06-29 08:21:00 【嗒曦】
等价操作符
等价操作符包括逻辑相等(==),逻辑不等(!=),全等(===),非全等(!==)。
等价操作符的正常结果有 2 种:为真(1)或假(0)。
逻辑相等/不等操作符不能比较 x 或 z,当操作数包含一个 x 或 z,则结果为不确定值。
全等比较时,如果按位比较有相同的 x 或 z,返回结果也可以为 1,即全等比较可比较 x 或 z。所以,全等比较的结果一定不包含 x。举例如下:
实例
A = 4 ;
B = 8'h04 ;
C = 4'bxxxx ;
D = 4'hx ;
A == B //为真
A == (B + 1) //为假
A == C //为X,不确定
A === C //为假,返回值为0
C === D //为真,返回值为1
边栏推荐
- 随心玩玩(三)Mirai框架QQ机器人
- 华为设备配置中型网络WLAN基本业务
- io流的总结
- Baodawei of the people's Chain: break down barriers and establish a global data governance sharing and application platform
- TypeScript 变量声明 —— 类型断言
- The return values of hostname -f and uname -n may be different
- 闭关修炼(二十)如何做好单元测试
- 通过ELO机制衡量各类对弈活动水平
- 名企实习一年要学会的15件事,这样你就省的走弯路了。
- Self attention mechanism
猜你喜欢

机器人代码生成器之Robcogen使用教程

Typescript variable declaration - type assertion

Some "non-technical" Thoughts on distributed digital identity

How to recover data loss of USB flash disk memory card

51单片机中断与定时器计数器,基于普中科技HC6800-ESV2.0

【Redis】Redis6学习框架思路和细节

Heavyweight released "FISCO bcos application landing guide"

Leetcode(142)——环形链表 II
开发小技巧-图片资源管理

【微服务|OpenFeign】openfeign的超时时间
随机推荐
批量处理实验接触角数据-MATLAB分析
sed 替换值为变量
Official reply on issues related to the change of children's names after parents' divorce
The sixth season of 2022 perfect children's model Qingyuan competition area audition came to a successful conclusion
首次触电,原来你是这样的龙蜥社区 | 龙蜥开发者说第8期
闭关修炼(二十)如何做好单元测试
laravel 8 实现 订单表按月份水平分表
Actual combat memoir starts from webshell to break through the border
mongoDB 持久化
2022第六季完美童模 清远赛区 海选赛圆满落幕
802.11--802.11n protocol phy
Measure the level of various chess playing activities through ELO mechanism
Backpack Lecture 9 - detailed understanding and code implementation
How to recover data loss of USB flash disk memory card
工厂模式
Feature selection: maximum information coefficient (MIC) [used to measure the degree of correlation between two variables X and y, linear or nonlinear strength, commonly used for feature selection of
Is the securities account of qiniu school really safe and reliable?
Sed replace value with variable
Np5 formatted output (III)
ES6数据类型Map&Set