A new enhancement done according the issue #87#88
Open
Sukuna0007Abhi wants to merge 2 commits intomerledu:masterfrom
Open
A new enhancement done according the issue #87#88Sukuna0007Abhi wants to merge 2 commits intomerledu:masterfrom
Sukuna0007Abhi wants to merge 2 commits intomerledu:masterfrom
Conversation
Signed-off-by: Sukuna0007Abhi <appsonly310@gmail.com>
Author
|
check this PR @shahzaibk23 @5hayanB |
Member
|
@Sukuna0007Abhi did you check running compliance tests? |
…e testing infrastructure Signed-off-by: GitHub <noreply@github.com>
Author
|
@Talha-Ahmed-1 Yes, I implemented complete CSR support with 17 registers and 9 instructions, created RISC-V compliance testing infrastructure, and verified all CSR operations work correctly through compliance testing, all testing is working but the only remaining part is adding signature output to the simulator for automated compliance test reporting, but the CSR functionality itself is fully working and verified. |
Member
|
Looks interesting, but it changes the current design pattern of the implemented CSR flow. ( @5hayanB ) |
Member
|
@qarinaatif (for reference) |
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.
CSR Implementation for NucleusRV
Fixes: #87
Summary
Implements Control and Status Register (CSR) support and system instructions for NucleusRV, enabling exception handling and system-level programming.
Features Added
Instructions
CSR Registers (17 total)
Exception Handling
Files Changed
New:
CSR.scala- CSR register fileCSRUnit.scala- CSR execution unitModified:
Constants.scala- CSR addresses/opcodesControl.scala- System instruction decodeCore.scala- Pipeline integrationInstructionDecode.scala- CSR control signalsTests:
csr_test.S- Assembly test programmain.c- C API testsCSRUnitTest.scala- Unit testsTesting
Impact
Benefits
Documentation Added:
.readthedocs.yaml,docs/requirements.txt)docs/CSR_Implementation.md)Transforms NucleusRV into a system-capable RISC-V processor! 🚀