Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Fix RemoveWires handling of invalidated non-UInt wires #1949

Merged
merged 1 commit into from
Nov 12, 2020

Conversation

jackkoenig
Copy link
Contributor

@jackkoenig jackkoenig commented Nov 11, 2020

It would replace them with a validif node with a UIntLiteral which can
lead to type errors.

h/t @aswaterman for finding and helping identify the bug

Contributor Checklist

  • Did you add Scaladoc to every public function/method?
  • [NA] Did you update the FIRRTL spec to include every new feature/behavior?
  • 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 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

  • bug fix
  • new API

API Impact

New API for getting zero of any GroundType, really an improvement on what existed in RemoveValidIf.

Backend Code Generation Impact

No impact

Desired Merge Strategy

  • Squash

Release Notes

Fix handling of non-UInt ground types with no connection

Reviewer Checklist (only modified by reviewer)

  • Did you add the appropriate labels?
  • Did you mark the proper milestone (1.2.x, 1.3.0, 1.4.0) ?
  • Did you review?
  • Did you check whether all relevant Contributor checkboxes have been checked?
  • Did you mark as Please Merge?

@jackkoenig jackkoenig added this to the 1.2.X milestone Nov 11, 2020
@jackkoenig jackkoenig requested a review from a team as a code owner November 11, 2020 01:59
@jackkoenig jackkoenig requested review from seldridge and removed request for a team November 11, 2020 01:59
@aswaterman
Copy link
Member

thanks for the swift resolution!

@jackkoenig
Copy link
Contributor Author

CI failure is flaky Chisel tests which will be resolved shortly: chipsalliance/chisel#1661

@jackkoenig jackkoenig added the Please Merge Accepted PRs that are ready to be merged. Useful when waiting on CI. label Nov 11, 2020
It would replace them with a validif node with a UIntLiteral which can
lead to type errors.
@jackkoenig jackkoenig force-pushed the fix-remove-wires-isinvalid-type branch from 6063bf7 to 155647c Compare November 11, 2020 23:36
@mergify mergify bot merged commit c7bbb75 into master Nov 12, 2020
mergify bot pushed a commit that referenced this pull request Nov 12, 2020
It would replace them with a validif node with a UIntLiteral which can
lead to type errors.

(cherry picked from commit c7bbb75)

# Conflicts:
#	src/main/scala/firrtl/passes/RemoveValidIf.scala
#	src/main/scala/firrtl/transforms/RemoveWires.scala
#	src/test/scala/firrtlTests/RemoveWiresSpec.scala
mergify bot pushed a commit that referenced this pull request Nov 12, 2020
It would replace them with a validif node with a UIntLiteral which can
lead to type errors.

(cherry picked from commit c7bbb75)

# Conflicts:
#	src/main/scala/firrtl/passes/RemoveValidIf.scala
#	src/main/scala/firrtl/transforms/RemoveWires.scala
mergify bot pushed a commit that referenced this pull request Nov 12, 2020
It would replace them with a validif node with a UIntLiteral which can
lead to type errors.

(cherry picked from commit c7bbb75)
@mergify mergify bot added the Backported This PR has been backported to marked stable branch label Nov 12, 2020
mergify bot added a commit that referenced this pull request Nov 12, 2020
It would replace them with a validif node with a UIntLiteral which can
lead to type errors.

(cherry picked from commit c7bbb75)

Co-authored-by: Jack Koenig <[email protected]>
@jackkoenig jackkoenig deleted the fix-remove-wires-isinvalid-type branch November 12, 2020 20:02
mergify bot added a commit that referenced this pull request Mar 20, 2021
)

* Fix RemoveWires handling of invalidated non-UInt wires (#1949)

It would replace them with a validif node with a UIntLiteral which can
lead to type errors.

(cherry picked from commit c7bbb75)

# Conflicts:
#	src/main/scala/firrtl/passes/RemoveValidIf.scala
#	src/main/scala/firrtl/transforms/RemoveWires.scala
#	src/test/scala/firrtlTests/RemoveWiresSpec.scala

* Resolve conflicts

Co-authored-by: Jack Koenig <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
mergify bot added a commit that referenced this pull request Mar 20, 2021
)

* Fix RemoveWires handling of invalidated non-UInt wires (#1949)

It would replace them with a validif node with a UIntLiteral which can
lead to type errors.

(cherry picked from commit c7bbb75)

# Conflicts:
#	src/main/scala/firrtl/passes/RemoveValidIf.scala
#	src/main/scala/firrtl/transforms/RemoveWires.scala

* Resolve conflicts

Co-authored-by: Jack Koenig <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Backported This PR has been backported to marked stable branch bugfix 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