Skip to content

Fix wiring of 2D io object arrays. - #5537

Draft
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1028517787
Draft

copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1028517787

Conversation

@copybara-service

Copy link
Copy Markdown

Fix wiring of 2D io object arrays.

When a proc bound a 2D Source/Sink array element by element, each child got
the wrong elements: a column instead of its row. For example, with
to_child: Sink<u32>[2][2] and child i bound to to_child[i]:

before: child 0 gets _to_child__0_0, _to_child__1_0
after:  child 0 gets _to_child__0_0, _to_child__0_1

The elements were matched to channels in a different order than the channels
were named. Both now use the same order.

When a proc bound a 2D `Source`/`Sink` array element by element, each child got
the wrong elements: a column instead of its row. For example, with
`to_child: Sink<u32>[2][2]` and child `i` bound to `to_child[i]`:

```
before: child 0 gets _to_child__0_0, _to_child__1_0
after:  child 0 gets _to_child__0_0, _to_child__0_1
```

The elements were matched to channels in a different order than the channels
were named. Both now use the same order.

PiperOrigin-RevId: 1028517787

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant