summaryrefslogtreecommitdiff
path: root/rtl/cache
diff options
context:
space:
mode:
Diffstat (limited to 'rtl/cache')
-rw-r--r--rtl/cache/sram.sv2
1 files changed, 2 insertions, 0 deletions
diff --git a/rtl/cache/sram.sv b/rtl/cache/sram.sv
index 74f9e65..bd9140d 100644
--- a/rtl/cache/sram.sv
+++ b/rtl/cache/sram.sv
@@ -21,6 +21,8 @@ module cache_sram
// Existe un mito que habla de true dual-ports con byte-enables, dudo mucho que sea real:
// https://www.intel.com/content/www/us/en/docs/programmable/683082/21-3/ram-with-byte-enable-signals.html
+ // Define la cantidad de lĂ­neas de cache
+ // $bits(addr_index) = 9 --> 1 << 9 = 512
localparam DEPTH = 1 << $bits(addr_index);
line data_file[DEPTH] /*verilator public*/;