summaryrefslogtreecommitdiff
path: root/gui/worker.h
diff options
context:
space:
mode:
authorSiddarth-Suresh <65844402+Siddarth-Suresh@users.noreply.github.com>2025-04-18 04:08:15 -0400
committerSiddarth-Suresh <65844402+Siddarth-Suresh@users.noreply.github.com>2025-04-18 04:08:15 -0400
commit06632f57c9047b7e54a274b6b020bcc83f5f9a64 (patch)
tree9dc7463683f657cb56092c87c559f46ea9f2523c /gui/worker.h
parentdbf7e900336214041da8880d6986d59126c35a72 (diff)
initialization from GUI
Diffstat (limited to 'gui/worker.h')
-rw-r--r--gui/worker.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/gui/worker.h b/gui/worker.h
index 8fde554..fe539fe 100644
--- a/gui/worker.h
+++ b/gui/worker.h
@@ -18,7 +18,10 @@ class Worker : public QObject {
Q_OBJECT
private:
- Cache *c;
+ std::vector<Cache*> c;
+ std::vector<int> cache_ways;
+ std::vector<int> cache_size;
+ bool cache_enabled = false;
Dram *d;
Controller *ct;
ID *id_stage;
@@ -30,11 +33,16 @@ private:
public:
explicit Worker(QObject *parent = nullptr);
~Worker();
+ std::vector<int> getWays();
+ std::vector<int> getSize();
+ void setWays(std::vector<int> ways);
+ void setSize(std::vector<int> size);
public slots:
void doWork();
void refreshDram();
void loadProgram(std::vector<signed int> p);
+ void configure(std::vector<int> ways, std::vector<int> size, bool is_pipelined, bool is_cache_enabled);
void refreshCache();
void refreshRegisters();
void runSteps(int steps);