Skip to content

Commit

Permalink
RTL: fixed issue with memory access alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
jeras committed Apr 30, 2022
1 parent 5010d37 commit 726d888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FemtoRV/RTL/PROCESSOR/femtorv32_quark.v
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ module FemtoRV32 #(
// 32 bits, so we deactivate width test for mem_addr and writeBackData

assign mem_addr = state[WAIT_INSTR_bit] | state[FETCH_INSTR_bit] ?
PC : loadstore_addr ;
PC : {loadstore_addr[ADDR_WIDTH-1:2], 2'b00} ;

/***************************************************************************/
// The value written back to the register file.
Expand Down

0 comments on commit 726d888

Please sign in to comment.