From 035eba9d7a3b1c68b57bf954d0e3983d6e5f11e5 Mon Sep 17 00:00:00 2001 From: Siddarth-Suresh <65844402+Siddarth-Suresh@users.noreply.github.com> Date: Sun, 9 Mar 2025 12:49:31 -0400 Subject: Code review comments --- src/storage/dram.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/storage') diff --git a/src/storage/dram.cc b/src/storage/dram.cc index 43c092d..0db4c35 100644 --- a/src/storage/dram.cc +++ b/src/storage/dram.cc @@ -38,6 +38,11 @@ Response Dram::write(Accessor accessor, signed int data, int address) return r; } +void Dram::do_read(std::array& data_line, int address){ + int line = address / LINE_SIZE; + data_line = this->data->at(line); +} + Response Dram::read(Accessor accessor, int address, std::array& data) { Response r = WAIT; if (this->requester == IDLE) -- cgit v1.2.3