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

Bug in Mul.v #1

Open
Rubiczhang opened this issue Nov 14, 2022 · 0 comments
Open

Bug in Mul.v #1

Rubiczhang opened this issue Nov 14, 2022 · 0 comments

Comments

@Rubiczhang
Copy link

Hello Zhang Wenting:

I have run rv64um isatest on your multiplier, but the result is wrong.

I have noticed that when you calculate middle result (mac_a * mac_b), you simply use a couple of 33 bits signed extension.

I'm not good at mathematic, however, what I have searched on internet told me two w bits signed extension timing together can only yield a correct answer when you cut it in w bits.

So, I think that's where the bug lies.

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