From 9a0b9ed3d77bde99b1f1ba341850117c188f0156 Mon Sep 17 00:00:00 2001 From: bd Date: Mon, 24 Mar 2025 14:41:13 -0400 Subject: Add skeleton classes for 5 major pipeline stages --- inc/controller.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'inc/controller.h') 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,13 +34,9 @@ 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. */ -- cgit v1.2.3