mirror of https://github.com/YosysHQ/yosys.git
Print ".en=" only if there is an enable signal
This commit is contained in:
parent
907c8aeaef
commit
722eeacc09
|
@ -262,7 +262,7 @@ struct ClkPartPass : public Pass {
|
||||||
auto en = std::get<3>(it.first);
|
auto en = std::get<3>(it.first);
|
||||||
std::string submod = stringf("clk=%s%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<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)
|
for (auto c : it.second)
|
||||||
c->attributes[ID(submod)] = submod;
|
c->attributes[ID(submod)] = submod;
|
||||||
new_submods.push_back(stringf("%s_%s", mod->name.c_str(), submod.c_str()));
|
new_submods.push_back(stringf("%s_%s", mod->name.c_str(), submod.c_str()));
|
||||||
|
|
Loading…
Reference in New Issue