Visible to Intel only — GUID: uzk1573000180181
Ixiasoft
Visible to Intel only — GUID: uzk1573000180181
Ixiasoft
11.2. Creating a Static-Object Library
Creating a static-object library is a multistep process where you create the objects that you want to include in a library and then collect the objects into a library file.
To create a static-object library:
- Create the objects for your library with the fpga_crossgen command. You can create your objects from a variety of sources:
- Create an object from HLS code.
For details, see Creating Objects From HLS Code.
- Create an object from RTL code.
For details, see Creating Objects From RTL Code.
- Create an object from OpenCL code.
For details, see Creating Library Objects From OpenCL Code in the Intel® FPGA SDK for OpenCL™ Pro Edition Programming Guide.
- Create an object from HLS code.
- Collect the objects into an object library with the fpga_libtool command.
For details, see Packaging Object Files Into a Library.
fpga_crossgen foo.cpp –target hls -o foo.o
fpga_crossgen bar.cl –target hls -o bar.o
fpga_libtool –target hls –create foobar.a foo.o bar.o
You can use the resulting library (foobar.a) in your component by including the header file or files that you created for the library (for example ,foobar.a, or foo.h and bar.h) in your component.
i++ baz.cpp foobar.a