diff options
author | bd <bdunahu@operationnull.com> | 2025-04-19 03:37:43 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-04-19 03:37:43 -0400 |
commit | bb3d940fb4ce0dd3efc56b934a7b4ea8ffab4b13 (patch) | |
tree | 857e9ee14530e4492c6e6f612bce227a3197fd48 /gui/worker.cc | |
parent | 327ba8b631436cf21866c05c6c7cae239fe54a5c (diff) |
GUI validate program
Diffstat (limited to 'gui/worker.cc')
-rw-r--r-- | gui/worker.cc | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gui/worker.cc b/gui/worker.cc index 1d87fd3..558552f 100644 --- a/gui/worker.cc +++ b/gui/worker.cc @@ -10,6 +10,33 @@ Worker::~Worker() delete this->ct; } +void Worker::configure(std::vector<unsigned int> ways, bool is_pipelined) +{ + // this->d = new Dram(DRAM_DELAY); + // setWays(ways); + // setSize(size); + // this->cache_enabled = is_cache_enabled; + // if (!is_cache_enabled || ways.size() == 0) { + // this->ct = new Controller(wb_stage, this->d, is_pipelined); + // } else { + // // 0th index cache has largest delay + // for (int i = 0; i < ways.size(); i++) { + // if (i == 0) { + // Cache *cache = + // new Cache(this->d, size[i], ways[i], ways.size()); + // this->c.push_back(cache); + // } else { + // Cache *cache = new Cache( + // this->c[i - 1], size[i], ways[i], ways.size() - i); + // this->c.push_back(cache); + // } + // } + // this->ct = + // new Controller(wb_stage, this->c.at(ways.size() - 1), is_pipelined); + // } + emit clock_cycles(this->ct->get_clock_cycle(), this->ct->get_pc()); +} + void Worker::refreshDram() { qDebug() << "Refreshing Dram"; |