-
Notifications
You must be signed in to change notification settings - Fork 597
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
Mark return value of .asTypeOf as "deprecated read-only" #4198
Conversation
Users will now get a deprecation warning if they connect to the result of .asTypeOf.
f9fc414
to
5a17073
Compare
chirrtl should include("wire _zero_WIRE : { foo : UInt<1>, bar : UInt<1>[0]}") | ||
chirrtl should include("connect _zero_WIRE.foo, UInt<1>(0h0)") | ||
chirrtl should include("connect io, _zero_WIRE") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change to the .fir is unfortunate, I will look into this later (perhaps we need naming to contemplate views).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Users will now get a deprecation warning if they connect to the result of .asTypeOf. (cherry picked from commit 00c7a62)
This PR introduced bug to T1. Related code snippet:
error message:
|
Thanks for the report, looking into it! |
This issue is caused by a weird interaction between how Footnotes
|
Users will now get a deprecation warning if they connect to the result of .asTypeOf.
Marked for backporting to 6.x so that we can change this in 7.0.
Contributor Checklist
docs/src
?Type of Improvement
Desired Merge Strategy
Release Notes
Previously,
.asTypeOf
would return aWire
. To get the old behavior, wrap the.asTypeOf
call inWireInit(...)
.Reviewer Checklist (only modified by reviewer)
3.6.x
,5.x
, or6.x
depending on impact, API modification or big change:7.0
)?Enable auto-merge (squash)
, clean up the commit message, and label withPlease Merge
.Create a merge commit
.