diff options
author | bd <bdunaisky@umass.edu> | 2025-03-06 21:28:20 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-06 21:28:20 +0000 |
commit | 04909d2bf353494a84bdf8d3d0e2f48ceeaa2ea0 (patch) | |
tree | af137790ab40290d1cc4e83f3261370c591512bc /inc/dram.h | |
parent | b88f24b680be34b3669f33214758c76439d7b777 (diff) | |
parent | e296a3a6ab782cb80b7091324b41bb78db6d3906 (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.h | 23 |
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 */ |