diff options
author | Siddarth-Suresh <65844402+Siddarth-Suresh@users.noreply.github.com> | 2025-03-11 01:31:43 -0400 |
---|---|---|
committer | Siddarth-Suresh <65844402+Siddarth-Suresh@users.noreply.github.com> | 2025-03-11 11:32:33 -0400 |
commit | 7284cc1391dbb250cd6738a75853be7e3576fa41 (patch) | |
tree | cb4c89f9ccd7ed94868dc4b5d1f73a9fdb5be55a /inc | |
parent | 33c7c78b1c65c375d0291fd435e02ddc9d35681b (diff) |
Write line, dirty cache eviction, cache load word/line (for future multilevel cache implementation)
Diffstat (limited to 'inc')
-rw-r--r-- | inc/cache.h | 1 | ||||
-rw-r--r-- | inc/dram.h | 4 |
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. @@ -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`. */ |