From 598da346f59503442ba0b4badfd9ac8b58af4a89 Mon Sep 17 00:00:00 2001 From: Siddarth-Suresh <65844402+Siddarth-Suresh@users.noreply.github.com> Date: Mon, 31 Mar 2025 13:45:56 -0400 Subject: MEM WB stage --- inc/stage.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'inc/stage.h') diff --git a/inc/stage.h b/inc/stage.h index 84d2a7b..03048b0 100644 --- a/inc/stage.h +++ b/inc/stage.h @@ -30,11 +30,9 @@ class Stage * Advances this stage by a single clock cycle. * A boilerplate version is provided in stage.cc. * - * @param a DTO object containing the next instruction to be processed. * @param a response, indicating whether or not the parent pipe stage is * ready to accept a new instruction object next cycle. - * @return a response, indicating whether this pipeline stage is stalling, - * busy, or done. + * @return a DTO object containing the next instruction to be processed. * * Must set the status to STALLED when an operation completes. */ @@ -55,6 +53,11 @@ class Stage */ void set_pc(unsigned int pc); + /** + * Squashes the pipeline. + */ + void squash(); + protected: /** * The function expected to do the majority of the work. -- cgit v1.2.3