diff options
Diffstat (limited to 'gui/worker.h')
-rw-r--r-- | gui/worker.h | 10 |
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); |