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

Unify BaseModule.IO and chisel3.experimental.IO into chisel3.IO #2863

Merged
merged 3 commits into from
Dec 1, 2022

Conversation

adkian-sifive
Copy link
Contributor

Contributor Checklist

  • Did you add Scaladoc to every public function/method?
  • Did you add at least one test demonstrating the PR?
  • Did you delete any extraneous printlns/debugging code?
  • Did you specify the type of improvement?
  • Did you add appropriate documentation in docs/src?
  • Did you state the API impact?
  • Did you specify the code generation impact?
  • Did you request a desired merge strategy?
  • Did you add text to be included in the Release Notes for this change?

Type of Improvement

  • code refactoring

API Impact

chisel3.experimental.IO will be deprecated and replaced by chisel3.IO

Backend Code Generation Impact

N/A

Desired Merge Strategy

  • Squash: The PR will be squashed and merged (choose this if you have no preference.

Release Notes

The IO from chisel3.experimental.IO been deprecated in favor of chisel3.IO.

Reviewer Checklist (only modified by reviewer)

  • Did you add the appropriate labels?
  • Did you mark the proper milestone (Bug fix: 3.4.x, [small] API extension: 3.5.x, API modification or big change: 3.6.0)?
  • Did you review?
  • Did you check whether all relevant Contributor checkboxes have been checked?
  • Did you do one of the following when ready to merge:
    • Squash: You/ the contributor Enable auto-merge (squash), clean up the commit message, and label with Please Merge.
    • Merge: Ensure that contributor has cleaned up their commit history, then merge with Create a merge commit.

* Internal API.
*/
def apply[T <: Data](iodef: => T)(implicit sourceInfo: SourceInfo, compileOptions: CompileOptions): T = {
val module = Module.currentModule.get // Impossible to fail
Copy link
Contributor

Choose a reason for hiding this comment

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

how is this impossible to fail?

Copy link
Contributor

Choose a reason for hiding this comment

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

It definitely isn't but note that @adkian-sifive just moved this code. It probably was impossible back when the only way to call IO was via protected def defined on Module.

@jackkoenig jackkoenig added this to the 3.5.x milestone Dec 1, 2022
@jackkoenig jackkoenig enabled auto-merge (squash) December 1, 2022 17:21
@jackkoenig jackkoenig added the Please Merge Accepted PRs that are ready to be merged. Useful when waiting on CI. label Dec 1, 2022
@jackkoenig jackkoenig merged commit de25bf6 into chipsalliance:master Dec 1, 2022
mergify bot pushed a commit that referenced this pull request Dec 1, 2022
(cherry picked from commit de25bf6)

# Conflicts:
#	core/src/main/scala/chisel3/Module.scala
@mergify mergify bot added the Backported This PR has been backported label Dec 1, 2022
sequencer added a commit to chipsalliance/rocket-chip that referenced this pull request Mar 9, 2023
1. remove Cat from util chipsalliance/chisel#3062
2. remove experimental.IO chipsalliance/chisel#2863
sequencer added a commit to chipsalliance/rocket-chip that referenced this pull request Mar 9, 2023
1. remove Cat from util chipsalliance/chisel#3062
2. remove experimental.IO chipsalliance/chisel#2863
sequencer added a commit to chipsalliance/rocket-chip that referenced this pull request May 28, 2023
- remove experimental.IO chipsalliance/chisel#2863
- remove additional bracket
- remove Chisel compatibility mode
sequencer added a commit to chipsalliance/rocket-chip that referenced this pull request May 29, 2023
- remove experimental.IO chipsalliance/chisel#2863
- remove bracket for fire()
- remove Chisel compatibility mode
lordspacehog pushed a commit to lordspacehog/diplomacy_old_fork that referenced this pull request Feb 7, 2024
- remove experimental.IO chipsalliance/chisel#2863
- remove bracket for fire()
- remove Chisel compatibility mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backported This PR has been backported Please Merge Accepted PRs that are ready to be merged. Useful when waiting on CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants