![Lattice Semiconductor LatticeMico32 Скачать руководство пользователя страница 93](http://html1.mh-extra.com/html/lattice-semiconductor/latticemico32/latticemico32_hardware-developer-user-manual_3843852093.webp)
C
REATING
C
USTOM
C
OMPONENTS
IN
L
ATTICE
M
ICO
S
YSTEM
:
Applying Changes
LatticeMico32 Hardware Developer User Guide
87
Applying Changes
To apply the changes that you have made in the tabs of the Import/Create
Custom Component dialog box, select the
OK
button at the bottom of the
dialog box. LatticeMico System now performs design-rule checks. If it finds no
errors, the dialog box will close and the custom component will appear in the
MSB perspective.
If you need to re-edit the added custom component, select that component
and open the Import/Create Custom Component dialog box.
Creating the Verilog Wrapper for VHDL Designs
If you are creating custom components for VHDL designs, you must create a
Verilog wrapper before you proceed with creating a new custom component.
This section explains how to create and use new custom components in the
flow for VHDL users.
To create a Verilog wrapper:
1. Create a component definition in VHDL that is LatticeMico32-compliant,
for example, using WISHBONE. Refer to the section “WISHBONE
Interconnect Architecture” in the
LatticeMico32 Processor Reference
Manual
for information.
2. Create a completely new Diamond project that will be used just for
processing this component. This project is completely distinct from the
project that will eventually use this component.
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 14: Software Files Tab Options (Continued)
Option
Description
Note
Older versions of LatticeMico System Builder do not provide a member element of the
type DeviceReg_t in the DDStruct C structure by default. You can add it as an element
of user-defined data type. The DDStruct Attributes to be specified, as shown in
Figure 43, are as follows:
Data Type: DeviceReg_t
Member Name: lookupReg
Value: Uninitialized