More sane naming of submod

This commit is contained in:
Eddie Hung 2019-11-23 10:01:09 -08:00
parent 66ff0511a0
commit 165f5cb6cf
1 changed files with 2 additions and 2 deletions

View 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()));