[dv/common] update intr_state CSR exclusions
This PR updates the exclusions added to all intr_state CSRs to disable
most checks on it.
This addresses #6888.
Signed-off-by: Udi Jonnalagadda <udij@google.com>
diff --git a/util/reggen/reg_block.py b/util/reggen/reg_block.py
index 0264d01..b96c8bd 100644
--- a/util/reggen/reg_block.py
+++ b/util/reggen/reg_block.py
@@ -382,9 +382,16 @@
'rw1c',
'hrw',
False,
- # intr_state csr is affected by writes to
- # other csrs - skip write-check
- ["excl:CsrNonInitTests:CsrExclWriteCheck"])
+ # Some POR routines have the potential to
+ # unpredictably set some `intr_state` fields
+ # for various IPs, so we exclude all
+ # `intr_state` accesses from CSR checks to
+ # prevent this from occurring.
+ #
+ # An example of an `intr_state` mismatch error
+ # occurring due to a POR routine can be seen in
+ # issue #6888.
+ ["excl:CsrAllTests:CsrExclAll"])
self._add_intr_alert_reg(interrupts,
'INTR_ENABLE',
'Interrupt Enable Register',