mirror of https://github.com/YosysHQ/yosys.git
parent
760284033d
commit
c00a29296c
|
@ -271,7 +271,7 @@ struct SimInstance
|
||||||
{
|
{
|
||||||
auto child = children.at(cell);
|
auto child = children.at(cell);
|
||||||
for (auto &conn: cell->connections())
|
for (auto &conn: cell->connections())
|
||||||
if (cell->input(conn.first)) {
|
if (cell->input(conn.first) && GetSize(conn.second)) {
|
||||||
Const value = get_state(conn.second);
|
Const value = get_state(conn.second);
|
||||||
child->set_state(child->module->wire(conn.first), value);
|
child->set_state(child->module->wire(conn.first), value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue