Basic arch path#1
Draft
bitglitcher wants to merge 5 commits into
Draft
Conversation
siddhpant
requested changes
Jul 9, 2026
| logic addr_valid; | ||
|
|
||
| assign word_addr = addr_i[ADDR_WIDTH+1:2]; // Byte to word address | ||
| assign addr_valid = (addr_i[31:ADDR_WIDTH+2] == 0); // Check upper bits are 0 |
Member
There was a problem hiding this comment.
Alignment check missing: addr_i[1:0] == 2'b00
| wire [11:0] imm = IR[31:20]; | ||
|
|
||
| wire [6:0] imm_11_5 = IR[31:25]; | ||
| wire [4:0] imm_4_0 = IR[11:7]; |
Member
There was a problem hiding this comment.
Same as rd. Let's make naming more explicit about instr type.
Member
There was a problem hiding this comment.
Actually should we even be concerned about decoding here instead of the decoder module?
|
|
||
| typedef enum logic [0:1] { FETCH, EXECUTE } exec_state; | ||
|
|
||
| exec_state current_state = FETCH; |
Member
There was a problem hiding this comment.
lets also define PC while at it
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.
Add supporting file for the 2 cycle RV32I Core.
There was a change of plans. After a quick discussion with team members.
We have decided to change course a simple RV32I architecture.