summaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-04-21 11:14:32 -0400
committerbd <bdunahu@operationnull.com>2025-04-21 11:14:32 -0400
commit4a19129e8499bc187ef6e296e050cc8a20bcc2d3 (patch)
tree190932f40e34e29a8854422aca6dfd54bf0bfe33 /gui
parentdbf7e900336214041da8880d6986d59126c35a72 (diff)
Add licensing information
Diffstat (limited to 'gui')
-rw-r--r--gui/gui.cc17
-rw-r--r--gui/gui.h41
-rw-r--r--gui/main.cc17
-rw-r--r--gui/worker.cc17
-rw-r--r--gui/worker.h23
5 files changed, 100 insertions, 15 deletions
diff --git a/gui/gui.cc b/gui/gui.cc
index 1acd17a..7101025 100644
--- a/gui/gui.cc
+++ b/gui/gui.cc
@@ -1,3 +1,20 @@
+// Simulator for the RISC-V[ECTOR] mini-ISA
+// Copyright (C) 2025 Siddarth Suresh
+// Copyright (C) 2025 bdunahu
+
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
#include "gui.h"
#include "./ui_gui.h"
#include "byteswap.h"
diff --git a/gui/gui.h b/gui/gui.h
index 231d300..6e4e305 100644
--- a/gui/gui.h
+++ b/gui/gui.h
@@ -1,3 +1,20 @@
+// Simulator for the RISC-V[ECTOR] mini-ISA
+// Copyright (C) 2025 Siddarth Suresh
+// Copyright (C) 2025 bdunahu
+
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
#ifndef GUI_H
#define GUI_H
@@ -48,29 +65,29 @@ private slots:
void onWorkerShowDram(const std::vector<std::array<signed int, LINE_SIZE>> data);
void onWorkerShowCache(const std::vector<std::array<signed int, LINE_SIZE>> data);
-
+
void onWorkerShowRegisters(const std::array<int, GPR_NUM> &data);
-
+
void onWorkerFinished();
-
+
void on_upload_intructions_btn_clicked();
-
+
void on_upload_program_state_btn_clicked();
-
+
void on_refresh_dram_btn_clicked();
-
+
void on_refresh_cache_btn_clicked();
-
+
void on_refresh_registers_btn_clicked();
-
+
void on_enable_pipeline_checkbox_checkStateChanged(const Qt::CheckState &arg1);
-
+
void on_enabl_cache_checkbox_checkStateChanged(const Qt::CheckState &arg1);
-
+
void on_run_steps_btn_clicked();
-
+
void on_step_btn_clicked();
-
+
void on_save_program_state_btn_clicked();
private:
diff --git a/gui/main.cc b/gui/main.cc
index 5e45465..eb0129e 100644
--- a/gui/main.cc
+++ b/gui/main.cc
@@ -1,3 +1,20 @@
+// Simulator for the RISC-V[ECTOR] mini-ISA
+// Copyright (C) 2025 Siddarth Suresh
+// Copyright (C) 2025 bdunahu
+
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
#include "pipe_spec.h"
#include "gui.h"
#include "logger.h"
diff --git a/gui/worker.cc b/gui/worker.cc
index e4e3bdf..4b5277c 100644
--- a/gui/worker.cc
+++ b/gui/worker.cc
@@ -1,3 +1,20 @@
+// Simulator for the RISC-V[ECTOR] mini-ISA
+// Copyright (C) 2025 Siddarth Suresh
+// Copyright (C) 2025 bdunahu
+
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
#include "worker.h"
Worker::Worker(QObject *parent) : QObject(parent) {}
diff --git a/gui/worker.h b/gui/worker.h
index 8fde554..7512b9b 100644
--- a/gui/worker.h
+++ b/gui/worker.h
@@ -1,3 +1,20 @@
+// Simulator for the RISC-V[ECTOR] mini-ISA
+// Copyright (C) 2025 Siddarth Suresh
+// Copyright (C) 2025 bdunahu
+
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
#ifndef WORKER_H
#define WORKER_H
@@ -35,8 +52,8 @@ public slots:
void doWork();
void refreshDram();
void loadProgram(std::vector<signed int> p);
- void refreshCache();
- void refreshRegisters();
+ void refreshCache();
+ void refreshRegisters();
void runSteps(int steps);
void runStep();
@@ -53,4 +70,4 @@ signals:
void finished();
};
-#endif // WORKER_H \ No newline at end of file
+#endif // WORKER_H