summaryrefslogtreecommitdiff
path: root/inc/dram.h
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-03-09 18:28:08 -0400
committerbd <bdunahu@operationnull.com>2025-03-09 18:28:08 -0400
commit5cf5ebce233cc49cc04ac8c7713e12e87bab7798 (patch)
treef79d3f7c3edde913dadb739fe3d88ffba5e76641 /inc/dram.h
parentc9fc9df2d9079fcb6c8354ef758ef3c33a81741b (diff)
Move do_write to dram.h, is_blocked flag
Diffstat (limited to 'inc/dram.h')
-rw-r--r--inc/dram.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/inc/dram.h b/inc/dram.h
index 1061d6b..20221b7 100644
--- a/inc/dram.h
+++ b/inc/dram.h
@@ -19,7 +19,15 @@ class Dram : public Storage
Response read(Accessor accessor, int address, std::array<signed int, LINE_SIZE>& data) override;
private:
+ /**
+ * Helper for `write`.
+ */
+ void do_write(signed int, int);
+ /**
+ * Helper for `read`.
+ */
void do_read(std::array<signed int, LINE_SIZE>& data_line, int address);
};
#endif /* DRAM_H_INCLUDED */
+