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

WireDefault instead of WireInit, keep WireInit around #986

Merged
merged 4 commits into from
Jan 26, 2019
Merged

WireDefault instead of WireInit, keep WireInit around #986

merged 4 commits into from
Jan 26, 2019

Conversation

schoeberl
Copy link
Contributor

@schoeberl schoeberl commented Jan 17, 2019

Type of change: feature request

Impact: API modification

Development Phase: implementation

Release Notes

Rename WireInit to WireDefault as its semantic is not an initialization (like a register on a reset), but a default assignment for a combinational circuit.

WireInit is kept around as an alias to WireDefault.

Closes #959

@schoeberl schoeberl requested a review from a team as a code owner January 17, 2019 01:27
@ducky64
Copy link
Contributor

ducky64 commented Jan 17, 2019

Related issue #959, where there's been some discussion on this

@schoeberl
Copy link
Contributor Author

closes #959

@schoeberl schoeberl changed the title WireDefault instead of WireInit, mark WireInit deprecated WireDefault instead of WireInit, keep WireInit around Jan 25, 2019
Copy link
Contributor

@edwardcwang edwardcwang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to correspond with what was agreed to at the January 25, 2019 meeting

@schoeberl
Copy link
Contributor Author

anyone with write access to Chisel3 will do the merge?

@ducky64 ducky64 merged commit 5509cdd into chipsalliance:master Jan 26, 2019
@schoeberl
Copy link
Contributor Author

schoeberl commented Jan 26, 2019 via email

@schoeberl schoeberl deleted the wire-default branch January 26, 2019 07:29
@ucbjrl
Copy link
Contributor

ucbjrl commented Feb 7, 2019

This breaks rocket-chip which tries to refer to chisel3.core.WireInit:

[info] Compiling 280 Scala sources to /vm/home/jenkins/sharedspace/mc-rocket-chip/repo/target/scala-2.12/classes ...
[error] /vm/home/jenkins/sharedspace/mc-rocket-chip/repo/src/main/scala/rocket/DCache.scala:13:8: object WireInit is not a member of package chisel3.core
[error] import chisel3.core.{DontCare, WireInit}
[error]        ^
[error] /vm/home/jenkins/sharedspace/mc-rocket-chip/repo/src/main/scala/rocket/DCache.scala:177:22: not found: value WireInit
[error]   val uncachedResp = WireInit(new HellaCacheReq, DontCare)
[error]                      ^

@ducky64
Copy link
Contributor

ducky64 commented Feb 7, 2019

#1006 is probably the actual underlying issue, we really didn't design for people importing chisel3.core.

@edwardcwang
Copy link
Contributor

@sequencer sequencer mentioned this pull request Oct 8, 2022
16 tasks
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.

4 participants