diff options
author | bd <bdunaisky@umass.edu> | 2025-04-16 15:56:32 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-16 15:56:32 +0000 |
commit | b778ccc3e7c2f2ac3c4892a87f5269f342fd895f (patch) | |
tree | 481b94886edf89f3bf08d06b96092298d1cdbf8c /gui/worker.cc | |
parent | 561f7a6e6c24b05383b6db86b48125ee80a8355f (diff) | |
parent | f9e5214e87a935e1311b886e44bdfe1f8bfbdf56 (diff) |
Merge pull request #51 from bdunahu/dev-sid
[WIP] Added pipeline to GUI
Diffstat (limited to 'gui/worker.cc')
-rw-r--r-- | gui/worker.cc | 13 |
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()); } |