Skip to content

Conversation

jackkoenig
Copy link
Contributor

@tymcauley this should work for ucb-bar/fixedpoint#11. I tried it out and it seemed to work, but there are new compile errors to resolve due to the removal of BasicTester. I'll comment on that PR with an example of how to fix

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 request a desired merge strategy?
  • Did you add text to be included in the Release Notes for this change?

Type of Improvement

  • Feature (or new API)

Desired Merge Strategy

  • Squash

Release Notes

This enables external libraries like FixedPoint to override it. This is not an ideal API, but it works until we have a better way to do this.

Reviewer Checklist (only modified by reviewer)

  • Did you add the appropriate labels? (Select the most appropriate one based on the "Type of Improvement")
  • Did you mark the proper milestone (Bug fix: 3.6.x, 5.x, or 6.x depending on impact, API modification or big change: 7.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) and clean up the commit message.
    • Merge: Ensure that contributor has cleaned up their commit history, then merge with Create a merge commit.

This enables external libraries like FixedPoint to override it. This is
not an ideal API, but it works until we have a better way to do this.
@jackkoenig jackkoenig added the Feature New feature, will be included in release notes label Mar 10, 2025
@jackkoenig jackkoenig added this to the 7.0 milestone Mar 10, 2025
@jackkoenig jackkoenig requested a review from seldridge March 10, 2025 23:46
Comment on lines +132 to -134
chirrtl.fileCheck()(
"""| CHECK: connect io.outMono, io.inMono
| CHECK: connect io.outBi, io.inBi
|""".stripMargin
)
chirrtl should include("connect io.outMono, io.inMono @")
chirrtl should include("connect io.outBi, io.inBi @")
Copy link
Member

Choose a reason for hiding this comment

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

Nice cleanup, thanks!

Copy link
Member

@seldridge seldridge left a comment

Choose a reason for hiding this comment

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

LGTM

I agree that this isn't a great API, but it'll get Fixed Point going.

@jackkoenig jackkoenig merged commit 5f2e70c into main Mar 11, 2025
18 checks passed
@jackkoenig jackkoenig deleted the jackkoenig/fromuint branch March 11, 2025 16:37
tymcauley added a commit to tymcauley/fixedpoint that referenced this pull request Mar 11, 2025
`UnknownWidth` became a `case object` in this Chisel PR:
chipsalliance/chisel#4242

The `connectFromBits` method was removed in this Chisel PR:
chipsalliance/chisel#4168

The `connectFromBits` API was replaced with the `_fromUInt` API in this
Chisel PR: chipsalliance/chisel#4782

The sbt update is necessary to maintain compatibility with the latest
Scala compiler version.
tymcauley added a commit to tymcauley/fixedpoint that referenced this pull request Mar 12, 2025
`UnknownWidth` became a `case object` in this Chisel PR:
chipsalliance/chisel#4242

The `connectFromBits` method was removed in this Chisel PR:
chipsalliance/chisel#4168

The `connectFromBits` API was replaced with the `_fromUInt` API in this
Chisel PR: chipsalliance/chisel#4782

The sbt update is necessary to maintain compatibility with the latest
Scala compiler version.
tymcauley added a commit to tymcauley/fixedpoint that referenced this pull request Mar 24, 2025
`UnknownWidth` became a `case object` in this Chisel PR:
chipsalliance/chisel#4242

The `connectFromBits` method was removed in this Chisel PR:
chipsalliance/chisel#4168

The `connectFromBits` API was replaced with the `_fromUInt` API in this
Chisel PR: chipsalliance/chisel#4782

The `NumObject` trait was replaced by the `Num` object in this PR:
chipsalliance/chisel#4768

The sbt update is necessary to maintain compatibility with the latest
Scala compiler version.
tymcauley added a commit to tymcauley/fixedpoint that referenced this pull request Mar 24, 2025
`UnknownWidth` became a `case object` in this Chisel PR:
chipsalliance/chisel#4242

The `connectFromBits` method was removed in this Chisel PR:
chipsalliance/chisel#4168

The `connectFromBits` API was replaced with the `_fromUInt` API in this
Chisel PR: chipsalliance/chisel#4782

The `NumObject` trait was replaced by the `Num` object in this PR:
chipsalliance/chisel#4768

The sbt update is necessary to maintain compatibility with the latest
Scala compiler version.
tymcauley added a commit to tymcauley/fixedpoint that referenced this pull request Apr 2, 2025
`UnknownWidth` became a `case object` in this Chisel PR:
chipsalliance/chisel#4242

The `connectFromBits` method was removed in this Chisel PR:
chipsalliance/chisel#4168

The `connectFromBits` API was replaced with the `_fromUInt` API in this
Chisel PR: chipsalliance/chisel#4782

The `NumObject` trait was replaced by the `Num` object in this PR:
chipsalliance/chisel#4768

Wrapping unary negation (`unary_-%`) was deprecated in this PR:
chipsalliance/chisel#4829

The sbt update is necessary to maintain compatibility with the latest
Scala compiler version.
tymcauley added a commit to tymcauley/fixedpoint that referenced this pull request Apr 2, 2025
`UnknownWidth` became a `case object` in this Chisel PR:
chipsalliance/chisel#4242

The `connectFromBits` method was removed in this Chisel PR:
chipsalliance/chisel#4168

The `connectFromBits` API was replaced with the `_fromUInt` API in this
Chisel PR: chipsalliance/chisel#4782

Wrapping unary negation (`unary_-%`) was deprecated in this PR:
chipsalliance/chisel#4829

The sbt update is necessary to maintain compatibility with the latest
Scala compiler version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature, will be included in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants