[util/make_new_dif] enable processing top reggen modules
Some IPs, like the sensor_ctrl, only exist at the top-level, and are
generated by top-level specific reggen. This fixes the
`util/make_new_dif.py` tool to handle these IPs.
Signed-off-by: Timothy Trippel <ttrippel@google.com>
diff --git a/util/make_new_dif.py b/util/make_new_dif.py
index a3c47f9..8e411cc 100755
--- a/util/make_new_dif.py
+++ b/util/make_new_dif.py
@@ -99,6 +99,7 @@
sys.exit(1)
templated_modules = lib.get_templated_modules(topcfg)
ipgen_modules = lib.get_ipgen_modules(topcfg)
+ reggen_top_modules = lib.get_top_reggen_modules(topcfg)
# Check for regeneration mode (used in CI check:
# ci/scripts/check-generated.sh)
@@ -116,13 +117,14 @@
# NOTE: ip.name_long_* not needed for auto-generated files which
# are the only files (re-)generated in regen mode.
ips.append(
- Ip(ip_name_snake, "AUTOGEN", templated_modules, ipgen_modules))
+ Ip(ip_name_snake, "AUTOGEN", templated_modules, ipgen_modules,
+ reggen_top_modules))
else:
assert args.ip_name_snake and args.ip_name_long, \
"ERROR: pass --ip-name-snake and --ip-name-long when --mode=new."
ips.append(
Ip(args.ip_name_snake, args.ip_name_long, templated_modules,
- ipgen_modules))
+ ipgen_modules, reggen_top_modules))
# Default to generating all parts.
if len(args.only) == 0: