From b55007bb90384888e282cd05cc9421237c289ca9 Mon Sep 17 00:00:00 2001 From: Fabian Montero Date: Wed, 4 Oct 2023 19:34:44 -0600 Subject: =?UTF-8?q?a=C3=B1ade=20comentarios=20de=20monitor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rtl/cache/monitor.sv | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'rtl/cache') diff --git a/rtl/cache/monitor.sv b/rtl/cache/monitor.sv index 06864ae..380019e 100644 --- a/rtl/cache/monitor.sv +++ b/rtl/cache/monitor.sv @@ -7,7 +7,7 @@ module cache_monitor input addr_tag core_tag, input addr_index core_index, - input addr_offset core_offset, + input addr_offset core_offset, // Alguno de los 4 cores input logic core_lock, input word core_writedata, output logic[1:0] core_response, @@ -82,11 +82,13 @@ module cache_monitor mask <= 4'b0000; dirty <= 0; end else begin + // ldrex if (monitor_acquire) begin mask <= hit && !known && !dirty ? mask | core_ex_mask : core_ex_mask; dirty <= 0; end + // strexeq if (monitor_release) begin mask <= hit && known ? mask_clear : 4'b0000; dirty <= hit && known; -- cgit v1.2.3