From 2984badb7220e41864c02147b4c783ad84916be9 Mon Sep 17 00:00:00 2001 From: Uri Shaked Date: Tue, 27 Oct 2026 11:43:49 +0100 Subject: [PATCH] feat(tt_tool): deprecate --ihp and --gf in favor of --pdk --- tt_tool.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/tt_tool.py b/tt_tool.py index 0c5415d..d962382 100755 --- a/tt_tool.py +++ b/tt_tool.py @@ -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" )