ci: add npc difftest
This commit is contained in:
parent
6f7d7ba383
commit
e1438e25ed
7 changed files with 143 additions and 12 deletions
|
@ -15,6 +15,7 @@ option(BUILD_SIM_TARGET "Whether to build verilator simulation binary" ON)
|
|||
cmake_dependent_option(BUILD_SIM_NVBOARD_TARGET "Whether to build nvboard target" OFF "BUILD_SIM_TARGET" OFF)
|
||||
option(ENABLE_YSYX_GIT_TRACKER "Ysyx tracker support" OFF)
|
||||
set(TOPMODULE "Flow" CACHE STRING "Topmodule name in chisel")
|
||||
set(DIFFTEST_LIB "" CACHE STRING "Dynamic library file used as difftest reference")
|
||||
|
||||
# -- Ysyx tracker, configure
|
||||
if(ENABLE_YSYX_GIT_TRACKER)
|
||||
|
@ -61,12 +62,6 @@ include_directories(include)
|
|||
|
||||
add_subdirectory(csrc)
|
||||
|
||||
add_test(
|
||||
NAME V${TOPMODULE}
|
||||
COMMAND V${TOPMODULE}
|
||||
--no-bin -m ${PROJECT_SOURCE_DIR}/resource/addi.txt
|
||||
--diff-lib /home/xin/repo/ysyx-workbench/nemu/build/riscv32-nemu-interpreter-so)
|
||||
|
||||
# -- Add build tracking
|
||||
if(ENABLE_YSYX_GIT_TRACKER)
|
||||
add_custom_command(
|
||||
|
|
|
@ -9,3 +9,9 @@ verilate(V${TOPMODULE} TRACE COVERAGE THREADS
|
|||
VERILATOR_ARGS
|
||||
"--vpi" # Enable VPI
|
||||
)
|
||||
|
||||
add_test(
|
||||
NAME V${TOPMODULE}
|
||||
COMMAND V${TOPMODULE}
|
||||
--no-bin -m ${PROJECT_SOURCE_DIR}/resource/addi.txt
|
||||
--diff-lib ${DIFFTEST_LIB})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue