![Lattice Semiconductor LatticeMico32 Скачать руководство пользователя страница 58](http://html1.mh-extra.com/html/lattice-semiconductor/latticemico32/latticemico32_hardware-developer-user-manual_3843852058.webp)
C
REATING
C
USTOM
C
OMPONENTS
IN
L
ATTICE
M
ICO
S
YSTEM
:
Opening the Import/Create Custom Component Dialog Box
52
LatticeMico32 Hardware Developer User Guide
component in MSB. Once imported, your custom component is available
every time that you start MSB. The dialog box also enables you to create a
component configuration dialog box that lists parameters that you can
configure for your custom component. If your custom component has
associated software drivers or routines, you can specify them in the dialog
box so that they can be used in managed-make projects or a platform-library
project for a platform that uses this custom component.
The following steps are required to import your custom component into MSB:
1. Open the Import/Create Custom Component dialog box.
2. Specify the component attributes.
3. Specify the WISHBONE interface connections.
4. Specify the clock/reset and optional external port connections.
5. Specify your custom component’s RTL design files.
6. Specify the user-configurable parameters that your RTL design, software,
or both may need, if applicable.
7. Optionally, specify software elements.
8. Specify the optional software files that your custom component may
provide for use in LatticeMico32 applications.
9. Apply the changes.
The following sections introduce you to the Import/Create Custom Component
dialog box and explain the steps just given.
Once you have imported your custom component into MSB, you can use the
same Import/Create Custom Component dialog box to edit the provided
information.
Opening the Import/Create Custom Component
Dialog Box
The LatticeMico32 MSB perspective has an Import/Create Custom
Component dialog box that allows you to create or import custom components
for use in your MSB platform.
To import your WISHBONE-interface-compliant custom component, you must
have the following items:
RTL source files that implement your custom component
Note
The entire flow is based on the assumption that your custom component is written in
Verilog. If you have a custom component written in VHDL, you must perform a few
more steps before performing the steps just given. Refer to “Creating the Verilog
Wrapper for VHDL Designs” on page 87 for these steps.