xinyangli
90be25efc4
Some checks failed
Run CTests within npc / build-abstract-machine (push) Failing after 6m34s
17 lines
462 B
CMake
17 lines
462 B
CMake
include(ChiselBuild)
|
|
add_executable(V${TOPMODULE} config.cpp main.cpp)
|
|
|
|
verilate(V${TOPMODULE} TRACE COVERAGE THREADS
|
|
TOP_MODULE ${TOPMODULE}
|
|
PREFIX V${TOPMODULE}
|
|
SOURCES ${CHISEL_OUTPUT_TOPMODULE} ${CHISEL_OUTPUT_VERILATOR_CONF}
|
|
INCLUDE_DIRS ${CHISEL_OUTPUT_DIR}
|
|
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})
|