SystemVerilog 中的 有符号比较 和 无符号比较

当比较双方都是有符号时候,比较为有符号比较

当有一方是无符号比较时,则是无符号比较

可以使用 $signed() 来强制转换为有符号数

答案来源: https://stackoverflow.com/questions/21340093/why-is-this-verilog-relational-statement-returning-true

posted @ 2022-11-05 15:06  yinhuachen  阅读(399)  评论(0编辑  收藏  举报