diff options
author | bd <bdunahu@operationnull.com> | 2025-03-06 01:15:31 -0500 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-03-06 01:15:31 -0500 |
commit | c38c0858ad4c9158a8d4361069309a9f0ff3aed8 (patch) | |
tree | aa84162d707090a4ca2c741ff2e6e9799bc612c9 /inc/storage.h | |
parent | 3322aa0845f7fe9cc98aa4e429bd5ecf72a5c27e (diff) |
dram implement delay and conflicting request logic
Diffstat (limited to 'inc/storage.h')
-rw-r--r-- | inc/storage.h | 10 |
1 files changed, 10 insertions, 0 deletions
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 <array> +#include <unordered_map> #include <vector> 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 */ |