![Lattice Semiconductor LatticeMico32 Скачать руководство пользователя страница 71](http://html1.mh-extra.com/html/lattice-semiconductor/latticemico32/latticemico32_hardware-developer-user-manual_3843852071.webp)
C
REATING
C
USTOM
C
OMPONENTS
IN
L
ATTICE
M
ICO
S
YSTEM
:
Specifying Clock/Reset and External Ports
LatticeMico32 Hardware Developer User Guide
65
In addition to the mandatory WISHBONE interface, the component being
imported or created must have a clock input port for the WISHBONE clock
signal and a reset input port for the WISHBONE reset signal. It may optionally
have its own set of input ports, output ports, or both, or an interrupt port for
connecting an interrupt line to the processor.
The External Ports tab enables you to specify connectivity of the following
sets of signals between your custom component’s top-level module and the
GUI-generated wrapper module:
Port Type
Displays the port type of the port selected in the Parameters box (either
ClockPort, ResetPort, Interrupt, or ExternalPort). You cannot select or edit this
information.
Component Port
Specifies the
port name of the wrapper.
Width
Specifies the port width. Enter a number from 1 to 32.
Direction
Enables you to choose the port direction. Choose input, output, or inout from the
drop-down menu.
Active
This option is only available if the Port Type is Interrupt. Choose <blank>, High,
or Low from the drop-down menu.
Connect To
Specifies the name of the user-defined component port that will be connected to
the wrapper port named in the Component Port field.
Update
Updates the port parameters list. Whenever a change is made to the Port
Attribute entries that you wish to make permanent, you must click the Update
button.
Add
Inserts a new external port into the list of ports that the custom component
implements. Fill in each of the active Port Attribute fields and then click Add. If
there are no syntax errors, a new entry will be appended to the list of external
ports.
Reset
Clears all entries in the Port Attributes group box and permits the entry of a new
external port. Use this button if the Add button is not available.
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 5: External Ports Tab Options (Continued)
Option
Description