npc,ci: add npc to nix packages
Some checks failed
Run CTests within npc / npc-test (flow) (push) Failing after 8s
Build abstract machine with nix / build-packages (abstract-machine) (push) Failing after 14s
Build abstract machine with nix / build-packages (nemu) (push) Successful in 41s
Build abstract machine with nix / build-packages (nemu-lib) (push) Successful in 9s
Build abstract machine with nix / build-packages (rv32Cross.abstract-machine) (push) Successful in 8s
Run CTests within npc / npc-test (flow-simlib) (push) Failing after 7s
Some checks failed
Run CTests within npc / npc-test (flow) (push) Failing after 8s
Build abstract machine with nix / build-packages (abstract-machine) (push) Failing after 14s
Build abstract machine with nix / build-packages (nemu) (push) Successful in 41s
Build abstract machine with nix / build-packages (nemu-lib) (push) Successful in 9s
Build abstract machine with nix / build-packages (rv32Cross.abstract-machine) (push) Successful in 8s
Run CTests within npc / npc-test (flow-simlib) (push) Failing after 7s
This commit is contained in:
parent
8ee1551dc2
commit
64aee9ae21
12 changed files with 423 additions and 157 deletions
|
@ -1,4 +1,6 @@
|
|||
include(ChiselBuild)
|
||||
if(BUILD_CHISEL_EMIT_TARGET)
|
||||
include(ChiselBuild)
|
||||
endif()
|
||||
add_executable(V${TOPMODULE} config.cpp gdbstub_wrapper.cpp main.cpp)
|
||||
target_link_libraries(V${TOPMODULE} PRIVATE devices gdbstub spdlog::spdlog)
|
||||
target_include_directories(V${TOPMODULE} PRIVATE ${CMAKE_SOURCE_DIR}/include)
|
||||
|
@ -12,6 +14,8 @@ verilate(
|
|||
INCLUDE_DIRS ${CHISEL_OUTPUT_DIR}
|
||||
VERILATOR_ARGS "--vpi" "-Wno-UNOPTFLAT")
|
||||
|
||||
install(TARGETS V${TOPMODULE})
|
||||
|
||||
foreach(DIFFTEST_BINARY_FILE IN LISTS DIFFTEST_BINARY_FILES)
|
||||
get_filename_component(FILENAME ${DIFFTEST_BINARY_FILE} NAME_WE)
|
||||
add_test(NAME V${TOPMODULE}.${FILENAME}
|
||||
|
@ -34,3 +38,5 @@ verilate(
|
|||
SOURCES ${CHISEL_OUTPUT_TOPMODULE} ${CHISEL_OUTPUT_VERILATOR_CONF}
|
||||
INCLUDE_DIRS ${CHISEL_OUTPUT_DIR}
|
||||
VERILATOR_ARGS "--vpi" "-Wno-UNOPTFLAT")
|
||||
|
||||
install(TARGETS ${TOPMODULE})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue