Skip to content

Commit

Permalink
fixup! WIP: [#64890] Add VCS support and unify usage of simulators
Browse files Browse the repository at this point in the history
  • Loading branch information
JanOlencki committed Sep 10, 2024
1 parent f93d2a3 commit a743f7e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion cmake/build-cosimulation.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,15 @@ foreach(SIM_FILE ${ALL_SIM_FILES})
list(APPEND FINAL_SIM_FILES ${SIM_FILE})
endforeach()

set(ALL_INCLUDE_DIRS ${RENODE_HDL_INCLUDE_DIRS})
list(APPEND ALL_INCLUDE_DIRS ${SIM_INCLUDE_DIRS})
foreach(DIR ${ALL_INCLUDE_DIRS})
get_filename_component(DIR ${DIR} ABSOLUTE BASE_DIR)
list(APPEND FINAL_INCLUDE_DIRS ${DIR})
endforeach()

set(FINAL_GENERIC_ARGUMENTS "+libext+.sv")
foreach(INCDIR ${RENODE_HDL_INCLUDE_DIRS})
foreach(INCDIR ${FINAL_INCLUDE_DIRS})
list(APPEND FINAL_GENERIC_ARGUMENTS "+incdir+${INCDIR}")
endforeach()
foreach(HDL_DIR ${RENODE_HDL_DIRECTORIES})
Expand Down
2 changes: 1 addition & 1 deletion robot/dpi-keywords.robot
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ${BUILD_DIRECTORY} ./build

${VERILATOR_SIMULATION} ${BUILD_DIRECTORY}/verilated

${VCS_SIMULATION} ./simv
${VCS_SIMULATION} ${BUILD_DIRECTORY}/simv
@{VCS_ARGUMENTS} -sv_lib ${BUILD_DIRECTORY}/librenode_dpi

${QUESTA_SIMULATION} vsim
Expand Down
1 change: 1 addition & 0 deletions samples/ahb_dma/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ project(ahb_dma)
set(SIM_TOP sim)
set(SIM_TOP_FILE sim.sv)
set(SIM_FILES dma_ahb_simple.v)
set(SIM_INCLUDE_DIRS ./)

# Verilator variables
set(VERILATOR_CSOURCES ../../cpp/sim_main_dpi.cpp)
Expand Down

0 comments on commit a743f7e

Please sign in to comment.