-
Notifications
You must be signed in to change notification settings - Fork 572
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
MixedVec subclasses immutable.IndexedSeq #3539
Conversation
@mwachs5 an integration test failed. Annoying that this change technically can break some code but the fix is usually trivial, you should just be able to remove the |
Interestingly neither of these work. The first gives me:
The second gives me:
I have confirmed that This also does not work:
This does work:
It's as if a MixedVec is also seen as a UInt? Not sure why that is the case... |
Actually, what is this test even attempting to show? It doesn't seem like it should be legal to have a VecInit of a MixedVec with different element sizes. Shouldn't VecInit be checking that all elements have the same chisel type? I guess not, it is legal as the scaladoc says:
|
I guess this is just a limitation for VectInit for anything that is both a Seq and Data. Vecs have the same problem (do you want a Vec of Vecs-with-one-element or a Vec of the elements of the Vecs...) Should VecInit force you to have at least 2 elements to use the |
In the change to scala 2.13, collection.IndexedSeq is not enough to be considered a Seq
Contributor Checklist
docs/src
?Type of Improvement
Desired Merge Strategy
Release Notes
Change MixedVec to inherit from collection.immutable.IndexedSeq, so that it can work for Seq[Data].
Reviewer Checklist (only modified by reviewer)
3.5.x
,3.6.x
, or5.x
depending on impact, API modification or big change:6.0
)?Enable auto-merge (squash)
, clean up the commit message, and label withPlease Merge
.Create a merge commit
.