Creating a Library
Xilinx provides a utility called sdslib that allows the creation of
SDSoC libraries.
Usage
sdslib [arguments] [options]Arguments (mandatory)
| Argument | Description |
|---|---|
| -lib <libname> | Library name to create or append to |
<function_name file_name>+ |
One or more For example: |
| -vlnv <v>:<l>:<n>:<v> | Use IP core specified by this vlnv. For example, -vlnv xilinx.com:ip:fir_compiler:7.1 |
| -ip-map <file> | Use specified <file> as IP function map |
| -ip-params <file> | Use specified <file> as IP parameters |
| -pfunc | IP core is a platform function |
| Option | Description |
|---|---|
| -ip-repo <path> | Add HDL IP repository search path |
| -target-os <name> |
Specify target Operating System
|
| --help | Display this information |
| -target-cpu <name> |
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 functions
fir (in file fir.c),
fir_reload (in file fir_reload.c) and
fir_config (in file fir_config.c) and
archives them into the libfir.a static library. The
fir_compiler IP core is specified using
-vlnv and the function map and IP parameters are specified
with –ip-map and –ip-params respectively.