From 83eb76e0b3f6570b5e27e2295551f648eea96d86 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Sun, 5 Jun 2022 16:23:07 -0700 Subject: Add cache clearing to the command parser. --- hdl/mem_cache.sv | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'hdl/mem_cache.sv') diff --git a/hdl/mem_cache.sv b/hdl/mem_cache.sv index 5f3db73..2257a4f 100644 --- a/hdl/mem_cache.sv +++ b/hdl/mem_cache.sv @@ -6,6 +6,8 @@ module mem_cache ( input bit clock , input bit reset + , input bit clear + , output bit core_command_ready , input bit core_command_valid , input pdp_command_t core_command_data @@ -52,16 +54,19 @@ module mem_cache core_response_valid = 0; outstanding_fill = 0; reset_entry = 0; - end else if (reset_entry < (1<