From 1346d64ba9eb2cfa4622e538b69e2130602b9547 Mon Sep 17 00:00:00 2001 From: Blaise Tine Date: Mon, 22 Feb 2021 04:04:13 -0800 Subject: [PATCH] minor update --- hw/rtl/VX_print_instr.vh | 4 ++-- hw/rtl/cache/VX_shared_mem.v | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/rtl/VX_print_instr.vh b/hw/rtl/VX_print_instr.vh index 23674a1f..34870890 100644 --- a/hw/rtl/VX_print_instr.vh +++ b/hw/rtl/VX_print_instr.vh @@ -4,9 +4,9 @@ `include "VX_define.vh" task print_ex_type ( - input [`EX_BITS-1:0] ex + input [`EX_BITS-1:0] ex_type ); - case (ex) + case (ex_type) `EX_ALU: $write("ALU"); `EX_LSU: $write("LSU"); `EX_CSR: $write("CSR"); diff --git a/hw/rtl/cache/VX_shared_mem.v b/hw/rtl/cache/VX_shared_mem.v index b3d192c7..ff8ef7ea 100644 --- a/hw/rtl/cache/VX_shared_mem.v +++ b/hw/rtl/cache/VX_shared_mem.v @@ -222,7 +222,7 @@ module VX_shared_mem #( `ifdef DBG_PRINT_CACHE_BANK always @(posedge clk) begin - if (crsq_full) begin + if (!crsq_in_ready) begin $display("%t: cache%0d pipeline-stall", $time, CACHE_ID); end if (creq_pop) begin