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

Split the shift ALU table into left and right #62

Merged
merged 5 commits into from
Jan 9, 2024

Conversation

hidenori-shinohara
Copy link
Contributor

No description provided.

Copy link
Contributor

@kevjue kevjue left a comment

Choose a reason for hiding this comment

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

In general, LGTM.

I think one thing to consider is since there is a lot of common code, maybe consider creating a trait (perhaps with generics) and then having the right shift and left shift chip implement the trait.

And seems like that might be applicable to other related structs as well, like LeftShiftCols and RightShiftCols.

@jtguibas
Copy link
Contributor

jtguibas commented Jan 9, 2024

If you think this is a long-term change, can you move it to alu/srl and alu/sll? That would be more consistent with the rest of the codebase like add/sub, mul/div, etc.

@jtguibas
Copy link
Contributor

jtguibas commented Jan 9, 2024

Also, the column names should be consistent with the Opcode--it's "ShiftLeft" not "LeftShift".

@hidenori-shinohara hidenori-shinohara merged commit 6add460 into main Jan 9, 2024
@hidenori-shinohara hidenori-shinohara deleted the hide/split-left-right-shift branch January 9, 2024 19:06
jtguibas pushed a commit that referenced this pull request Nov 11, 2024
* add execute mode

* Update crates/perf/src/main.rs

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

3 participants