mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-04-23 21:39:10 -04:00
cache mshr replay bug fix
This commit is contained in:
parent
aa954a6aa8
commit
d07266b1f1
1 changed files with 8 additions and 2 deletions
10
hw/rtl/cache/VX_cache_bank.sv
vendored
10
hw/rtl/cache/VX_cache_bank.sv
vendored
|
@ -196,9 +196,15 @@ module VX_cache_bank #(
|
|||
(replay_valid ? replay_addr :
|
||||
(mem_rsp_valid ? mem_rsp_addr : core_req_addr));
|
||||
|
||||
assign data_sel[`CS_WORD_WIDTH-1:0] = (mem_rsp_valid || !WRITE_ENABLE) ? mem_rsp_data[`CS_WORD_WIDTH-1:0] : (replay_valid ? replay_data : core_req_data);
|
||||
if (WRITE_ENABLE) begin
|
||||
assign data_sel[`CS_WORD_WIDTH-1:0] = replay_valid ? replay_data : (mem_rsp_valid ? mem_rsp_data[`CS_WORD_WIDTH-1:0] : core_req_data);
|
||||
end else begin
|
||||
assign data_sel[`CS_WORD_WIDTH-1:0] = mem_rsp_data[`CS_WORD_WIDTH-1:0];
|
||||
`UNUSED_VAR (core_req_data)
|
||||
`UNUSED_VAR (replay_data)
|
||||
end
|
||||
for (genvar i = `CS_WORD_WIDTH; i < `CS_LINE_WIDTH; ++i) begin
|
||||
assign data_sel[i] = mem_rsp_data[i];
|
||||
assign data_sel[i] = mem_rsp_data[i]; // only the memory response fills the upper words od data_sel
|
||||
end
|
||||
|
||||
VX_pipe_register #(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue