aboutsummaryrefslogtreecommitdiff
path: root/rv64cpu/tb/CMakeLists.txt
diff options
context:
space:
mode:
authorRichard Qin <richard.qin.x@gmail.com>2026-04-01 15:32:40 +0800
committerRichard Qin <richard.qin.x@gmail.com>2026-04-01 15:32:40 +0800
commit9c34902e4a763109d7d6251781bcb92f6bc68c56 (patch)
tree88b35916750ebad0d7b932a0e30d2524a90e474f /rv64cpu/tb/CMakeLists.txt
parentdef178f9df3819f01092400893651a148d529f2f (diff)
downloadrcc-project-9c34902e4a763109d7d6251781bcb92f6bc68c56.tar.gz
rcc-project-9c34902e4a763109d7d6251781bcb92f6bc68c56.tar.xz
feat(tlb): add parameterized L1 TLB module and corresponding unit tests
Diffstat (limited to 'rv64cpu/tb/CMakeLists.txt')
-rw-r--r--rv64cpu/tb/CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/rv64cpu/tb/CMakeLists.txt b/rv64cpu/tb/CMakeLists.txt
index ebcd9dc..1312860 100644
--- a/rv64cpu/tb/CMakeLists.txt
+++ b/rv64cpu/tb/CMakeLists.txt
@@ -180,6 +180,15 @@ add_verilator_target(
TB_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/unit/tb_csr.cc
)
+add_verilator_target(
+ NAME tb_tlb
+ TOP_MODULE tlb
+ SOURCES ${RTL_CORE_DIR}/include/rv64_pkg.sv
+ ${RTL_CORE_DIR}/mmu/tlb.sv
+ INCLUDE_DIRS ${RTL_COMMON_INCLUDES}
+ TB_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/unit/tb_tlb.cc
+)
+
# ═══════════════════════════════════════════════════════════════════════════════════
# Core Integration Test
# ═══════════════════════════════════════════════════════════════════════════════════