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

Teach MulDiv to do div-only #1228

Merged
merged 3 commits into from
Feb 6, 2018
Merged

Teach MulDiv to do div-only #1228

merged 3 commits into from
Feb 6, 2018

Conversation

aswaterman
Copy link
Member

No description provided.

@aswaterman aswaterman requested a review from hcook February 6, 2018 01:54
@hcook
Copy link
Member

hcook commented Feb 6, 2018

Is this configuration expressible via ISA string? Like is it still "M"? What happens when a mul instruction ends up in a binary accidentally?

@aswaterman
Copy link
Member Author

The intent isn't to remove instructions from the ISA (note this doesn't change the instruction decoder), it just allows processors to implement the MUL instructions with a different unit than the divider, e.g., a fully-pipelined multiplier.

MULHSU and MULHU should match their ISA funct3 encodings to slightly
reduce HW cost.
I also renamed badaddr to tval (the correct name).
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