From 72d54c749ca55121d1a1410c84e6cf59c72238df Mon Sep 17 00:00:00 2001 From: Blaise Tine Date: Wed, 20 May 2020 18:11:31 -0400 Subject: [PATCH] fixed cache msrq reset logic --- driver/rtlsim/Makefile | 2 +- hw/rtl/cache/VX_cache_miss_resrv.v | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/driver/rtlsim/Makefile b/driver/rtlsim/Makefile index 31bc887f..cd78ddfa 100644 --- a/driver/rtlsim/Makefile +++ b/driver/rtlsim/Makefile @@ -15,7 +15,7 @@ DBG_PRINT = -DDBG_PRINT_CORE_ICACHE \ #MULTICORE += -DNUM_CLUSTERS=1 -DNUM_CORES=2 MULTICORE += -DNUM_CLUSTERS=1 -DNUM_CORES=2 -DL2_ENABLE=0 -DEBUG = 1 +#DEBUG = 1 CFLAGS += -fPIC diff --git a/hw/rtl/cache/VX_cache_miss_resrv.v b/hw/rtl/cache/VX_cache_miss_resrv.v index cb574bb1..fb1aaf8b 100644 --- a/hw/rtl/cache/VX_cache_miss_resrv.v +++ b/hw/rtl/cache/VX_cache_miss_resrv.v @@ -66,7 +66,7 @@ module VX_cache_miss_resrv #( assign miss_resrv_stop = (size > $bits(size)'(MRVQ_SIZE-5)); wire enqueue_possible = !miss_resrv_full; - wire [`LOG2UP(MRVQ_SIZE)-1:0] enqueue_index = tail_ptr; + wire [`LOG2UP(MRVQ_SIZE)-1:0] enqueue_index = tail_ptr; `IGNORE_WARNINGS_BEGIN wire [31:0] make_ready_push_full; @@ -125,11 +125,9 @@ module VX_cache_miss_resrv #( end if (mrvq_pop) begin - valid_table[dequeue_index] <= 0; - ready_table[dequeue_index] <= 0; - addr_table[dequeue_index] <= 0; - metadata_table[dequeue_index] <= 0; - head_ptr <= head_ptr + 1; + valid_table[dequeue_index] <= 0; + ready_table[dequeue_index] <= 0; + head_ptr <= head_ptr + 1; end if (!(mrvq_push && mrvq_pop)) begin