Fixed synthesis bug with icache valid bit.

This commit is contained in:
Ross Thompson 2021-05-04 13:03:08 -05:00
parent 87d3869a6e
commit 2aa4db470b

View File

@ -89,7 +89,9 @@ module rodirectmappedmemre #(parameter NUMLINES=512, parameter LINESIZE = 256, p
// Correctly handle the valid bits
always_ff @(posedge clk, posedge reset) begin
if (reset || flush) begin
if (reset) begin
ValidOut <= {NUMLINES{1'b0}};
end else if (flush) begin
ValidOut <= {NUMLINES{1'b0}};
end else begin
if (WriteEnable) begin