From 431cba9a4bcef0e0ae047d45a7f3d98e601e30ed Mon Sep 17 00:00:00 2001 From: bd Date: Fri, 21 Mar 2025 16:06:07 -0400 Subject: Small cleanups to up a lot of inplementation details --- inc/dram.h | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) (limited to 'inc/dram.h') diff --git a/inc/dram.h b/inc/dram.h index c7f927a..ff2c298 100644 --- a/inc/dram.h +++ b/inc/dram.h @@ -32,22 +32,13 @@ class Dram : public Storage private: /** - * Helper for `write` a word + * 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. + * @param the accessor asking for a resource + * @return whether or not the access can be carried out this function call. */ - void do_write(signed int, int); - /** - * Helper for writing a line. - */ - void - do_write_line(std::array data_line, int address); - /** - * Helper for `read` a line - */ - void do_read(std::array &data_line, int address); - /** - * Helper for reading a word. - */ - void do_read_word(signed int &data, int address); + Response is_access_cleared(Accessor accessor); }; std::ostream &operator<<(std::ostream &os, const Dram &d); -- cgit v1.2.3