From 7284cc1391dbb250cd6738a75853be7e3576fa41 Mon Sep 17 00:00:00 2001 From: Siddarth-Suresh <65844402+Siddarth-Suresh@users.noreply.github.com> Date: Tue, 11 Mar 2025 01:31:43 -0400 Subject: Write line, dirty cache eviction, cache load word/line (for future multilevel cache implementation) --- inc/cache.h | 1 + inc/dram.h | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'inc') 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 &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 &data) override; - private: + void write_line(std::array data_line, int address); + + private: /** * Helper for `write`. */ -- cgit v1.2.3