diff options
author | bd <bdunahu@operationnull.com> | 2025-03-21 16:06:07 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-03-21 16:06:07 -0400 |
commit | 75f78c215131499165101a499197313ba77ea230 (patch) | |
tree | 178eefa29cd9ac5ba88efd989364e1bbf591189e /inc/dram.h | |
parent | 7e01ac0891452dfda93c2dcfd0817a4d43871c4b (diff) |
Small cleanups to up a lot of inplementation details
Diffstat (limited to 'inc/dram.h')
-rw-r--r-- | inc/dram.h | 21 |
1 files changed, 6 insertions, 15 deletions
@@ -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<signed int, LINE_SIZE> data_line, int address); - /** - * Helper for `read` a line - */ - void do_read(std::array<signed int, LINE_SIZE> &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); |