diff options
Diffstat (limited to 'inc/dram.h')
-rw-r--r-- | inc/dram.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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. |