![Lattice Semiconductor LatticeMico32 Скачать руководство пользователя страница 43](http://html1.mh-extra.com/html/lattice-semiconductor/latticemico32/latticemico32_hardware-developer-user-manual_3843852043.webp)
U
SING
THE
L
ATTICE
M
ICO
S
YSTEM
S
OFTWARE
:
Creating the Microprocessor Platform in MSB
LatticeMico32 Hardware Developer User Guide
37
will build the database; map, place, and route the design; and generate the
bitstream in Diamond so that you can download that configuration bitstream to
the chip on a circuit board.
Configuring the Diamond Environment
1. In Diamond, choose
Tools > Options
.
2. Under “Environment” in the pane on the left, select
General
.
3. If the "Copy file to Implementation's Source directory when adding existing
file" is selected, clear the selection and click
OK
.
Importing the Verilog or VHDL File on Windows
The process of importing the generated platform file into Diamond is the same
for Verilog and VHDL, except that you must take a few additional steps when
you import a VHDL file.
To import the Verilog (.v) and VHDL (.vhd) files output by MSB on the
Windows platform:
1. Choose
File > Add > Existing File
.
2. In the dialog box, browse to the <
platform_name
>\soc\ location and do
one of the following:
Select the
<platform_name>.v
file (Verilog) and click
Add
.
If your design is mixed Verilog/VHDL, select both the
<platform_name>.v
file and the
<platform_name>_vhd.vhd
file and
click
Add
.
3. If your design is mixed Verilog/VHDL and you selected the Create VHDL
Wrapper option to generate <
platform_name
>_vhd.vhd without selecting
the Create VHDL NGO File option, perform these additional steps:
a. Choose
Project > Property Pages
.
b. In the dialog box, select the project name that appears in bold type
next to the implementation icon
.
c. In the right pane, click inside the Value cell for “Top-Level Unit” and
select
<platform_name>_vhd
from the drop-down menu.
d. Click inside the Value cell for “Verilog Include Search Path,” and then
click the browse button to open the “Verilog Include Search Path”
dialog box.
e. In the dialog box, click the New Search Path button
, browse to the
<platform_name>\soc
directory, and click
OK
.
f.
Click
OK
to add the path to the Project Properties and close the
“Verilog Include Search Path” dialog box.
g. Click
OK
to return to the Diamond main window.