diff options
author | bd <bdunahu@operationnull.com> | 2025-04-12 00:44:29 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-04-12 00:44:29 -0400 |
commit | 28a2788e2c59357d9269e558b0bd45db3241c42d (patch) | |
tree | 5e001355106684d514dcb96afcec2ad102513a33 /inc/dram.h | |
parent | 1fb7a9bd5eb41e87871bcbb3423caaabdd8ce1d9 (diff) |
Rewrite utils functions as macros
Diffstat (limited to 'inc/dram.h')
-rw-r--r-- | inc/dram.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 */ |