[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.dsdp.rtsc] Re: Issue with declaring structure variable and array under instance label in xdc fi

The instance config parameters must be initialized in the .xdc file. This is because instance config parameters are used to define a default parameters structure (<module>_Params) which is used when instances are created and the user passes in NULL for the parameters.

However the instance state object itself may be initialized in the module's .xs file; see http://rtsc.eclipse.org/docs-tip/Extending_xdc.runtime_Gates/Example_1 for an example of initializing a buffer declared in the .xdc file to all zeros. Look at the Lock.xdc file and the Lock.xs file.

Ravindranath wrote:
Hi,

I have to declare a variable of type array/structure in my xdc file under instance label so that the <module>_Params structure will contain the structure/array variable.

But xdc is giving error saying that element should be statically initialized. Can anybody know how to initialize the structure variable/array declared under instance label with some default values? I am using xdctools_3_15_00_50.

Regards,
Ravindranath Andela