diff options
author | Siddarth Suresh <155843085+SiddarthSuresh98@users.noreply.github.com> | 2025-03-25 12:43:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-25 12:43:05 -0400 |
commit | 9eeea1ab8bf4eb17e5da46d57a6c1d455a0a262e (patch) | |
tree | 77f1cccbf29b05493ca5d0e24cbebc606cd90008 /inc/controller.h | |
parent | 7ad79d8430ee22b0180e7077fe727153333e47f6 (diff) | |
parent | 9a0b9ed3d77bde99b1f1ba341850117c188f0156 (diff) |
Merge pull request #35 from bdunahu/bdunahu
Add skeleton classes for 5 major pipeline stages
Agree with different classes for each stage
Diffstat (limited to 'inc/controller.h')
-rw-r--r-- | inc/controller.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/inc/controller.h b/inc/controller.h index 0cafe10..56f3836 100644 --- a/inc/controller.h +++ b/inc/controller.h @@ -1,5 +1,6 @@ #ifndef CONTROLLER_H #define CONTROLLER_H +#include "response.h" #include "stage.h" /** @@ -15,7 +16,6 @@ class Controller : public Stage * @return A newly allocated controller object. */ Controller(Storage *storage, bool is_pipelined); - ~Controller(); /** * Direct the simulator to run for `number` clock cycles. @@ -34,14 +34,10 @@ class Controller : public Stage * @return the pc. */ int get_pc(); + Response advance(); private: /** - * Helper for run_for. - * Advances the simulation by a single cycle. - */ - void advance(); - /** * The current clock cycle. */ int clock_cycle; |