aboutsummaryrefslogtreecommitdiff
path: root/rv64cpu/tb/unit
diff options
context:
space:
mode:
authorRichard Qin <richard.qin.x@gmail.com>2026-03-18 03:09:38 +0800
committerRichard Qin <richard.qin.x@gmail.com>2026-03-18 03:09:38 +0800
commit48489af495086d794f1b57bbb62ea1d8aca86ac5 (patch)
tree7ca1900f20416a20f13b4a8cf03661c8995d2786 /rv64cpu/tb/unit
parent2e6e4c0caa855131602f5a816968b90908baa2df (diff)
downloadrcc-project-48489af495086d794f1b57bbb62ea1d8aca86ac5.tar.gz
rcc-project-48489af495086d794f1b57bbb62ea1d8aca86ac5.tar.xz
CPU Core: Assembles a 5-stage pipeline, 4 inter-stage registers, and Hazard Unit
Diffstat (limited to 'rv64cpu/tb/unit')
-rw-r--r--rv64cpu/tb/unit/tb_hazard_unit.cc12
-rw-r--r--rv64cpu/tb/unit/tb_wb_stage.cc12
2 files changed, 24 insertions, 0 deletions
diff --git a/rv64cpu/tb/unit/tb_hazard_unit.cc b/rv64cpu/tb/unit/tb_hazard_unit.cc
index 94dbeb6..69ebab9 100644
--- a/rv64cpu/tb/unit/tb_hazard_unit.cc
+++ b/rv64cpu/tb/unit/tb_hazard_unit.cc
@@ -1,5 +1,17 @@
// Richard CPU
// Copyright (C) 2026 Richard Qin
+// 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/>.
// File path: tb/unit/tb_hazard_unit.cc
// Description: Hazard Unit testbench — exhaustive forwarding, stall, and flush tests
diff --git a/rv64cpu/tb/unit/tb_wb_stage.cc b/rv64cpu/tb/unit/tb_wb_stage.cc
index 715a47d..0f228ee 100644
--- a/rv64cpu/tb/unit/tb_wb_stage.cc
+++ b/rv64cpu/tb/unit/tb_wb_stage.cc
@@ -1,5 +1,17 @@
// Richard CPU
// Copyright (C) 2026 Richard Qin
+// 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/>.
// File path: tb/unit/tb_wb_stage.cc
// Description: WB Stage unit test