Skip to content

Commit

Permalink
Update load_store_unit.sv
Browse files Browse the repository at this point in the history
  • Loading branch information
AEzzejjari authored Dec 4, 2023
1 parent e039f6a commit 542af3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/load_store_unit.sv
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ module load_store_unit
assign vaddr_xlen = $unsigned($signed(fu_data_i.imm) + $signed(fu_data_i.operand_a));
assign vaddr_i = vaddr_xlen[riscv::VLEN-1:0];
// we work with SV39 or SV32, so if VM is enabled, check that all bits [XLEN-1:38] or [XLEN-1:31] are equal
assign overflow = (riscv::IS_XLEN64 && !((&vaddr_xlen[riscv::XLEN-1:riscv::SV-1]) == 1'b1 || (|vaddr_xlen[riscv::XLEN-1:riscv::SV-1]) == 1'b0));
assign overflow = (riscv::IS_XLEN64 && (!((&vaddr_xlen[riscv::XLEN-1:riscv::SV-1]) == 1'b1 || (|vaddr_xlen[riscv::XLEN-1:riscv::SV-1]) == 1'b0)));

logic st_valid_i;
logic ld_valid_i;
Expand Down

0 comments on commit 542af3e

Please sign in to comment.