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

Add requirements to Queue class #1176

Merged
merged 3 commits into from
Sep 13, 2019
Merged

Add requirements to Queue class #1176

merged 3 commits into from
Sep 13, 2019

Conversation

jackkoenig
Copy link
Contributor

FIRRTL barfs on negative and zero-sized memories

Related issue:

Type of change: other enhancement

Impact: no functional change (errors in FIRRTL currently)

Development Phase: implementation

Release Notes

Improve error reporting on invalid Queue sizes

FIRRTL barfs on negative and zero-sized memories
@jackkoenig jackkoenig requested a review from a team as a code owner September 12, 2019 18:00
Copy link
Member

@aswaterman aswaterman left a comment

Choose a reason for hiding this comment

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

More comprehensible error messages are a good thing.

@jackkoenig
Copy link
Contributor Author

I made an additional minor change, move the Queue.irrevocable requirement after the Queue construction (so we get the error message for negative sizes), then give the comment as the message since it's a reasonable explanation.

@jackkoenig jackkoenig merged commit 4af6db3 into master Sep 13, 2019
@jackkoenig jackkoenig deleted the queue-requirements branch September 13, 2019 19:19
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.

2 participants