diff options
author | bd <bdunahu@operationnull.com> | 2025-03-05 14:17:45 -0500 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-03-05 14:17:45 -0500 |
commit | db158de830e4fd4ab20ef5d357e24147c7a9281d (patch) | |
tree | a00ae7890a5b8eba91f81ac84d20a5ee0c5be0d6 /inc/dram.h | |
parent | b4d1e8248400015f2fd0c4b0f04cf33dc867e9cd (diff) |
constructors + method declarations for cache, dram, reponse, storage
Diffstat (limited to 'inc/dram.h')
-rw-r--r-- | inc/dram.h | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -5,12 +5,19 @@ class Dram : public Storage { public: - Dram(); - ~Dram(); + /** + * 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(); - int *load_line(int); - - private: + 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 */ |