Correct small mismatch in icache TB (piton-specific data replication in reads)

This commit is contained in:
Michael Schaffner 2018-11-21 22:36:21 +01:00
parent 61e0a50c0e
commit 2f38fcb853
No known key found for this signature in database
GPG key ID: 7AA09AE049819C2C

View file

@ -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;