diff options
author | Siddarth Suresh <155843085+SiddarthSuresh98@users.noreply.github.com> | 2025-03-08 21:07:09 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-08 21:07:09 -0500 |
commit | 0c6c9f8074aa5c356e2a1e582ab81355967a2060 (patch) | |
tree | e76871ceee74d36a660d5347c694493411426a7b /inc/cache.h | |
parent | 71ce62bd7797300c72b635a81ebcf677be4936a7 (diff) | |
parent | 7e64289d658d077ceffaa9f7272ccbe0f27277fa (diff) |
Merge pull request #14 from bdunahu/bdunahuer
Storage.view + Dram.store methods, tests
Diffstat (limited to 'inc/cache.h')
-rw-r--r-- | inc/cache.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/inc/cache.h b/inc/cache.h index 101cd6e..f1fb942 100644 --- a/inc/cache.h +++ b/inc/cache.h @@ -8,7 +8,7 @@ class Cache : public Storage /** * Constructor. * @param The number of `lines` contained in memory. The total number of - * words is this number multiplied by 4. + * words is this number multiplied by LINE_SIZE. * @param The next lowest level in storage. Methods from this object are * called in case of a cache miss. * @param The number of clock cycles each access takes. @@ -17,9 +17,8 @@ class Cache : public Storage Cache(int lines, Storage *lower, int delay); ~Cache(); - Response *write(Accessor accessor, signed int data, int address) override; - Response *read(Accessor accessor, int address) override; - int **view(int base, int lines) override; + Response write(Accessor accessor, signed int data, int address) override; + Response read(Accessor accessor, int address) override; }; #endif /* CACHE_H_INCLUDED */ |