summaryrefslogtreecommitdiff
path: root/inc/controller.h
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-03-24 14:41:13 -0400
committerbd <bdunahu@operationnull.com>2025-03-24 14:41:13 -0400
commit9a0b9ed3d77bde99b1f1ba341850117c188f0156 (patch)
treee8546d59859b3723744e901b51e5448f2b190d7f /inc/controller.h
parent877aa98855fad77ef93a8c9f5a5e8191fbb9e699 (diff)
Add skeleton classes for 5 major pipeline stages
Diffstat (limited to 'inc/controller.h')
-rw-r--r--inc/controller.h8
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;