Escape IdStrings
authorEddie Hung <eddie@fpgeh.com>
Sat, 23 Nov 2019 18:16:56 +0000 (10:16 -0800)
committerEddie Hung <eddie@fpgeh.com>
Sat, 23 Nov 2019 18:16:56 +0000 (10:16 -0800)
passes/hierarchy/clkpart.cc

index 4f4291e06f60158e9fcde2aed3a325c950465708..7c3e52178cde0b840be6236c3bbfa73e191182d6 100644 (file)
@@ -74,13 +74,12 @@ struct ClkPartPass : public Pass {
                for (argidx = 1; argidx < args.size(); argidx++)
                {
                        if (args[argidx] == "-set_attr" && argidx+2 < args.size()) {
-                               attr_name = args[argidx++];
+                               attr_name = RTLIL::escape_id(args[argidx++]);
                                attr_value = args[argidx++];
                                continue;
                        }
                        if (args[argidx] == "-unpart" && argidx+1 < args.size()) {
-                               unpart_mode = true;
-                               attr_name = args[argidx++];
+                               attr_name = RTLIL::escape_id(args[argidx++]);
                                continue;
                        }
                        if (args[argidx] == "-enable") {