summaryrefslogtreecommitdiff
path: root/src/storage/dram.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/storage/dram.cc')
-rw-r--r--src/storage/dram.cc20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/storage/dram.cc b/src/storage/dram.cc
index 9e6f6f1..b3b728d 100644
--- a/src/storage/dram.cc
+++ b/src/storage/dram.cc
@@ -1,5 +1,21 @@
#include <dram.h>
+#include <response.h>
-Dram::Dram() {
- address_space.resize(4096);
+Dram::Dram(int lines, int delay)
+{
+ this->data = new std::vector<std::array<unsigned int, 4>>;
+ this->data->resize(lines);
+ this->delay = delay;
+ this->lower = nullptr;
}
+
+Dram::~Dram() { delete this->data; }
+
+Response *Dram::write(Accessor accessor, signed int data, int address)
+{
+ return new Response();
+}
+
+Response *Dram::read(Accessor accessor, int address) { return nullptr; }
+
+int **Dram::view(int base, int lines) { return nullptr; }