Skip to content

Commit 4384709

Browse files
authored
FPGA: add a warning when compiling the CRR design in the simulation flow (#1318)
The simulation runtime of the CRR design is very long. This PR adds a message that the users can see when they compile for simulation warning them about this long runtime.
1 parent 4fa0850 commit 4384709

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

DirectProgramming/C++SYCL_FPGA/ReferenceDesigns/crr/src/CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ add_custom_target(fpga_emu DEPENDS ${EMULATOR_TARGET})
9494
### FPGA Simulator
9595
###############################################################################
9696
add_executable(${SIMULATOR_TARGET} ${SOURCE_FILE})
97+
add_custom_command(TARGET ${SIMULATOR_TARGET} PRE_BUILD
98+
COMMAND ${CMAKE_COMMAND} -E cmake_echo_color --cyan
99+
""
100+
COMMENT "Running the simulation flow on the CRR design is very long and is therefore not recommended"
101+
)
97102
target_include_directories(${SIMULATOR_TARGET} PRIVATE ../../../include)
98103
set_target_properties(${SIMULATOR_TARGET} PROPERTIES COMPILE_FLAGS "${SIMULATOR_COMPILE_FLAGS}")
99104
set_target_properties(${SIMULATOR_TARGET} PROPERTIES LINK_FLAGS "${SIMULATOR_LINK_FLAGS}")

0 commit comments

Comments
 (0)