summaryrefslogtreecommitdiff
path: root/src/storage/dram.cc
blob: 89c7316213c0d93238c132597cda402d46323b0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "dram.h"
#include "response.h"
#include <algorithm>

Dram::Dram(int lines, int delay)
{
	this->data = new std::vector<std::array<signed 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; }