co_architecture co_architecture_create(const char *name, const char *arch, co_function configure, void *arg);
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:
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.