![Lattice Semiconductor LatticeMico32 Hardware Developer User Manual Download Page 89](http://html1.mh-extra.com/html/lattice-semiconductor/latticemico32/latticemico32_hardware-developer-user-manual_3843852089.webp)
C
REATING
C
USTOM
C
OMPONENTS
IN
L
ATTICE
M
ICO
S
YSTEM
:
Specifying Software Elements
LatticeMico32 Hardware Developer User Guide
83
Table 12 lists the options available in the Software tab of the Import/Create
Custom Component dialog box.
unsigned int
Yes
Integer, List, Define
List must be a numeric list.
char
Yes
Integer, List, Define
Values are not enclosed in
quotation marks and must
be valid numeric values.
unsigned char
Yes
Integer, List, Define
Values are not enclosed in
quotation marks and must
be valid numeric values.
User-defined
Yes
Any
You are responsible for
choosing the right
parameter based on the
parameter’s value type.
Table 11: Structure Element Data Types
Data Type
Can Element Be Initialized
During Platform
Creation?
Parameter Value Type
Notes
Note
If you select the Array box for any member, you must select a “value” parameter. This
selected parameter’s value is used to determine the array size. C/C++ SPE cannot
initialize the array contents, but you can do so in your component’s initialization
function.
If your component needs to know the interrupt line it is connected to in a platform, you
can add an “int” or an “unsigned int” data member and declare its “value” as Interrupt.
C/C++ SPE automatically initializes this data member’s value to the interrupt line
assigned by MSB in the platform when performing a managed build.
Table 12: Software Tab Options
Option
Description
Initialization Function Name
Specifies the user-defined initialization function name.
Component Information Structure
Name
Specifies the name of the DDStruct structure.
Data Type
Specifies the C data type of the DDStruct element being added. The drop-down
menu enables you to specify the following C data types: void *, unsigned int, int,
int *, const char, unsigned char, unsigned char *, char, or char *.
Member Name
Specifies the name of the DDStruct element being added.
Value
Available values in the drop-down menu depend on the chosen data type.
Is Array
Checks to see if the member name is an array.
Delete
Deletes the highlighted DDStruct setting from the list.
Update
Allows an element already added to the DDStruct to be modified. Highlight the
element, make any desired changes to the element, and the click Update to
activate the changes.