From c38c0858ad4c9158a8d4361069309a9f0ff3aed8 Mon Sep 17 00:00:00 2001 From: bd Date: Thu, 6 Mar 2025 01:15:31 -0500 Subject: dram implement delay and conflicting request logic --- inc/storage.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'inc/storage.h') diff --git a/inc/storage.h b/inc/storage.h index c0f09a3..f5659c5 100644 --- a/inc/storage.h +++ b/inc/storage.h @@ -3,12 +3,14 @@ #include "definitions.h" #include "response.h" #include +#include #include enum Accessor { MEMORY, FETCH, L1CACHE, + IDLE, }; class Storage @@ -55,6 +57,14 @@ class Storage * requests. */ int delay; + /** + * The accessor currently being serviced. + */ + enum Accessor servicing; + /** + * The number of cycles until the currently request is completed. + */ + int wait_time; }; #endif /* STORAGE_H_INCLUDED */ -- cgit v1.2.3