Skip to content

Commit d1ece45

Browse files
Merge pull request #85 from fpgasystems/clean-up-large-old-files
Remove unused files & clean-up partially CMakes
2 parents 779225a + d1ab18c commit d1ece45

File tree

10 files changed

+29
-90
lines changed

10 files changed

+29
-90
lines changed

cmake/FindCoyoteHW.cmake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ if (NOT VIVADO_FOUND)
146146
message(FATAL_ERROR "Vivado not found.")
147147
endif()
148148

149-
find_package(VivadoHLS REQUIRED)
150-
if (NOT VIVADO_HLS_FOUND)
151-
message(FATAL_ERROR "Vivado HLS not found.")
149+
find_package(VitisHLS REQUIRED)
150+
if (NOT VITIS_HLS_FOUND)
151+
message(FATAL_ERROR "Vitis HLS not found.")
152152
endif()
153153

154154
if(VITIS_HLS)
@@ -726,7 +726,7 @@ macro(gen_targets)
726726
endif()
727727

728728
if(LOAD_APPS)
729-
set(HLS_SYNTH_CMD COMMAND ${VIVADO_HLS_BINARY} -f comp_hls.tcl -tclargs ${target})
729+
set(HLS_SYNTH_CMD COMMAND ${VITIS_HLS_BINARY} -f comp_hls.tcl -tclargs ${target})
730730
endif()
731731

732732
# Shell flow

cmake/FindJinja2.cmake

Lines changed: 0 additions & 41 deletions
This file was deleted.

cmake/FindVitisHLS.cmake

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
cmake_minimum_required(VERSION 3.5)
2+
3+
find_path(VITIS_HLS_PATH
4+
NAMES vitis_hls
5+
PATHS ${VITIS_HLS_ROOT_DIR} ENV XILINX_VITIS_HLS ENV XILINX_HLS ENV VITIS_HLS
6+
PATH_SUFFIXES bin
7+
)
8+
9+
if(NOT EXISTS ${VITIS_HLS_PATH})
10+
message(WARNING "Vitis HLS not found. Please install it before building Coyote.")
11+
else()
12+
get_filename_component(VITIS_HLS_ROOT_DIR ${VITIS_HLS_PATH} DIRECTORY)
13+
set(VITIS_HLS 1)
14+
set(VITIS_HLS_FOUND TRUE)
15+
set(VITIS_HLS_BINARY ${VITIS_HLS_ROOT_DIR}/bin/vitis_hls)
16+
set(VITIS_HLS_INCLUDE_DIRS ${VITIS_HLS_ROOT_DIR}/include/)
17+
message(STATUS "Found Vitis HLS at ${VITIS_HLS_ROOT_DIR}.")
18+
endif()

cmake/FindVivadoHLS.cmake

Lines changed: 0 additions & 38 deletions
This file was deleted.

examples_hw/apps/tcp_iperf/hls/CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 3.0)
55
set (PROJECT_NAME send_recv)
66
project(${PROJECT_NAME})
77

8-
# Include custom Find<Module>.cmake scripts to enable searching for Vivado HLS
8+
# Include custom Find<Module>.cmake scripts to enable searching for Vivado & Vitis HLS
99
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/../../cmake)
1010

1111
# Without this variable set, CMake will build tests when running install
@@ -31,10 +31,10 @@ set(DATA_WIDTH 64 CACHE STRING "Width of data path in bytes")
3131
set(CLOCK_PERIOD 3.2 CACHE STRING "Target clock period in nanoseconds")
3232

3333

34-
# Find Xilinx Vivado HLS
35-
find_package(VivadoHLS REQUIRED)
36-
if (NOT VIVADO_HLS_FOUND)
37-
message(FATAL_ERROR "Vivado HLS not found.")
34+
# Find Xilinx Vitis HLS
35+
find_package(VitisHLS REQUIRED)
36+
if (NOT VITIS_HLS_FOUND)
37+
message(FATAL_ERROR "Vitis HLS not found.")
3838
endif()
3939

4040

@@ -60,7 +60,7 @@ foreach (target ${HLS_TARGETS})
6060
endif()
6161

6262
add_custom_target(${target}.${PROJECT_NAME}
63-
COMMAND ${VIVADO_HLS_BINARY} -f make.tcl -tclargs ${target}
63+
COMMAND ${VITIS_HLS_BINARY} -f make.tcl -tclargs ${target}
6464
DEPENDS ${EXAMPLE_HLS_DEPENDS})
6565
add_dependencies(${target} ${target}.${PROJECT_NAME})
6666
endforeach()

examples_hw/apps/tcp_iperf/hls/make.tcl.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if {$command == "synthesis"} {
2727
file delete -force ${IPREPO_DIR}/${PROJECT_NAME}
2828
file copy -force ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}_prj/solution1/impl/ip ${IPREPO_DIR}/${PROJECT_NAME}/
2929
} else {
30-
puts "No valid command specified. Use vivado_hls -f make.tcl <synthesis|csim|ip> ."
30+
puts "No valid command specified. Use vitis_hls -f make.tcl <synthesis|csim|ip> ."
3131
}
3232

3333

hw/ip/SmartCamCtl.dcp

-836 KB
Binary file not shown.

hw/ip/SmartCamCtlArp.dcp

-683 KB
Binary file not shown.

hw/ip/mig_7series_0.dcp

-5.99 MB
Binary file not shown.

hw/ip/mig_axi_mm_dual.dcp

-4.31 MB
Binary file not shown.

0 commit comments

Comments
 (0)