feat(rvt): support Risc-V tensor instruction test#64
Open
sploving1 wants to merge 1 commit intoOpenXiangShan:masterfrom
Open
feat(rvt): support Risc-V tensor instruction test#64sploving1 wants to merge 1 commit intoOpenXiangShan:masterfrom
sploving1 wants to merge 1 commit intoOpenXiangShan:masterfrom
Conversation
This file contains hidden or 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
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.
This commit adds a comprehensive test application to validate the RISC-V tensor (RVT) extension implementation in NEMU.
Key additions:
New test application at apps/rvt-trigger/trigger.c that thoroughly exercises the RVT instruction set
Dual implementation approach providing both CPU reference and tensor accelerator execution paths
End-to-end validation of the complete tensor workflow including configuration, data transfer, and computation
Test Application Features:
Reference CPU implementation (matmul_cpu) - Standard triple-loop matrix multiplication for baseline comparison
Tensor accelerator workflow demonstrating:
TCSR (Tensor Control and Status Registers) configuration for matrices A, B, and C
Synchronized data transfers between system memory and URAM
Execution of tensor matrix multiplication instructions using inline assembly
Verification mechanism comparing accelerator results against CPU reference with detailed error reporting
Configurable test dimensions (M=16, K=32, N=64) suitable for simulation environments