summaryrefslogtreecommitdiff
path: root/inc/dram.h
diff options
context:
space:
mode:
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 */