From: Eddie Hung Date: Sat, 23 Nov 2019 18:28:46 +0000 (-0800) Subject: More oopsies X-Git-Tag: working-ls180~881^2^2~124^2~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=15aa3f460d1aa873108360df1cf2d5f22137946d;p=yosys.git More oopsies --- diff --git a/passes/hierarchy/clkpart.cc b/passes/hierarchy/clkpart.cc index d914bcec0..b79625540 100644 --- a/passes/hierarchy/clkpart.cc +++ b/passes/hierarchy/clkpart.cc @@ -74,12 +74,13 @@ struct ClkPartPass : public Pass { for (argidx = 1; argidx < args.size(); argidx++) { if (args[argidx] == "-set_attr" && argidx+2 < args.size()) { - attr_name = RTLIL::escape_id(args[argidx++]); + attr_name = RTLIL::escape_id(args[++argidx]); attr_value = args[argidx++]; continue; } if (args[argidx] == "-unpart" && argidx+1 < args.size()) { - attr_name = RTLIL::escape_id(args[argidx++]); + unpart_mode = true; + attr_name = RTLIL::escape_id(args[++argidx]); continue; } if (args[argidx] == "-enable") {