diff options
author | bd <bdunahu@operationnull.com> | 2025-03-09 18:28:08 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-03-09 18:28:08 -0400 |
commit | 6bfae0ef7c7583cfd8a9771332db74ee6eb77a68 (patch) | |
tree | f79d3f7c3edde913dadb739fe3d88ffba5e76641 /src/storage/dram.cc | |
parent | 56c92e4785fa6952e390fd249cd654f0e5b2d83e (diff) |
Move do_write to dram.h, is_blocked flag
Diffstat (limited to 'src/storage/dram.cc')
-rw-r--r-- | src/storage/dram.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/storage/dram.cc b/src/storage/dram.cc index 0db4c35..e3f3c9a 100644 --- a/src/storage/dram.cc +++ b/src/storage/dram.cc @@ -15,6 +15,14 @@ Dram::Dram(int lines, int delay) Dram::~Dram() { delete this->data; } +void Dram::do_write(signed data, int address) +{ + int line = address / LINE_SIZE; + int word = address % LINE_SIZE; + + this->data->at(line).at(word) = data; +} + Response Dram::write(Accessor accessor, signed int data, int address) { Response r = WAIT; |