![Lattice Semiconductor LatticeMico32 Скачать руководство пользователя страница 61](http://html1.mh-extra.com/html/lattice-semiconductor/latticemico32/latticemico32_hardware-developer-user-manual_3843852061.webp)
C
REATING
C
USTOM
C
OMPONENTS
IN
L
ATTICE
M
ICO
S
YSTEM
:
Specifying Component Attributes
LatticeMico32 Hardware Developer User Guide
55
The location of the new component is stored in a settings file that MSB uses
to identify the available components.
Component Properties
You must set the parameters shown in Table 1 for your new component in the
Component tab.
Note
Do not use the top-level module name of your custom component as the component
name in this tab. Also, do not specify a directory within the Diamond installation as the
location for the new component.
Table 1: Component Tab Options
Option
Description
Create New Component
Creates a new component.
Open Component XML
Opens an existing component description file (<
component_name
>.xml) to edit
the existing component.
New Component Name
Specifies the name of the component. The name you enter in this box will be used
to create a folder and a component description file (<
component_name
>.xml).
New Component Directory/
Select Component XML
New Component Directory – Specifies the path of the component file. This option
is available if you are creating a new custom component and have selected the
Create New Component option. Type in the path to your component folder, or use
the Browse button to browse to your new component folder.
Note
: Your new component folder should be outside of the .\micosystem folder.
Select Component XML – Specifies the path of the component description file.
This option is available if you are editing an existing component and have
selected the Open Component XML option. Use the Browse button to browse to
the component description file (<
component_name
>.xml) of the component that
you want to edit.
Display Name
Specifies the name of your component that you want MSB to display when it
appears in the Available Components window. It is not used for a folder or a file
name, so any combination of ASCII characters is permitted.
Version
Specifies the version number of the component that you want MSB to display next
to the display name in the MSB Available Components window.
Type
Specifies the type of component: I/O or memory. MSB supports only these two
types of components. The type of component determines the address assignment
of the component in MSB. I/O components are located in the LatticeMico32
processor’s non-cacheable region, and memory components are located in
LatticeMico32 processor’s cacheable region.
Choose IO or Memory from the drop-down menu. Memory components reside in
the lower 2G of the LatticeMico32 memory map and can be added to the
instruction and data ports. I/O components reside in the upper 2G. The I/O
component can only be connected to the data port.