summaryrefslogtreecommitdiff
path: root/rtl
diff options
context:
space:
mode:
authorFabian Montero <fabian@posixlycorrect.com>2023-10-04 22:22:21 -0600
committerFabian Montero <fabian@posixlycorrect.com>2023-10-04 22:22:21 -0600
commitfddab187c2370f66b02bd3f99cc258c8d5f7ce51 (patch)
tree374013e0aacfae5b6e2e5d40f085c7be084e0eaf /rtl
parentb55007bb90384888e282cd05cc9421237c289ca9 (diff)
añade descripción de registro
Diffstat (limited to 'rtl')
-rw-r--r--rtl/cache/defs.sv8
1 files changed, 8 insertions, 0 deletions
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;