diff options
author | Siddarth-Suresh <65844402+Siddarth-Suresh@users.noreply.github.com> | 2025-03-09 11:39:59 -0400 |
---|---|---|
committer | Siddarth-Suresh <65844402+Siddarth-Suresh@users.noreply.github.com> | 2025-03-09 11:39:59 -0400 |
commit | 01332f67ddb66a151eb31269fa82961ba71f4c97 (patch) | |
tree | 48d34db1bf24205d971cc25c63dfe6f5df6e341c /inc/dram.h | |
parent | 212a47482c5c037720aef726fcb2b7bb3a3acd67 (diff) |
Implement dram load
Diffstat (limited to 'inc/dram.h')
-rw-r--r-- | inc/dram.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -16,7 +16,13 @@ class Dram : public Storage ~Dram(); Response write(Accessor accessor, signed int data, int address) override; - Response read(Accessor accessor, int address) override; + Response read(Accessor accessor, int address, std::array<signed int, LINE_SIZE>& data) override; + + private: + void do_read(std::array<signed int, LINE_SIZE>& data_line, int address){ + int line = address / LINE_SIZE; + data_line = this->data->at(line); + } }; #endif /* DRAM_H_INCLUDED */ |