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

[cider] minor bug in fxp mult #2283

Merged
merged 1 commit into from
Sep 16, 2024
Merged

[cider] minor bug in fxp mult #2283

merged 1 commit into from
Sep 16, 2024

Conversation

EclecticGriffin
Copy link
Collaborator

Corrects a regression introduced in #2281. Adds some better error reporting for the data dumps.

@EclecticGriffin EclecticGriffin enabled auto-merge (squash) September 16, 2024 19:12
Copy link
Contributor

@ekiwi ekiwi left a comment

Choose a reason for hiding this comment

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

Let's get this fixed :shipit:

@@ -387,7 +387,7 @@ impl<const DEPTH: usize> Primitive for FxpMultPipe<DEPTH> {
2 * (self.frac_width + self.int_width),
)
.slice(
2 * self.frac_width + self.int_width,
(2 * self.frac_width + self.int_width) - 1,
Copy link
Contributor

Choose a reason for hiding this comment

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

This makes a lot of sense, since @EclecticGriffin and I discovered that the old slice implementation was off by one in how it defined the MSB.

@EclecticGriffin EclecticGriffin merged commit c66451d into main Sep 16, 2024
18 checks passed
@EclecticGriffin EclecticGriffin deleted the cider/data-dump-fix branch September 16, 2024 19: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.

2 participants