ocpidev-build — compiles OpenCPI assets
The build verb compiles the OpenCPI assets specified by the noun used
in the command. If no nouns are provided, ocpidev builds the current
directory or asset. When the plural version of the nouns are used, no name is
specified and all assets of that type are built.
Asset types to be specified in the <noun> argument are:
application(s)
applications) or a specific ACI application.
hdl
A prefix to indicate an HDL asset in the hdl subdirectory of a project. Possible HDL assets are:
assembly|ies
device
platform(s)
primitive(s)
Build all HDL primitives or a specified HDL primitive of a specified type. Possible HDL primitive types are:
core
library
library
project
test
worker
The options to the build verb are primarily used to limit what is built
(focus the build process on specific assets of interest), or specify the
platforms and targets to build the assets for.
In the descriptions that follow, a plus sign (+) after the option indicates that it can be specified more than once on the command line.
--hdl-assembly=<hdl-assembly>+
--no-assemblies
--hdl
--rcc
--worker=<worker>+
--worker option differs from the
worker noun: the noun is used to build
a single worker, while the --worker option is used
to limit the build to an individual worker (or a list of
workers if --worker option is specified
multiple times) when building a project or library.
If the --worker option is not used,
all workers in a project or library are built.
--hdl-rcc-platform=<platform>+
--rcc-platform
<platform> is also not used), the current development software
platform is used as the single RCC platform used for building.
--rcc-platform=<platform>+
--hdl-rcc-platform=<platform> is also not used),
the current development software platform is used as the single
RCC platform used for building.
--optimimize
--hdl-target=<target>+
--hdl-platform=<hdl-platform>+
-l <library>
components library. Note that the library noun differs
from the -l option in that the library noun is used when
building the library itself, while the -l option is used when
building an asset inside a library.
Build the current asset or directory and those underneath it
for the zed HDL platform and the xilinx13_3 RCC platform.
ocpidev build --hdl-platform=zed --rcc-platform=xilinx13_3
Build the assets project for the zed HDL platform and
*`xilinx13_3* RCC platform. Omit the name assets if
inside the assets project.
ocpidev build project assets --hdl-platform=zed
--rcc-platform=xilinx13_3
Inside the assets project, build the complex_mixer.hdl
worker in the dsp_comps library for the zed HDL platform
and xilinx13_3 RCC platform. You can omit the -l dsp_comps
option if operating in a project with only a single top-level
components library.
ocpidev -l dsp_comps build worker complex_mixer.hdl
--hdl-platform=zed
--rcc-platform=xilinx13_3
Inside the assets project, build the dsp_comps library
located at components/dsp_comps for the zed HDL platform
and xilinx13_3 RCC platform.
ocpidev build library dsp_comps --hdl-platform=zed
--rcc-platform=xilinx13_3
Inside the assets project, build the dsp_comps library,
but limit the build to the complex_mixer.hdl and
cic_dec.hdl workers.
ocpidev build library dsp_comps --worker=complex_mixer.hdl
--worker=cic_dec.hdl
--hdl-platform=zed