More oopsies
authorEddie Hung <eddie@fpgeh.com>
Sat, 23 Nov 2019 18:28:46 +0000 (10:28 -0800)
committerEddie Hung <eddie@fpgeh.com>
Sat, 23 Nov 2019 18:28:46 +0000 (10:28 -0800)
passes/hierarchy/clkpart.cc

index d914bcec051109888a6ff96b1a413ef6ca1abd5d..b79625540d6a8a3741415c4a266874c8fabbc39a 100644 (file)
@@ -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") {