feat: add NPU register tests for RTL and SDK synchronization

- Introduced  to ensure consistency between RTL and C register definitions.
- Implemented exhaustive checks for offsets, scalar encodings, bit shifts, and enumerations.
- Added  for shell and control-CDC unit tests using Icarus and Verilator.
- Created test cases for NPU register and control CDC functionality, verifying successful simulation outputs.
This commit is contained in:
maksyuki committed 2026-09-18 20:47:18 +08:00
1 parent f85ff59e33
commit f94cf5e7e2
54 files changed
+6482 -190

No files matched your search

+2
View File
@@ -36,6 +36,7 @@ TEST_SOURCES = (
"crt/src/hal/apu.c",
"crt/src/hal/ga2d_math.c",
"crt/src/hal/ga2d.c",
"crt/src/hal/npu.c",
"crt/src/hal/fabric_monitor.c",
"crt/src/hal/sysctrl.c",
"crt/src/hal/clock.c",
@@ -99,6 +100,7 @@ def main() -> int:
"-fno-builtin",
"-DRS_APU_TEST_MMIO",
"-DRS_GA2D_TEST_MMIO",
"-DRS_NPU_TEST_MMIO",
"-DRS_FABRIC_MONITOR_TEST_MMIO",
"-DRS_RESOURCE_TEST_MMIO",
"-I",