Skip to content

Commit

Permalink
Fix xcelium tool arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Risto97 committed Dec 10, 2024
1 parent 414f649 commit 3c2be42
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion cmake/sim/cadence/xcelium.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ function(xcelium IP_LIB)
set(ARG_TOP_MODULE ${IP_NAME})
endif()

if(ARG_XMVLOG_ARGS)
set(ARG_XMVLOG_ARGS XMVLOG_ARGS ${ARG_XMVLOG_ARGS})
endif()
if(ARG_XMVHDL_ARGS)
set(ARG_XMVHDL_ARGS XMVHDL_ARGS ${ARG_XMVHDL_ARGS})
endif()
if(ARG_XMELAB_ARGS)
set(ARG_XMELAB_ARGS XMELAB_ARGS ${ARG_XMELAB_ARGS})
endif()

get_ip_links(IPS_LIST ${IP_LIB})

unset(__lib_args)
Expand Down Expand Up @@ -97,7 +107,7 @@ function(xcelium IP_LIB)
endfunction()

function(__xcelium_compile_lib IP_LIB)
cmake_parse_arguments(ARG "NO_DEPS" "OUTDIR;TOP_MODULE;XMVLOG_ARGS;XMVHDL_ARGS;XMELAB_ARGS" "" ${ARGN})
cmake_parse_arguments(ARG "NO_DEPS" "OUTDIR;TOP_MODULE" "XMVLOG_ARGS;XMVHDL_ARGS;XMELAB_ARGS" ${ARGN})
# Check for any unrecognized arguments
if(ARG_UNPARSED_ARGUMENTS)
message(FATAL_ERROR "${CMAKE_CURRENT_FUNCTION} passed unrecognized argument " "${ARG_UNPARSED_ARGUMENTS}")
Expand Down

0 comments on commit 3c2be42

Please sign in to comment.