Friday 29 January 2016

Difference between casex and casez



The case, casex and casez all do bit-wise comparisons between the selecting case expression and individual case item statements.

For casex and casez, comparisons are performed using the identity operator === instead of equality ==. casex ignores any bit position containing an X or Z; casez only ignores bit positions with a Z. 

Verilog literals use the both the  ? and z characters to represent the Z state.


3 comments:

  1. Thanks a lot..clearly explained

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. DO WE HAVE TO CREATE A SEPARATE TESTVECTOR(BENCH) TO THIS ?

    ReplyDelete