aboutsummaryrefslogtreecommitdiff
path: root/rv64cpu/tb/CMakeLists.txt
diff options
context:
space:
mode:
authorRichard Qin <richard.qin.x@gmail.com>2026-03-17 01:02:51 +0800
committerRichard Qin <richard.qin.x@gmail.com>2026-03-17 01:02:51 +0800
commit7c671e752160174965b8af8b66b9df15e00a4387 (patch)
tree9fe843bf13f7892544c21ee3f26ee880f465fb90 /rv64cpu/tb/CMakeLists.txt
parent149bf049d83d08e5d3a20862a3b894633e61c95b (diff)
downloadrcc-project-7c671e752160174965b8af8b66b9df15e00a4387.tar.gz
rcc-project-7c671e752160174965b8af8b66b9df15e00a4387.tar.xz
Instruction Decoder Stage unit and tests
Diffstat (limited to 'rv64cpu/tb/CMakeLists.txt')
-rw-r--r--rv64cpu/tb/CMakeLists.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/rv64cpu/tb/CMakeLists.txt b/rv64cpu/tb/CMakeLists.txt
index 8fc3ccf..78ab903 100644
--- a/rv64cpu/tb/CMakeLists.txt
+++ b/rv64cpu/tb/CMakeLists.txt
@@ -74,6 +74,17 @@ add_verilator_target(
INCLUDE_DIRS ${RTL_COMMON_INCLUDES}
TB_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/unit/tb_if_stage.cc
)
+
+add_verilator_target(
+ NAME tb_id_stage
+ TOP_MODULE id_stage
+ SOURCES ${RTL_CORE_DIR}/include/rv64_pkg.sv
+ ${RTL_CORE_DIR}/decoder.sv
+ ${RTL_CORE_DIR}/regfile.sv
+ ${RTL_CORE_DIR}/id_stage.sv
+ INCLUDE_DIRS ${RTL_COMMON_INCLUDES}
+ TB_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/unit/tb_id_stage.cc
+)
#
# add_verilator_target(
# NAME tb_csr