mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-24 01:25:33 +00:00
Update splitnets.cc
This commit is contained in:
parent
4de90307a9
commit
707731147c
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue