From fddab187c2370f66b02bd3f99cc258c8d5f7ce51 Mon Sep 17 00:00:00 2001 From: Fabian Montero Date: Wed, 4 Oct 2023 22:22:21 -0600 Subject: =?UTF-8?q?a=C3=B1ade=20descripci=C3=B3n=20de=20registro?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rtl/cache/defs.sv | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'rtl/cache') diff --git a/rtl/cache/defs.sv b/rtl/cache/defs.sv index d7c43dc..24ab9ea 100644 --- a/rtl/cache/defs.sv +++ b/rtl/cache/defs.sv @@ -1,8 +1,11 @@ `ifndef CACHE_DEFS_SV `define CACHE_DEFS_SV +// Byte enables typedef logic[3:0] word_be; typedef logic[15:0] line_be; + +// Tamaño de una línea de cache typedef logic[127:0] line; // Choca con typedef en core/uarch.sv @@ -20,6 +23,11 @@ typedef logic[31:0] word; * - 12 bits de index * - 13 bits de tag * - 3 bits que son == 0 si cached, != 0 si uncached + * + * Registro: + * + * 31 29 28 13 12 4 3 2 1 0 + * | IO | Tag | Index | Offset | 0 | */ typedef logic[1:0] addr_mbz; typedef logic[1:0] addr_offset; -- cgit v1.2.3