Skip to content

Commit

Permalink
TMRG cmake function udpate (#31)
Browse files Browse the repository at this point in the history
Co-authored-by: Benoit Denkinger <[email protected]>
  • Loading branch information
benoitdenkinger and Benoit Denkinger authored Sep 9, 2024
1 parent 3685bed commit 197debc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmake/tmrg/tmrg/tmrg.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ function(tmrg IP_LIB)
set(TMRG_COMMAND ${TMRG_COMMAND} --no-common-definitions)
endif()

if(NOT ARG_HEADER)
set(TMRG_COMMAND ${TMRG_COMMAND} --no-header)
endif()

# To avoid replacing unwanted 'wor' character sequence, assume real wor (i.e., wired-or)
# sequence is always followed by a space. Otherwise, if 'wor' is used in a name (e.g., word_address)
# it will also be replaced (e.g., to wird_address).
Expand All @@ -165,7 +169,7 @@ function(tmrg IP_LIB)
OUTPUT ${TRMG_GEN} ${STAMP_FILE}
COMMAND ${TMRG_COMMAND}
${SED_COMMAND}
COMMAND touch ${STAMP_FILE}
COMMAND /bin/sh -c date > ${STAMP_FILE}
DEPENDS ${IP_TMRG_SRC} ${SCR_DEPS_STRIPPED}
COMMENT "Running ${CMAKE_CURRENT_FUNCTION} on ${IP_LIB}"
)
Expand Down

0 comments on commit 197debc

Please sign in to comment.