Skip to content

Commit a9102a0

Browse files
Revert "Initial commit (#2120)" (#2149)
This reverts commit 920e25d.
1 parent a394139 commit a9102a0

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

DirectProgramming/C++SYCL_FPGA/Tutorials/Tools/use_library/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ endif()
161161
# The RTL file (specified in lib_rtl_spec.xml) must be copied to the CMake working directory for the final stage of FPGA hardware compilation
162162
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/${RTL_V} ${RTL_V} @ONLY)
163163

164-
set(FPGA_CROSSGEN_COMMAND fpga_crossgen ${CMAKE_CURRENT_SOURCE_DIR}/${RTL_SPEC} --cpp_model ${CMAKE_CURRENT_SOURCE_DIR}/${RTL_C_MODEL} -o ${RTL_SOURCE_OBJECT} ${USER_FLAGS})
164+
set(FPGA_CROSSGEN_COMMAND fpga_crossgen ${CMAKE_CURRENT_SOURCE_DIR}/${RTL_SPEC} --cpp_model ${CMAKE_CURRENT_SOURCE_DIR}/${RTL_C_MODEL} --target sycl -o ${RTL_SOURCE_OBJECT} ${USER_FLAGS})
165165

166166
# Create RTL source object
167167
add_custom_target(
@@ -171,9 +171,9 @@ add_custom_target(
171171

172172
# Create library archive
173173
# This executes:
174-
# fpga_libtool lib_rtl.o --create lib.a
174+
# fpga_libtool lib_rtl.o --target sycl --create lib.a
175175
add_custom_target(create_library_archive DEPENDS ${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}/${LIBRARY_ARCHIVE})
176-
set(FPGA_LIBTOOL_COMMAND fpga_libtool ${RTL_SOURCE_OBJECT} --create ${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}/${LIBRARY_ARCHIVE})
176+
set(FPGA_LIBTOOL_COMMAND fpga_libtool ${RTL_SOURCE_OBJECT} --target sycl --create ${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}/${LIBRARY_ARCHIVE})
177177
add_custom_command(OUTPUT ${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}/${LIBRARY_ARCHIVE}
178178
COMMAND ${FPGA_LIBTOOL_COMMAND}
179179
DEPENDS create_rtl_source_object)

DirectProgramming/C++SYCL_FPGA/Tutorials/Tools/use_library/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ To create a library from source code, use the following steps:
9393

9494
```bash
9595
# Linux
96-
fpga_crossgen lib_rtl_spec.xml --cpp_model lib_rtl_model.cpp -o lib_rtl.o
96+
fpga_crossgen lib_rtl_spec.xml --cpp_model lib_rtl_model.cpp --target sycl -o lib_rtl.o
9797

9898
# Windows
99-
fpga_crossgen lib_rtl_spec.xml --cpp_model lib_rtl_model.cpp -o lib_rtl.obj
99+
fpga_crossgen lib_rtl_spec.xml --cpp_model lib_rtl_model.cpp --target sycl -o lib_rtl.obj
100100
```
101101

102102
Note that generating an RTL library requires that an `xml` file and a C++ model be provided in addition to the Verilog source code. The RTL is used when compiling for the hardware whereas the C++ model is used when the oneAPI program is run on the FPGA emulator. Examine the tutorial source code and the comments in `use_library.cpp` for more details.
@@ -111,10 +111,10 @@ To create a library from source code, use the following steps:
111111

112112
```bash
113113
# Linux
114-
fpga_libtool lib_rtl.o --create lib_rtl.a
114+
fpga_libtool lib_rtl.o --target sycl --create lib_rtl.a
115115
116116
# Windows
117-
fpga_libtool lib_rtl.obj --create lib_rtl.lib
117+
fpga_libtool lib_rtl.obj --target sycl --create lib_rtl.lib
118118
119119
```
120120

0 commit comments

Comments
 (0)