-
Notifications
You must be signed in to change notification settings - Fork 179
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
Add support for the Zvknh[ab] extensions #235
Open
charmitro
wants to merge
12
commits into
riscv:vector-dev
Choose a base branch
from
charmitro:zvknhab
base: vector-dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…iscv#191) * V extension general framework and configuration setting instructions * Update model/riscv_insts_vext_utils.sail fix a typo Co-authored-by: Nicolas Brunie <[email protected]> Signed-off-by: BrighterW <[email protected]> * Update model/riscv_insts_vext_vset.sail * Revisions after Nov 22 meeting * Update effect matching for functions in riscv_vlen.sail * Fix code formatting issues * Update model/riscv_insts_vext_utils.sail Co-authored-by: Jessica Clarke <[email protected]> Signed-off-by: Xinlai Wan <[email protected]> * Fix coding style issues * Update vset instructions Signed-off-by: BrighterW <[email protected]> Signed-off-by: Xinlai Wan <[email protected]> Co-authored-by: Nicolas Brunie <[email protected]> Co-authored-by: Jessica Clarke <[email protected]>
* Add vector load / store instructions * Modify the implementation of SEW, LMUL, VLEN and avoid real numbers in the code * Update vstart setting in vector load / store instructions * Remove unnecessary assert statements in vector instructions * Fix bugs in vleff instructions and revise coding styles * Add guards for vector encdec clauses, Avoid redundant memory access after vector load/store failure
* Add vector arithmetic & mask instructions * Update vector EEW and EMUL checking function * Add vector instruction illegal check functions * Adjust code formatting for vector instruction illegal check functions Merge approved by team at tech-golden-model meeting on 2023-03-14.
Updated the PR:
This update is adjusting the implementation to match the Spike implenentation and as a follow-up. |
* Add vector floating-point instructions * Update vector floating-point conversion instructions * Update copyright headers for vector extension code --------- Co-authored-by: xwan <[email protected]>
Rebased from |
charmitro
force-pushed
the
zvknhab
branch
2 times, most recently
from
May 26, 2023 13:14
d4cbe1d
to
14aa3b5
Compare
* Add vector mask and reduction instructions * Fix register overlap check in vector mask instructions --------- Co-authored-by: xwan <[email protected]>
To support the implementation of Zvknh[ab] extensions in SAIL, this creates the necessary infrastructure(i.e., a file to hold it, and the extension macro), preparing the tree for the Zvknh[ab] implementation. Signed-off-by: Charalampos Mitrodimas <[email protected]>
The "vsha2c[hl].vv" instruction performs two rounds of Vector SHA-2 compression. * "vsha2cl.vv" uses the two most significant message schedule words from the element group in "vs1". * "vsha2cl.vv" uses the two least significant message schedule words from the element group in "vs1" Reserved encodings: * Zvknha: SEW is any value other than 32. * Zvknhb: SEW is any value other than 32 or 64. Signed-off-by: Charalampos Mitrodimas <[email protected]>
The "vsha2ms.vv" instruction performs a Vector SHA-2 message schedule. Reserved encodings: * Zvknha: SEW is any value other than 32. * Zvknhb: SEW is any value other than 32 or 64. Signed-off-by: Charalampos Mitrodimas <[email protected]>
Signed-off-by: Charalampos Mitrodimas <[email protected]>
Signed-off-by: Charalampos Mitrodimas <[email protected]>
billmcspadden-riscv
force-pushed
the
vector-dev
branch
from
October 17, 2023 19:12
e23be60
to
118ad66
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implements the Zvknh[ab] (NIST Suite: Vector SHA-2 Secure Hash) extension, as of version Draft: 20230303
The following instructions are included:
All instructions were tested with VLEN=128(SHA-256) & VLEN=256(SHA-512) and results were compared with QEMU results of each instruction.
Current revision is rebased with the latest changes of
vector-dev
branch.