C extension support - #22
Open
Abdulwadoodd wants to merge 28 commits into
Open
Conversation
Implementation of state machine to handle mis-aligned memory access that may arise due to Compressed instructions. Signed-off-by: Abdul Wadood <abdulwadood.afzal88@gmail.com>
Implement 16-bit to 32-bit decoder for Compressed Instructions Signed-off-by: Abdul Wadood <abdulwadood.afzal88@gmail.com>
This incorporates instruction re-alignment and its decompression. Only active whem Compressed Instruction encounters. Signed-off-by: Abdul Wadood <abdulwadood.afzal88@gmail.com>
add `if_stall` and `comp_ack` to the interface. These are used by pre-fetch interface for C inrtuctions Signed-off-by: Abdul Wadood <abdulwadood.afzal88@gmail.com>
Signed-off-by: Abdul Wadood <abdulwadood.afzal88@gmail.com>
- Allow pc+2 increment in case Compressed instruction encounters - stop mis-aligned memory access exception when half-word (pc+2) memory accessed. - add if_stall signal to ICache interface for pre-fetch control Signed-off-by: Abdul Wadood <abdulwadood.afzal88@gmail.com>
This is only active when Compressed Instruction encounters. Otherwise, it will just pass through signals b/w IF and Icache. Signed-off-by: Abdul Wadood <abdulwadood.afzal88@gmail.com>
Signed-off-by: Abdul Wadood <abdulwadood.afzal88@gmail.com>
Make code style consistent with existing code base Signed-off-by: Abdul Wadood <abdulwadood.afzal88@gmail.com>
Signed-off-by: Abdul Wadood <abdulwadood.afzal88@gmail.com>
Signed-off-by: Abdul Wadood <abdulwadood.afzal88@gmail.com>
Compressed Extension Support in Pcore
arch-tests assumes that mtval should set with instruction address on ebreak, however RISC-V privilege spec provide choice whether to set 0 or faulty address in mtval. This change is to make pcore consistent with ACTs. Signed-off-by: Abdul Wadood <abdulwadood.afzal88@gmail.com>
Signed-off-by: Abdul Wadood <abdulwadood.afzal88@gmail.com>
Fix: hello and linux example programs working with compressed extension when simulated using verilator Signed-off-by: Abdul Wadood <abdulwadood.afzal88@gmail.com>
Signed-off-by: Abdul Wadood <abdulwadood.afzal88@gmail.com>
Updates the decompress module. Fix synthesis related errors of multi-driven signals Signed-off-by: Abdul Wadood <abdulwadood.afzal88@gmail.com>
Update Pre-fetch stage
Signed-off-by: Abdul Wadood <abdulwadood.afzal88@gmail.com>
Signed-off-by: Abdul Wadood <abdulwadood.afzal88@gmail.com>
Signed-off-by: Abdul Wadood <abdulwadood.afzal88@gmail.com>
Signed-off-by: Abdul Wadood <abdulwadood.afzal88@gmail.com>
Add extra state to avoid unncessary stalls when switching from Compressed to Uncompressed instructions and vice versa, when there is no flow control i.e branhc or jump Signed-off-by: Abdul Wadood <abdulwadood.afzal88@gmail.com>
Signed-off-by: Abdul Wadood <abdulwadood.afzal88@gmail.com>
Signed-off-by: Abdul Wadood <abdulwadood.afzal88@gmail.com>
Signed-off-by: Abdul Wadood <abdulwadood.afzal88@gmail.com>
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.
fence.ifix.Edit:
The Linux kernel working on FPGA with C ext support
Fix: halt the icache request on tlb flush