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/stage.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/stage.h')
-rw-r--r-- | inc/stage.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/inc/stage.h b/inc/stage.h index 769818c..494f3d3 100644 --- a/inc/stage.h +++ b/inc/stage.h @@ -1,13 +1,21 @@ #ifndef STAGE_H #define STAGE_H #include "definitions.h" +#include "response.h" #include "storage.h" #include <array> class Stage { public: + Stage(Stage *next); virtual ~Stage() = default; + /** + * Advances this stage by a single clock cycle. + * @return a response, indicating whether this pipeline stage is stalled, + * busy, or done. + */ + virtual Response advance() = 0; protected: /** |