Skip to content

Basic arch path#1

Draft
bitglitcher wants to merge 4 commits into
mainfrom
basic-arch-path
Draft

Basic arch path#1
bitglitcher wants to merge 4 commits into
mainfrom
basic-arch-path

Conversation

@bitglitcher

Copy link
Copy Markdown
Member

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.

  • Start simple, then improve.

@bitglitcher bitglitcher self-assigned this Jul 9, 2026
Comment thread design/wb4_sram.sv
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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alignment check missing: addr_i[1:0] == 2'b00

Comment thread design/core.sv
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];

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as rd. Let's make naming more explicit about instr type.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually should we even be concerned about decoding here instead of the decoder module?

Comment thread design/core.sv

typedef enum logic [0:1] { FETCH, EXECUTE } exec_state;

exec_state current_state = FETCH;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets also define PC while at it

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alr, I'll do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants