mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-13 04:28:18 +00:00
Remove check for cell->name[0] == '$'
This commit is contained in:
parent
c373640a3a
commit
20ca795b87
|
@ -1248,7 +1248,7 @@ void dump_cell(std::ostream &f, std::string indent, RTLIL::Cell *cell)
|
||||||
f << stringf("%s" "%s", indent.c_str(), id(cell->type, false).c_str());
|
f << stringf("%s" "%s", indent.c_str(), id(cell->type, false).c_str());
|
||||||
|
|
||||||
std::string init;
|
std::string init;
|
||||||
if (cell->name[0] == '$' && reg_ct.count(cell->type) && cell->hasPort("\\Q")) {
|
if (reg_ct.count(cell->type) && cell->hasPort("\\Q")) {
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
dump_reg_init(ss, cell->getPort("\\Q"), false /* write_equals */);
|
dump_reg_init(ss, cell->getPort("\\Q"), false /* write_equals */);
|
||||||
init = ss.str();
|
init = ss.str();
|
||||||
|
|
Loading…
Reference in a new issue