Print ".en=" only if there is an enable signal
authorEddie Hung <eddie@fpgeh.com>
Sat, 23 Nov 2019 18:17:31 +0000 (10:17 -0800)
committerEddie Hung <eddie@fpgeh.com>
Sat, 23 Nov 2019 18:17:31 +0000 (10:17 -0800)
passes/hierarchy/clkpart.cc

index 7c3e52178cde0b840be6236c3bbfa73e191182d6..d914bcec051109888a6ff96b1a413ef6ca1abd5d 100644 (file)
@@ -262,7 +262,7 @@ struct ClkPartPass : public Pass {
                                auto en = std::get<3>(it.first);
                                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() ? ".en=" : "", 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()));