[dif] Update DIF milestones and descriptions
The DIF milestones were out of date. This commit addresses (and a task
in #10504).
Signed-off-by: Timothy Trippel <ttrippel@google.com>
diff --git a/util/make_new_dif.py b/util/make_new_dif.py
index b329b01..fc9ff09 100755
--- a/util/make_new_dif.py
+++ b/util/make_new_dif.py
@@ -36,18 +36,18 @@
import argparse
import glob
-import hjson
import logging
import shutil
import subprocess
import sys
from pathlib import Path
+import hjson
from mako.template import Template
+import topgen.lib as lib
from autogen_banner import get_autogen_banner
from make_new_dif.ip import Ip
-import topgen.lib as lib
# This file is $REPO_TOP/util/make_new_dif.py, so it takes two parent()
# calls to get back to the top.
@@ -69,9 +69,7 @@
required=True,
help="mode to generate DIF code. Use 'new' if no DIF code exists."
"Use 'rege' to regenerate all auto-generated DIFs for all IPs.")
- parser.add_argument("--topcfg",
- "-t",
- help="path of the top hjson file.")
+ parser.add_argument("--topcfg", "-t", help="path of the top hjson file.")
parser.add_argument("--ip-name-snake",
"-i",
help="the short name of the IP, in snake_case.")
@@ -95,15 +93,14 @@
try:
with open(topcfg_path, 'r') as ftop:
- topcfg = hjson.load(ftop,
- use_decimal=True)
+ topcfg = hjson.load(ftop, use_decimal=True)
except FileNotFoundError:
print(f"hjson {topcfg_path} could not be found")
sys.exit(1)
templated_modules = lib.get_templated_modules(topcfg)
ipgen_modules = lib.get_ipgen_modules(topcfg)
- print (f"modules {templated_modules} {ipgen_modules}")
+ print(f"modules {templated_modules} {ipgen_modules}")
# Check for regeneration mode (used in CI check:
# ci/scripts/check-generated.sh)
@@ -120,12 +117,14 @@
ip_name_snake = Path(autogen_src_filename).stem[4:-8]
# 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))
+ ips.append(
+ Ip(ip_name_snake, "AUTOGEN", templated_modules, ipgen_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))
+ ips.append(
+ Ip(args.ip_name_snake, args.ip_name_long, templated_modules,
+ ipgen_modules))
# Default to generating all parts.
if len(args.only) == 0: