summaryrefslogtreecommitdiff
path: root/inc/dram.h
diff options
context:
space:
mode:
Diffstat (limited to 'inc/dram.h')
-rw-r--r--inc/dram.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/inc/dram.h b/inc/dram.h
index ff2c298..e6db633 100644
--- a/inc/dram.h
+++ b/inc/dram.h
@@ -32,6 +32,18 @@ class Dram : public Storage
private:
/**
+ * Helper for all access methods.
+ * Calls `request_handler` when `accessor` is allowed to complete its
+ * request cycle.
+ * @param the source making the request
+ * @param the address to write to
+ * @param the function to call when an access should be completed
+ */
+ Response process(
+ Accessor accessor,
+ int address,
+ std::function<void(int line, int word)> request_handler);
+ /**
* Returns OK if `accessor` is allowed to complete its request this cycle.
* Handles wait times, side door, and setting the current accessor this
* storage is serving.