In reply to Malai_21:
You need to be more explicit about what it means to be working versus not working.
The two examples of code are not the same because 1) never samples the value addr == 0. It is still 8’bx on the first sample, and on the next sample it is addr == 2.
- only gets 50% coverage.