![Lattice Semiconductor LatticeMico32 Hardware Developer User Manual Download Page 86](http://html1.mh-extra.com/html/lattice-semiconductor/latticemico32/latticemico32_hardware-developer-user-manual_3843852086.webp)
C
REATING
C
USTOM
C
OMPONENTS
IN
L
ATTICE
M
ICO
S
YSTEM
:
Specifying Software Elements
80
LatticeMico32 Hardware Developer User Guide
Specifying Software Elements
There are two main software elements that you can optionally specify for a
custom component:
GUI Widget
Specifies the GUI widget.
If the value type is Define, choose <
blank
>, Radio, or Check from the drop-
down menu.
If the value type is String, choose <
blank
> or Text from the drop-down menu.
If the value type is Integer, choose Text or Spinner from the drop-down menu.
If the value type is List, choose <
blank
> or Combo from the drop-down menu.
If the value type is Frequency, choose <
blank
> or Text from the drop-down
menu.
WIdget Setting
Specifies the GUI widget setting. If the GUI widget is Combo, enter comma-
separated list values. If GUI widget is Spinner, enter minimum and maximum
values as a hyphen-separated pair.
Flags
Choose <
blank
>, parameter, or compiler from the drop-down menu.
The parameter flag specifies that it is a Verilog parameter.
The compiler flag specifies that this is a compiler option to be used in C/C++
SPE.
Complier Options
If compiler flag is selected, specify flag or option.
Standard I/O
This option is only available for CharIODevice. Choose <blank>, input, output, or
inout from the drop-down menu.
Update
Updates changes.
Add
Adds new parameter.
Reset
Clears the Parameters tab options.
DRC
Performs a design-rule check of the new component.
Save
Adds the custom component to LatticeMico32. If the design-rule check fails, a
message appears that warns you that the data to be saved contains errors and
cannot be used in a platform. The component icon displays a small red “x” in the
bottom left-hand corner.
If the custom component passes the design-rule check, no message box or red
“x” appears, and the data is saved.
If you are going to override an existing file, another message comes up to ask
you for override permission.
Cancel
Cancels the actions and closes the dialog box. If you did not save your changes,
a message box comes up to warn you that the changed data will be lost.
Reset
Resets all values in all tabs in the dialog box.
Help
Displays the help for the dialog box.
Table 10: Parameters Tab Options (Continued)
Option
Description