From db158de830e4fd4ab20ef5d357e24147c7a9281d Mon Sep 17 00:00:00 2001 From: bd Date: Wed, 5 Mar 2025 14:17:45 -0500 Subject: constructors + method declarations for cache, dram, reponse, storage --- inc/dram.h | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'inc/dram.h') diff --git a/inc/dram.h b/inc/dram.h index 5bc933e..c8782d1 100644 --- a/inc/dram.h +++ b/inc/dram.h @@ -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 */ -- cgit v1.2.3