This template class is used to build scalar data constraints on kernels, connections, and ports.
A constraint must appear inside a user graph constructor.
This overloaded equality operator allows you to assign a value to a scalar constraint.
The default constructor is not used. Instead the following special constructors are used with specific meaning.
This constraint allows you to set a specific initialization function for each kernel. The constraint expects a string denoting the name of the initialization function. Where multiple kernels are packed on a core, each initialization function packed on the core is called exactly once. No kernel functions are scheduled until all the initialization functions packed on a core are completed.
An initialization function cannot return a value and cannot have input/output arguments, that is, the function prototype must be as follows.
graph::runAPI is called.
This function can be used to initialize global variables and set or
clear rounding and saturation modes. It cannot use buffer or stream APIs to access
memory or stream interfaces, but stream intrinsics (for example,
get_ss()) can be used.
This constraint allows you to set a specific core usage fraction for a kernel. This is computed as a ratio of the number of cycles taken by one invocation of a kernel (processing one block of data) to the cycle budget. The cycle budget for an application is typically fixed according to the expected data throughput and the block size being processed.
This constraint allows you to specify the source file containing the definition of each kernel function. A source constraint must be specified for each kernel.
constraint<int>& fifo_depth(connect&)=[<depth> | (depth)]
This constraint allows you to specify the amount of slack to be inserted on a streaming connection to allow deadlock free execution.
This constraint allows you to specify single buffer constraint on a buffer port. By default, a buffer port is double buffered.
template <typename _XILINX_ADF_T=api_impl::variant> constraint<_XILINX_ADF_T> initial_value(adf::port<adf::input>& p);
This constraint allows you to set the initial value for an asynchronous AI Engine input run-time parameter port. It allows the destination kernel to start asynchronously with the specified initial value. You can set both scalar and array run-time parameters using this constraint.
constraint<int> stack_size(adf::kernel& k);
This constraint allows you to set stack size for individual kernel.
constraint<int> heap_size(adf::kernel& k);
This constraint allows you to set heap size for individual kernel.