mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-21 13:23:40 +00:00
parent
388955031f
commit
3001473ae5
1 changed files with 5 additions and 3 deletions
|
@ -518,10 +518,12 @@ public:
|
||||||
if (cell->type.in(ID($assert), ID($assume), ID($live), ID($fair), ID($cover), ID($check)))
|
if (cell->type.in(ID($assert), ID($assume), ID($live), ID($fair), ID($cover), ID($check)))
|
||||||
queue.emplace_back(cell);
|
queue.emplace_back(cell);
|
||||||
}
|
}
|
||||||
for (auto wire : module->wires()) {
|
for (auto port : module->ports) {
|
||||||
if (wire->port_input)
|
auto *wire = module->wire(port);
|
||||||
|
if (wire && wire->port_input) {
|
||||||
factory.add_input(wire->name, ID($input), Sort(wire->width));
|
factory.add_input(wire->name, ID($input), Sort(wire->width));
|
||||||
if (wire->port_output) {
|
}
|
||||||
|
if (wire && wire->port_output) {
|
||||||
auto &output = factory.add_output(wire->name, ID($output), Sort(wire->width));
|
auto &output = factory.add_output(wire->name, ID($output), Sort(wire->width));
|
||||||
output.set_value(enqueue(DriveChunk(DriveChunkWire(wire, 0, wire->width))));
|
output.set_value(enqueue(DriveChunk(DriveChunkWire(wire, 0, wire->width))));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue