-
Notifications
You must be signed in to change notification settings - Fork 615
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
Cannot use Seq in Bundle construction? #844
Comments
This is expected behavior, Since this is not an uncommon thing that people try to do, we should have a more specialized error message. |
I see - thanks for the fast response. Seems like there are a few avenues forward:
|
@jackkoenig If you think this is worthwhile, I can go ahead and do some PRs. :) |
More specialized error message is a big one I think, I'm not exactly sure how to do it but using reflection on the Bundle we can look for Seqs in public vals and then upon someone attempting to connect to one we could suggest that as a possible cause? I think a variant of If you have time, I think these are great things to work on! |
Funny that a HetVec still hasn’t made it into Chisel in like two years :p I also have something similar that works off of Record. It might even be sitting somewhere in barstools |
@jackkoenig Great! I PR'ed a proposal along the lines of what we discussed in #850. |
Implemented in #850 |
It seems like Chisel just doesn't like it when we use Seq to construct Bundles. Two test cases (which may or may not be caused by the same code paths):
Results in Chisel not being able to figure out the direction of
MyTest
:Input(new MyTest())
):Results in Chisel misclassifying the elements of
el
as bare Chisel types as opposed to hardware.Type of issue: bug report
Impact: no functional change
Development Phase: request
What is the current behavior? See above
What is the expected behavior? The examples should construct hardware and elaborate properly as expected, without any error messages, or Chisel should give the user a clear error message if using Seq to construct Bundles is unsupported.
Please tell us about your environment: Chisel 3.1
What is the use case for changing the behavior? The error message is confusing to users (directions were specified from a user's perspective) and it is not immediately clear why this is causes a problem to begin with.
The text was updated successfully, but these errors were encountered: