co_process co_process_create(const char *name,                              co_function run,                              int argc, ...); 

Header File



This function creates a process. This function must be called from within the configuration function of your application.


The arguments for co_process_create are as follows:

const char *name

A programmer-defined name. This name may be any text string. It is used to identify the process externally, such as when using the Application Monitor.

co_function run

The run function associated with this process.

int argc

The number of input/output ports (streams, signals, registers, memories, and parameters) associated with the run function. The argc variable is followed by a corresponding list of port arguments as specified in the run function declaration.

Return Value

A pointer to the created process. This return value may subsequently be used as an argument to the function co_process_config.


Processes created using co_process_create represent specific instances of the specified run function. It is possible (and common) for co_process_create to be called repeatedly for the same process in order to create multiple instances of a run function.

In simulation, this function prints an error message and terminates the application if it is called from outside the configuration function, or if the Application Monitor is being used and a name argument is not supplied (== NULL).

    Practical FPGA Programming in C
    Practical FPGA Programming in C
    ISBN: 0131543180
    EAN: 2147483647
    Year: 2005
    Pages: 208

    Similar book on Amazon © 2008-2017.
    If you may any questions please contact us: