summaryrefslogtreecommitdiff
path: root/gui/worker.cc
diff options
context:
space:
mode:
authorSiddarth-Suresh <65844402+Siddarth-Suresh@users.noreply.github.com>2025-04-15 11:59:27 -0400
committerSiddarth-Suresh <65844402+Siddarth-Suresh@users.noreply.github.com>2025-04-15 11:59:27 -0400
commitf9e5214e87a935e1311b886e44bdfe1f8bfbdf56 (patch)
tree481b94886edf89f3bf08d06b96092298d1cdbf8c /gui/worker.cc
parent561f7a6e6c24b05383b6db86b48125ee80a8355f (diff)
Added pipeline to GUI
Diffstat (limited to 'gui/worker.cc')
-rw-r--r--gui/worker.cc13
1 files changed, 12 insertions, 1 deletions
diff --git a/gui/worker.cc b/gui/worker.cc
index 685b46c..e7c9876 100644
--- a/gui/worker.cc
+++ b/gui/worker.cc
@@ -63,6 +63,8 @@ void Worker::doWork()
this->d->load(p);
}
+
+
Worker::~Worker()
{
emit finished();
@@ -98,6 +100,11 @@ void Worker::runSteps(int steps)
emit cache_storage(this->c->view(0, 8));
emit register_storage(this->ct->get_gprs());
emit clock_cycles(this->ct->get_clock_cycle(), this->ct->get_pc());
+ emit if_info(this->if_stage->stage_info());
+ emit id_info(this->id_stage->stage_info());
+ emit ex_info(this->ex_stage->stage_info());
+ emit mm_info(this->mm_stage->stage_info());
+ emit wb_info(this->wb_stage->stage_info());
}
void Worker::runStep()
@@ -107,6 +114,10 @@ void Worker::runStep()
emit dram_storage(this->d->view(0, 256));
emit cache_storage(this->c->view(0, 8));
emit register_storage(this->ct->get_gprs());
- qDebug() << "PC " << this->ct->get_pc();
emit clock_cycles(this->ct->get_clock_cycle(), this->ct->get_pc());
+ emit if_info(this->if_stage->stage_info());
+ emit id_info(this->id_stage->stage_info());
+ emit ex_info(this->ex_stage->stage_info());
+ emit mm_info(this->mm_stage->stage_info());
+ emit wb_info(this->wb_stage->stage_info());
}