In reply to dave_59:
In reply to keshav_chokshi:
If you want to check that all the bits in data are z, you can write
if (data === 'z)
If you want to check that any bit in data is z, use the $countbits function
if ($countbits(data,'z))
I think === is not sythesizable in design. Can I use this logic in DUT?