Using a C-Callable RTL Library

The SDSoC system compilers can incorporate libraries with hardware functions that are implemented using IP blocks written in register transfer level (RTL) in a hardware description language (HDL) like VHDL or Verilog. The process of creating such a library is described inUsing C-Callable IP Libraries. This example demonstrates how to incorporate the library in an SDSoC project.

To build this example in the SDSoC IDE, create a new SDSoC project and select the C-callable RTL Library template. As described insrc/SDSoC_project_readme.txt, you must first build the library from an SDSoC terminal window at the command line.

To use the library and build the application, you must add the-land-Llinker options as described inUsing C-Callable IP Libraries. Right-click on the project in theProject Explorerand selectC/C++ Build Settings->->>SDS++ Linker>Libraries, to add the-lrtl_arraycopyand-Loptions.