What is the difference between == and === in Verilog?

前端 未结 3 1340
一生所求
一生所求 2020-12-25 11:19

What is the difference between:

if (dataoutput[7:0] == 8\'bx) begin

and

if (dataoutput[7:0] === 8\'bx) begin 
3条回答
  •  攒了一身酷
    2020-12-25 11:38

    In Verilog:

    • == tests logical equality (tests for 1 and 0, all other will result in x)
    • === tests 4-state logical equality (tests for 1, 0, z and x)

提交回复
热议问题