mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-02 20:26:10 +01:00
feat(tt_tool): deprecate --ihp and --gf in favor of --pdk
This commit is contained in:
+11
-3
@@ -23,21 +23,21 @@ if __name__ == "__main__":
|
||||
)
|
||||
parser.add_argument(
|
||||
"--ihp",
|
||||
help="use IHP SG13G2 PDK (same as --pdk ihp-sg13g2)",
|
||||
help="deprecated, use --pdk ihp-sg13g2",
|
||||
action="store_const",
|
||||
const=True,
|
||||
default=False,
|
||||
)
|
||||
parser.add_argument(
|
||||
"--gf",
|
||||
help="use gf180mcuD PDK (same as --pdk gf180mcuD)",
|
||||
help="deprecated, use --pdk gf180mcuD",
|
||||
action="store_const",
|
||||
const=True,
|
||||
default=False,
|
||||
)
|
||||
parser.add_argument(
|
||||
"--pdk",
|
||||
help="PDK to use (overrides --ihp / --gf)",
|
||||
help="PDK to use (default: sky130A)",
|
||||
choices=["sky130A", "ihp-sg13g2", "ihp-sg13cmos5l", "gf180mcuD"],
|
||||
)
|
||||
|
||||
@@ -152,6 +152,14 @@ if __name__ == "__main__":
|
||||
|
||||
setup_logging(args.loglevel)
|
||||
|
||||
if args.ihp or args.gf:
|
||||
deprecated_flag = "--ihp" if args.ihp else "--gf"
|
||||
replacement = "ihp-sg13g2" if args.ihp else "gf180mcuD"
|
||||
logging.warning(
|
||||
f"{deprecated_flag} is deprecated and will be removed in a future version, "
|
||||
f"use --pdk {replacement} instead"
|
||||
)
|
||||
|
||||
pdk: TechName = args.pdk or (
|
||||
"ihp-sg13g2" if args.ihp else "gf180mcuD" if args.gf else "sky130A"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user