| // Copyright 2023 Google LLC. | |
| // Copyright lowRISC contributors. | |
| // Licensed under the Apache License, Version 2.0, see LICENSE for details. | |
| // SPDX-License-Identifier: Apache-2.0 | |
| // Generated by topgen_matcha.py | |
| <% | |
| import re | |
| %>\ | |
| parameter string LIST_OF_ALERTS[] = { | |
| % for alert in top["alert"]: | |
| % if not re.match(r".*smc\d?_fatal_fault", alert["name"]): | |
| % if loop.last: | |
| "${alert["name"]}" | |
| % else: | |
| "${alert["name"]}", | |
| % endif | |
| % endif | |
| % endfor | |
| }; | |
| parameter uint NUM_ALERTS = ${len(top["alert"])}; |