> git_commit.sh ysyx_22040000 李心杨 Linux calcite 6.1.69 #1-NixOS SMP PREEMPT_DYNAMIC Wed Dec 20 16:00:29 UTC 2023 x86_64 GNU/Linux 00:05:11 up 8:51, 2 users, load average: 0.57, 0.50, 0.41
This commit is contained in:
parent
7e177f8b04
commit
3b7e367af1
5 changed files with 81 additions and 24 deletions
29
npc/CMakeLists.txt
Normal file
29
npc/CMakeLists.txt
Normal file
|
@ -0,0 +1,29 @@
|
|||
cmake_minimum_required(VERSION 3.10)
|
||||
|
||||
project(NPC_xin)
|
||||
|
||||
find_package(verilator)
|
||||
if (NOT verilator_FOUND)
|
||||
message(FATAL_ERROR "Verilator was not found. Either install it, or set the VERILATOR_ROOT environment variable")
|
||||
endif()
|
||||
|
||||
if(NOT DEFINED NVBOARD_HOME)
|
||||
set(NVBOARD_HOME get_filename_component(real_path "../nvboard" REALPATH))
|
||||
endif()
|
||||
|
||||
add_library(nvboard STATIC IMPORTED)
|
||||
set_target_properties(bar PROPERTIES
|
||||
IMPORTED_LOCATION "${NVBOARD_HOME}/build/nvboard.a"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_SOURCE_DIR}/include/libbar"
|
||||
)
|
||||
|
||||
add_executable(Main csrc/main.cpp)
|
||||
add_executable(Main_nvboard csrc_nvboard/main.cpp)
|
||||
|
||||
verilate(Main
|
||||
COVERAGE TRACE
|
||||
SOURCES build/chisel/Main.sv build/chisel/RegisterFile.sv)
|
||||
|
||||
verilate(Main_nvboard
|
||||
COVERAGE TRACE
|
||||
SOURCES build/chisel/Main.sv build/chisel/RegisterFile.sv)
|
Loading…
Add table
Add a link
Reference in a new issue