Skip to content

Commit

Permalink
Change sed_wor function to apply to all sources
Browse files Browse the repository at this point in the history
  • Loading branch information
mksoc committed Nov 7, 2024
1 parent 0508d53 commit c2e1740
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/utils/sed_wor/sed_wor.cmake
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# sed_wor.cmake
# String replace "wor" with "wire" in TMR files.
# String replace "wor" with "wire" in all Verilog files files.
# This is a workaround for a Verilator not supporting "wor" and similar keywords...
function(sed_wor IP_LIB BINARY_DIR SOURCES)
file(MAKE_DIRECTORY ${BINARY_DIR}/sed_wor)
set(MODIFIED_SOURCES "")

foreach(source ${SOURCES})
get_filename_component(source_name ${source} NAME)
if(source_name MATCHES "TMR")
if(source_name MATCHES "\\.(v|sv)$")
set(output_file "${BINARY_DIR}/sed_wor/${source_name}")
list(APPEND MODIFIED_SOURCES ${output_file})

Expand Down

0 comments on commit c2e1740

Please sign in to comment.