More sane naming of submod
authorEddie Hung <eddie@fpgeh.com>
Sat, 23 Nov 2019 18:01:09 +0000 (10:01 -0800)
committerEddie Hung <eddie@fpgeh.com>
Sat, 23 Nov 2019 18:01:09 +0000 (10:01 -0800)
passes/hierarchy/clkpart.cc

index acdd9b4ae853bae8c94ba79ef404cf80989f7a8e..4f4291e06f60158e9fcde2aed3a325c950465708 100644 (file)
@@ -261,9 +261,9 @@ struct ClkPartPass : public Pass {
 
                                auto clk = std::get<1>(it.first);
                                auto en = std::get<3>(it.first);
-                               std::string submod = stringf("\\%s%s.%s%s",
+                               std::string submod = stringf("clk=%s%s%s%s%s",
                                                std::get<0>(it.first) ? "" : "!", clk.empty() ? "" : log_signal(clk),
-                                               std::get<2>(it.first) ? "" : "!", en.empty() ? "" : log_signal(en));
+                                               std::get<2>(it.first) ? "" : "!", en.empty() ? ".en=" : "", en.empty() ? "" : log_signal(en));
                                for (auto c : it.second)
                                        c->attributes[ID(submod)] = submod;
                                new_submods.push_back(stringf("%s_%s", mod->name.c_str(), submod.c_str()));