-
Notifications
You must be signed in to change notification settings - Fork 100
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 decoder for RVV instructions #501
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmarks
Benchmark suite | Current: f092a89 | Previous: 9225e3b | Ratio |
---|---|---|---|
Dhrystone |
1473 Average DMIPS over 10 runs |
1550 Average DMIPS over 10 runs |
1.05 |
Coremark |
1416.118 Average iterations/sec over 10 runs |
1409.498 Average iterations/sec over 10 runs |
1.00 |
This comment was automatically generated by workflow using github-action-benchmark.
7de4a2a
to
11ea214
Compare
2dcaaf6
to
73db290
Compare
How can you test the RVV instructions? |
A test set own by chipsalliance is here. https://github.com/chipsalliance/riscv-vector-tests/tree/main I think we can test instructions' behavior with this repo. However, testing decoder is harder. I think I will Spike the verify the behavior, or generating the test cases |
@@ -370,6 +370,9 @@ static bool has_loops = false; | |||
} | |||
|
|||
#include "rv32_template.c" | |||
#if RV32_HAS(EXT_RVV) | |||
#include "rv32_rvv_template.c" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename it to rv32_vector.c
/* | ||
* This file is auto-generated by running 'make' in | ||
* https://github.com/riscv/riscv-opcodes (9226b0d) | ||
* and it is temporarily used by RVV only | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Related: #103
Do you think it makes sense to replace the existing hand-written RISC-V instruction decoder with the generated one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the current one is good for education, especially the comments are valuable.
However I think having a table to clearly store the instructions in human-readable form is good for the future development.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But this encoding.h is only a temporary header file for me to decode rvv instructions.
relate to #504