3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-24 01:25:33 +00:00

Update splitnets.cc

This commit is contained in:
Akash Levy 2025-02-19 10:10:54 -08:00 committed by GitHub
parent 4de90307a9
commit 707731147c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -204,8 +204,8 @@ struct SplitnetsPass : public Pass {
for (auto &chunk : sig.chunks()) {
if (chunk.wire == NULL)
continue;
if (flag_ports_only && (chunk.wire->port_id != 0) || !flag_ports_only && (chunk.wire->port_id == 0 || flag_ports))
{
if ((flag_ports_only && (chunk.wire->port_id != 0) ||
(!flag_ports_only && (chunk.wire->port_id == 0 || flag_ports))) {
if (chunk.offset != 0)
split_wires_at[chunk.wire].insert(chunk.offset);
if (chunk.offset + chunk.width < chunk.wire->width)
@ -242,7 +242,7 @@ struct SplitnetsPass : public Pass {
if (flag_ports || flag_ports_only)
{
for (auto wire : module->wires())
for (auto wire : module->wires())
{
if (wire->port_id == 0)
continue;