From 4a19129e8499bc187ef6e296e050cc8a20bcc2d3 Mon Sep 17 00:00:00 2001 From: bd Date: Mon, 21 Apr 2025 11:14:32 -0400 Subject: Add licensing information --- gui/gui.cc | 17 +++++++++++++++++ gui/gui.h | 41 +++++++++++++++++++++++++++++------------ gui/main.cc | 17 +++++++++++++++++ gui/worker.cc | 17 +++++++++++++++++ gui/worker.h | 23 ++++++++++++++++++++--- 5 files changed, 100 insertions(+), 15 deletions(-) (limited to 'gui') 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 . + #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 . + #ifndef GUI_H #define GUI_H @@ -48,29 +65,29 @@ private slots: void onWorkerShowDram(const std::vector> data); void onWorkerShowCache(const std::vector> data); - + void onWorkerShowRegisters(const std::array &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 . + #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 . + #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 . + #ifndef WORKER_H #define WORKER_H @@ -35,8 +52,8 @@ public slots: void doWork(); void refreshDram(); void loadProgram(std::vector 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 -- cgit v1.2.3