Skip to content

Commit

Permalink
[util,reggen] Trigger errors for countermeasures missing in RTL
Browse files Browse the repository at this point in the history
This used to be a warning, but it is promoted to an error.

Fixes lowRISC#10071

Signed-off-by: Guillermo Maturana <[email protected]>
  • Loading branch information
matutem committed Apr 26, 2024
1 parent 2d5a05b commit 4e696c0
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions util/reggen/countermeasure.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,8 @@ def check_annotation_list(what: str,

# Is there anything in the Hjson that isn't described in the RTL?
for name in hjson_set - rtl_set:
log.warning("Countermeasure {} is referenced in the Hjson of the "
"{}, but doesn't appear in the RTL."
.format(name, what))

# TODO(#10071): Once all designs are annotated, generate a RuntimeError
# if we saw anything in the loop above.
log.error("Countermeasure {} is referenced in the Hjson of the "
"{}, but doesn't appear in the RTL."
.format(name, what))
raise RuntimeError("One or more countermeasures in Hjson "
"don't appear in RTL.")

0 comments on commit 4e696c0

Please sign in to comment.