Skip to content

Commit

Permalink
[reggen] Promote missing CM annotation warning to error
Browse files Browse the repository at this point in the history
Fixes #10071

Signed-off-by: Michael Schaffner <[email protected]>
  • Loading branch information
msfschaffner committed Feb 12, 2024
1 parent cd73707 commit 6a9bdbb
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 unknown countermeasures '
'are not annotated in RTL.')

0 comments on commit 6a9bdbb

Please sign in to comment.