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

peepopt: handle offset too large in shiftadd #4165

Merged
merged 3 commits into from
Jan 31, 2024

Conversation

phsauter
Copy link
Contributor

Fixes #4160

If the offset is larger than the signal itself, meaning the signal is completely shifted out,
it tried to extract a negative amount of bits from the old signal.

This RTL pattern is suspicious since it is a complicated way of arriving at a constant value, so we warn the user.

If the offset is larger than the signal itself,
meaning the signal is completely shifted out,
it tried to extract a negative amount of bits from the old signal.

This RTL pattern is suspicious since it is a complicated way of
arriving at a constant value, so we warn the user.
@phsauter
Copy link
Contributor Author

Removed the unnecessary comment, should be ready to merge.

Copy link
Member

@povik povik left a comment

Choose a reason for hiding this comment

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

Sorry @phsauter, missed some things when I looked at it last. See the comments.

passes/pmgen/peepopt_shiftadd.pmg Show resolved Hide resolved
passes/pmgen/peepopt_shiftadd.pmg Show resolved Hide resolved
@povik povik merged commit 6c4bc5a into YosysHQ:master Jan 31, 2024
16 checks passed
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.

BUG:Issue in Yosys Synthesis: 'std::length_error' Leads to Termination
2 participants