mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-24 22:27:10 -04:00
Correct small mismatch in icache TB (piton-specific data replication in reads)
This commit is contained in:
parent
61e0a50c0e
commit
2f38fcb853
1 changed files with 15 additions and 16 deletions
|
@ -173,11 +173,10 @@ module mem_emul #(
|
|||
infifo_data.nc = 1'b1;
|
||||
infifo_data.f4b = 1'b1;
|
||||
// replicate words (this is done in openpiton, too)
|
||||
// note: openpiton replicates the words here. we do not do this currently,
|
||||
// but this could save us another mux in the critical path in the icache.
|
||||
// for (int k=0; k<ICACHE_LINE_WIDTH/32; k++) begin
|
||||
// infifo_data.data[k*32 +:32] = mem_array[outfifo_data.paddr>>2];
|
||||
// end
|
||||
// note: openpiton replicates the words here.
|
||||
for (int k=0; k<ICACHE_LINE_WIDTH/32; k++) begin
|
||||
infifo_data.data[k*32 +:32] = mem_array[outfifo_data.paddr>>2];
|
||||
end
|
||||
infifo_data.data[0 +:32] = mem_array[outfifo_data.paddr>>2];
|
||||
end else begin
|
||||
infifo_data.nc = outfifo_data.nc;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue