co_architecture co_architecture_create(const char *name,                                        const char *arch,                                        co_function configure,                                        void *arg); 

Header File



This function associates your application with a specific architecture definition. Architecture definitions are supplied with CoDeveloper and/or with optional Platform Support Packages. This function must be called from within the co_initialize function of your application.


The arguments for co_architecture_create are as follows:

const char *name

A programmer-defined name. This name is used to identify this particular application's use (or instance) of the selected architecture.

const char *arch

This text string specifies which platform architecture (as supplied with CoDeveloper or with an optional Platform Support Package) is to be targeted when compiling this application.

co_function configure

The configuration function associated with this architecture.

void *arg

This argument is passed to your configuration function.

Return Value

A pointer to an architecture. This return value should subsequently be returned by co_initialize to the main function, where it should be passed to the co_execute function to begin simulation.


The name argument is used as the basis for the name of the top-level HDL module generated by CoBuilder for the application. The name specified must therefore be compatible with any downstream HDL synthesis and simulation tools.

In simulation, the function prints an error message and terminates the application if the name argument is an empty string ("" or NULL) or the function is called from outside the co_initialize function.

    Practical FPGA Programming in C
    Practical FPGA Programming in C
    ISBN: 0131543180
    EAN: 2147483647
    Year: 2005
    Pages: 208 © 2008-2017.
    If you may any questions please contact us: