summaryrefslogtreecommitdiff
path: root/inc/dram.h
diff options
context:
space:
mode:
authorbd <bdunaisky@umass.edu>2025-03-06 21:28:20 +0000
committerGitHub <noreply@github.com>2025-03-06 21:28:20 +0000
commit0983f834b66f046c5468814fa86af3f4a3c215b6 (patch)
treeaf137790ab40290d1cc4e83f3261370c591512bc /inc/dram.h
parente3369aad54bce775e2951e71618eb2cbb17972f9 (diff)
parente296a3a6ab782cb80b7091324b41bb78db6d3906 (diff)
Merge pull request #13 from bdunahu/bdunahu
constructors + method declarations for cache, dram, reponse, storage
Diffstat (limited to 'inc/dram.h')
-rw-r--r--inc/dram.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/inc/dram.h b/inc/dram.h
new file mode 100644
index 0000000..41dd7de
--- /dev/null
+++ b/inc/dram.h
@@ -0,0 +1,23 @@
+#ifndef DRAM_H
+#define DRAM_H
+#include <storage.h>
+
+class Dram : public Storage
+{
+ public:
+ /**
+ * Constructor.
+ * @param The number of `lines` contained in memory. The total number of
+ * words is this number multiplied by 4.
+ * @param The number of clock cycles each access takes.
+ * @return A new memory object.
+ */
+ Dram(int lines, int delay);
+ ~Dram();
+
+ Response *write(Accessor accessor, signed int data, int address) override;
+ Response *read(Accessor accessor, int address) override;
+ int **view(int base, int lines) override;
+};
+
+#endif /* DRAM_H_INCLUDED */