summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorSiddarth-Suresh <65844402+Siddarth-Suresh@users.noreply.github.com>2025-03-11 01:31:43 -0400
committerSiddarth-Suresh <65844402+Siddarth-Suresh@users.noreply.github.com>2025-03-11 11:32:33 -0400
commit7284cc1391dbb250cd6738a75853be7e3576fa41 (patch)
treecb4c89f9ccd7ed94868dc4b5d1f73a9fdb5be55a /inc
parent33c7c78b1c65c375d0291fd435e02ddc9d35681b (diff)
Write line, dirty cache eviction, cache load word/line (for future multilevel cache implementation)
Diffstat (limited to 'inc')
-rw-r--r--inc/cache.h1
-rw-r--r--inc/dram.h4
2 files changed, 4 insertions, 1 deletions
diff --git a/inc/cache.h b/inc/cache.h
index 04f6181..5cdcea4 100644
--- a/inc/cache.h
+++ b/inc/cache.h
@@ -25,6 +25,7 @@ class Cache : public Storage
Accessor accessor,
int address,
std::array<signed int, LINE_SIZE> &data) override;
+ Response read_word(Accessor accessor, int address, signed int &data);
/**
* Getter for the meta attribute.
diff --git a/inc/dram.h b/inc/dram.h
index 2d4088f..d68797f 100644
--- a/inc/dram.h
+++ b/inc/dram.h
@@ -23,7 +23,9 @@ class Dram : public Storage
int address,
std::array<signed int, LINE_SIZE> &data) override;
- private:
+ void write_line(std::array<signed int, LINE_SIZE> data_line, int address);
+
+ private:
/**
* Helper for `write`.
*/