summaryrefslogtreecommitdiff
path: root/gui/worker.cc
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-04-17 15:30:26 -0400
committerbd <bdunahu@operationnull.com>2025-04-17 15:30:26 -0400
commit2c94ea91b1c5a0d7c0ebb0ab229950f7c849909a (patch)
treec1fe016db8127633f9d14aac696ef9040967228d /gui/worker.cc
parent430986b4b1ee1013db070991ce289176f48fa8e8 (diff)
The pipeline says some things and there are numbers
Diffstat (limited to 'gui/worker.cc')
-rw-r--r--gui/worker.cc66
1 files changed, 37 insertions, 29 deletions
diff --git a/gui/worker.cc b/gui/worker.cc
index 9202b89..061e0da 100644
--- a/gui/worker.cc
+++ b/gui/worker.cc
@@ -19,35 +19,43 @@ void Worker::doWork()
emit cache_storage(this->c->view(0, 7));
emit register_storage(this->ct->get_gprs());
- signed int b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, b10, b11, b12, b13, b14,
- b15, b16, b17, b18, b19, b20;
std::vector<signed int> p;
- // I-TYPE / / / /
- b0 = 0b00000010000000000001000000001101;
- b1 = 0b00000000000000010010100000001101;
- b2 = 0b00000000000000000010100010101001;
- b3 = 0b00000000000000100010100000001101;
- b4 = 0b00000000000000010010100010101001;
- b5 = 0b00000000000000110010100000001101;
- b6 = 0b00000000000000100010100010101001;
- b7 = 0b00000000000001000010100000001101;
- b8 = 0b00000000000000110010100010101001;
- b9 = 0b00000000000000000010100000001101;
- b10 = 0b00000000000000110011000000001101;
- b11 = 0b00000000000000000011100000001010;
- b12 = 0b00000000000100100101000100000100;
- b13 = 0b00000000000000000100100111000101;
- b14 = 0b00000000000000010100101000000101;
- b15 = 0b00000000000011101000001110000100;
- b16 = 0b00000000000000000011101001101001;
- b17 = 0b00000000000000010010100101001101;
- b18 = 0b00000000000000000101001101000000;
- b19 = 0b11111111111111111100100000010110;
- // b20 = 0b00000000000000000000000000010000;
-
- p = {b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, b10,
- b11, b12, b13, b14, b15, b16, b17, b18, b19};
+ p.push_back(0b00000000000000000010100010001101);
+ p.push_back(0b11111111111101010011000000001101);
+ p.push_back(0b00000000000000000000000110100010);
+ p.push_back(0b00000000000000000011000000001110);
+ p.push_back(0b00000000000000000000000110100110);
+ p.push_back(0b00000000001000100011000000101001);
+ p.push_back(0b00000000000000000000000101100010);
+ p.push_back(0b00000000000000000010100010001101);
+ p.push_back(0b00000000000001000001000010010001);
+ p.push_back(0b11111111111010010011000000001101);
+ p.push_back(0b11111111111111000011000101101001);
+ p.push_back(0b00000000000001000010100111000101);
+ p.push_back(0b11111111111111000010100110000101);
+ p.push_back(0b00000000000011000111001100000100);
+ p.push_back(0b00000000000000000000000110100010);
+ p.push_back(0b00000000000000001010100000001110);
+ p.push_back(0b00000000000000000000000110100110);
+ p.push_back(0b00000000000001000011000101101001);
+ p.push_back(0b00000000000000000001000101001101);
+ p.push_back(0b00000000000000000000000101100110);
+ p.push_back(0b00000000000000000000000000101010);
+ p.push_back(0b00000000000000000000000101100010);
+ p.push_back(0b00000000000000000010100010001101);
+ p.push_back(0b00000000000001000001000010010001);
+ p.push_back(0b00000000010011000011000000001101);
+ p.push_back(0b11111111111111000011000101101001);
+ p.push_back(0b00000000000001000010100111000101);
+ p.push_back(0b11111111111111000010100110000101);
+ p.push_back(0b00000000000011000111001100000100);
+ p.push_back(0b00000000000001000011000101101001);
+ p.push_back(0b00000000000000000001000101001101);
+ p.push_back(0b00000000000000000000000101100110);
+ p.push_back(0b00000000000000000000000000101010);
+ p.push_back(0b00000000000000000000000000010000);
+ p.push_back(0b00000000000000000000000000000000);
this->d->load(p);
}
@@ -69,7 +77,7 @@ void Worker::refreshDram()
void Worker::refreshCache()
{
qDebug() << "Refreshing Dram";
- emit cache_storage(this->c->view(0, 7));
+ emit cache_storage(this->c->view(24, 31));
}
void Worker::refreshRegisters()
@@ -98,7 +106,7 @@ void Worker::runStep()
qDebug() << "Running for 1 step ";
this->ct->advance(WAIT);
emit dram_storage(this->d->view(0, 256));
- emit cache_storage(this->c->view(0, 7));
+ emit cache_storage(this->c->view(24, 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());