[dv/ralgen] Update `dv_base_names` input from a string to a list
This PR updates the dv_base_names option from ral autogen from a string
to a list.
Signed-off-by: Cindy Chen <chencindy@opentitan.org>
diff --git a/util/topgen.py b/util/topgen.py
index b63a770..d22a1d1 100755
--- a/util/topgen.py
+++ b/util/topgen.py
@@ -15,7 +15,7 @@
from copy import deepcopy
from io import StringIO
from pathlib import Path
-from typing import Dict, Optional, Tuple
+from typing import Dict, List, Optional, Tuple
import hjson
from ipgen import (IpBlockRenderer, IpConfig, IpDescriptionOnlyRenderer,
@@ -601,7 +601,7 @@
def generate_top_ral(top: Dict[str, object],
name_to_block: Dict[str, IpBlock],
- dv_base_names: str,
+ dv_base_names: List[str],
out_path: str):
# construct top ral block
@@ -947,7 +947,7 @@
action='store_true',
help="If set, the tool generates top level RAL model for DV")
parser.add_argument('--dv-base-names',
- default='dv_base',
+ nargs="+",
help='Names or prefix for the DV register classes from which '
'the register models are derived.')
# Generator options for compile time random netlist constants