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

Fix scaladoc for UInt.unary_! #987

Merged
merged 5 commits into from
Jan 18, 2019
Merged

Fix scaladoc for UInt.unary_! #987

merged 5 commits into from
Jan 18, 2019

Conversation

aswaterman
Copy link
Member

It performs the operation (x === 0.U), just like in C. The scaladoc incorrectly described it as performing the operation !x(0). (Obviously, these are equivalent for Bool, but not for UInt in general).

Related issue:

Type of change: bug report

Impact: no functional change

Development Phase: implementation

Release Notes

@aswaterman aswaterman requested a review from a team as a code owner January 17, 2019 21:57
Copy link
Contributor

@ucbjrl ucbjrl left a comment

Choose a reason for hiding this comment

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

lgtm

@seldridge
Copy link
Member

My bad... Width inference really does work. Warning: there may be more errors in this Scaladoc. These were all updated at once and the size of Bits.scala makes my eyes glaze over whenever I open it.

@aswaterman
Copy link
Member Author

Ack. I'll do a quick sanity check on the others in that file.

@seldridge
Copy link
Member

Thanks, @aswaterman. I appreciate that.

@aswaterman
Copy link
Member Author

The width behavior of UInt << UInt is slightly wrong, and the description of UInt.asSInt is correct but a little vague. Fixing.

@aswaterman
Copy link
Member Author

Looks like unary_- has the wrong width description, too - these are truncating but described as expanding. Fixing.

It performs the operation (x === 0.U), just like in C.   The scaladoc
incorrectly described it as performing the operation !x(0).  (Obviously, these
are equivalent for Bool, but not for UInt in general).
@aswaterman
Copy link
Member Author

@seldridge please re-review

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

Thanks for the proofread. The fixes and clarifications are correct.

Nice rebase (merge commit inbound).

@aswaterman
Copy link
Member Author

@ucbjrl any idea why Jenknis is hung up?

@ucbjrl
Copy link
Contributor

ucbjrl commented Jan 18, 2019

Yes and no. We occasionally experience deadlocks with the OpenJDK JVM on the millennium machines. It's not clear if this is a JVM or a Linux problem. A FUTEX_WAIT kernel bug has been reported (and fixed) several times. Recent reports indicate it may now be a JVM issue. I'll kill the hung Jenkins jobs.

@ucbjrl
Copy link
Contributor

ucbjrl commented Jan 18, 2019

... and set some timeouts for the Jenkins jobs.

@seldridge seldridge merged commit 9c9920e into master Jan 18, 2019
@aswaterman
Copy link
Member Author

Interesante.

@aswaterman aswaterman deleted the unary-not-fix branch January 18, 2019 06:32
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.

3 participants