From d94a1c6404589c26a2c476d6d8af12019e6db213 Mon Sep 17 00:00:00 2001 From: Ross Thompson Date: Tue, 4 Jan 2022 21:55:48 -0600 Subject: [PATCH] Fixed bug where last line of dcache was not written back to memory on dcache flush. --- pipelined/src/cache/dcache.sv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipelined/src/cache/dcache.sv b/pipelined/src/cache/dcache.sv index 28a8d800..caaaa716 100644 --- a/pipelined/src/cache/dcache.sv +++ b/pipelined/src/cache/dcache.sv @@ -74,7 +74,7 @@ module dcache localparam integer LOGWPL = $clog2(WORDSPERLINE); localparam integer LOGXLENBYTES = $clog2(`XLEN/8); - localparam integer FlushAdrThreshold = NUMLINES - 1; + localparam integer FlushAdrThreshold = NUMLINES; logic [1:0] SelAdrM; logic [INDEXLEN-1:0] RAdr;