|
楼主 |
发表于 2021-3-19 18:47:09
|
显示全部楼层
但是VCS的结果有点不一样啊
=============Wildcard equality=============
3'b010 ==? 3'b010, result = 1
3'b010 ==? 3'b011, result = 0
3'b01z ==? 3'b011, result = x
3'b010 ==? 3'b01z, result = 1
3'b01z ==? 3'b01z, result = 1
3'b01x ==? 3'b011, result = x
3'b010 ==? 3'b01x, result = 1
3'b01x ==? 3'b01x, result = 1
3'b01x ==? 3'b01z, result = 1
3'b01z ==? 3'b01x, result = 1
=============Old Wildcard equality=============
3'b010 =?= 3'b010, result = 1
3'b010 =?= 3'b011, result = 0
3'b01z =?= 3'b011, result = 1
3'b010 =?= 3'b01z, result = 1
3'b01z =?= 3'b01z, result = 1
3'b01x =?= 3'b011, result = 1
3'b010 =?= 3'b01x, result = 1
3'b01x =?= 3'b01x, result = 1
3'b01x =?= 3'b01z, result = 1
3'b01z =?= 3'b01x, result = 1
|
|