Commit fa57461
authored
Fix CDC FIFO reset overlap check (#1246)
## Summary
- replace `$fell` in `br_cdc_fifo_reset_overlap_checks` with explicit
known `1` to known `0` reset-deassertion detection
- prevent unknown-to-zero reset transitions from triggering the overlap
assertion
## Root cause and impact
SystemVerilog `$fell` evaluates true for `X` to `0` transitions. At
simulation startup, an unknown reset value becoming deasserted could
therefore falsely trigger `reset_overlap_a`, even though no known
asserted-to-deasserted reset transition occurred.
The checker now evaluates reset deassertion using delayed reset values
and case equality, so only a known `1` to known `0` transition checks
the minimum overlap count.
## Validation
- all 9 focused `br_cdc_fifo_reset_overlap_checks` lint and elaboration
targets
- `pre-commit run --all-files`1 parent 33720f6 commit fa57461
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
62 | 69 | | |
63 | 70 | | |
64 | 71 | | |
| |||
80 | 87 | | |
81 | 88 | | |
82 | 89 | | |
83 | | - | |
84 | | - | |
| 90 | + | |
| 91 | + | |
85 | 92 | | |
86 | 93 | | |
87 | 94 | | |
| |||
0 commit comments