Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support bulk connects in when? #727

Open
jkorinth opened this issue Sep 3, 2016 · 0 comments
Open

Support bulk connects in when? #727

jkorinth opened this issue Sep 3, 2016 · 0 comments

Comments

@jkorinth
Copy link

jkorinth commented Sep 3, 2016

Feature request: It would be nice to mux Bundles in when statements, e.g.,

when (somesignal) {
  bundle <> otherBundle
}
.otherwise {
  bundle <> defaultBundle
}

The idea would be to generate a bunch of

bundle.x := Mux(somesignal, otherBundle.x, defaultBundle.x)
...

statements. This would save a lot of typing, e.g., in arbiting xbars with large protocols (AXI, Wishbone, ...).

I guess that won't be as easy as it sounds since there's a lot of special cases to be caught, but I think it would be very useful. In case you can't support it, it would also be helpful to generate a compiler error for the code above.

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

No branches or pull requests

1 participant