summaryrefslogtreecommitdiff
path: root/inc/dram.h
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-04-12 00:44:29 -0400
committerbd <bdunahu@operationnull.com>2025-04-12 00:44:29 -0400
commit28a2788e2c59357d9269e558b0bd45db3241c42d (patch)
tree5e001355106684d514dcb96afcec2ad102513a33 /inc/dram.h
parent1fb7a9bd5eb41e87871bcbb3423caaabdd8ce1d9 (diff)
Rewrite utils functions as macros
Diffstat (limited to 'inc/dram.h')
-rw-r--r--inc/dram.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/inc/dram.h b/inc/dram.h
index c6c3159..140cbb1 100644
--- a/inc/dram.h
+++ b/inc/dram.h
@@ -52,6 +52,13 @@ class Dram : public Storage
*/
int
is_access_cleared(void *id);
+ /**
+ * Given `address`, returns the line and word it is in.
+ * @param an address
+ * @param the line (row) `address` is in
+ * @param the word (column) `address` corresponds to
+ */
+ void get_memory_index(int address, int &line, int &word);
};
#endif /* DRAM_H_INCLUDED */