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

Negative shift amounts should issue an error #729

Closed
aswaterman opened this issue Dec 8, 2017 · 0 comments
Closed

Negative shift amounts should issue an error #729

aswaterman opened this issue Dec 8, 2017 · 0 comments

Comments

@aswaterman
Copy link
Member

Chisel should reject the expression (x: UInt) >> -1 but instead emits invalid Firrtl, shr(x, -1).

(Relatedly, Firrtl doesn't currently reject the invalid Firrtl: chipsalliance/firrtl#527)

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

No branches or pull requests

1 participant