From 60fb241cb3c2bcd5a8b3b4033dd3ac1b9e838341 Mon Sep 17 00:00:00 2001 From: "Emil J. Tywoniak" Date: Tue, 3 Dec 2024 16:32:13 +0100 Subject: [PATCH] clockgate: clean up argument parsing --- passes/techmap/clockgate.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/passes/techmap/clockgate.cc b/passes/techmap/clockgate.cc index 468181991..1def5235b 100644 --- a/passes/techmap/clockgate.cc +++ b/passes/techmap/clockgate.cc @@ -291,18 +291,22 @@ struct ClockgatePass : public Pass { auto name = args[++argidx]; auto rest = args[++argidx]; pos_icg_desc = icg_from_arg(name, rest); + continue; } if (args[argidx] == "-neg" && argidx+2 < args.size()) { auto name = args[++argidx]; auto rest = args[++argidx]; neg_icg_desc = icg_from_arg(name, rest); + continue; } if (args[argidx] == "-tie_lo" && argidx+1 < args.size()) { tie_lo_pins.push_back(RTLIL::escape_id(args[++argidx])); + continue; } if (args[argidx] == "-liberty" && argidx+1 < args.size()) { liberty_file = args[++argidx]; rewrite_filename(liberty_file); + continue; } if (args[argidx] == "-dont_use" && argidx+1 < args.size()) { dont_use_cells.push_back(args[++argidx]); @@ -310,7 +314,9 @@ struct ClockgatePass : public Pass { } if (args[argidx] == "-min_net_size" && argidx+1 < args.size()) { min_net_size = atoi(args[++argidx].c_str()); + continue; } + break; } if (!liberty_file.empty())