Skip to content

Commit

Permalink
fix some more memory access
Browse files Browse the repository at this point in the history
  • Loading branch information
hazel-sudz committed Jan 11, 2024
1 parent d2ee5b4 commit 441d3d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/src/cpu/rv32i_multicycle_core.sv
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ module rv32i_multicycle_core(
// mem_access is set the same for store/load during S_MEMREAD and S_MEMWRITE phases
// special case for S_FETCH below where it swaps to MEM_ACCESS_WORD
case(funct3)
3'b000: mem_access = MEM_ACCESS_BYTE;
3'b001: mem_access = MEM_ACCESS_HALF;
3'b000, 3'b100: mem_access = MEM_ACCESS_BYTE;
3'b001, 3'b101: mem_access = MEM_ACCESS_HALF;
3'b010: mem_access = MEM_ACCESS_WORD;
endcase

Expand Down

0 comments on commit 441d3d6

Please sign in to comment.