Creating a Library
Xilinx provides a utility calledsdslib
that allows the creation of SDSoC libraries.
Usage
sdslib [arguments] [options]
Arguments (mandatory)
Argument | Description |
---|---|
-lib |
Library name to create or append to |
|
One or more For example: |
-vlnv |
Use IP core specified by this vlnv. For example,-vlnv xilinx.com:ip:fir_compiler:7.1 |
-ip-map |
Use specified |
-ip-params |
Use specified |
-pfunc | IP core is a platform function |
Option | Description |
---|---|
-ip-repo |
Add HDL IP repository search path |
-target-os |
Specify target Operating System
|
--help | Display this information |
-target-cpu |
Specify target CPU
|
As an example, to create an SDSoC library for a
fir filter
IP core, call:
> sdslib -lib libfir.a \ fir fir.c \ fir_reload fir_reload.c \ fir_config fir_config.c \ -vlnv xilinx.com:ip:fir_compiler:7.1 \ -ip-map fir_compiler.fcnmap.xml \ -ip-params fir_compiler.params.xml
In the above example,sdslib
uses the functionsfir(in filefir.c),fir_reload(in filefir_reload.c) andfir_config(in filefir_config.c) and archives them into thelibfir.astatic library. Thefir_compiler
IP core is specified using-vlnvand the function map and IP parameters are specified with–ip-mapand–ip-paramsrespectively.