![Lattice Semiconductor LatticeMico32 Скачать руководство пользователя страница 48](http://html1.mh-extra.com/html/lattice-semiconductor/latticemico32/latticemico32_hardware-developer-user-manual_3843852048.webp)
U
SING
THE
L
ATTICE
M
ICO
S
YSTEM
S
OFTWARE
:
Performing HDL Functional Simulation of LatticeMico32 Platforms
42
LatticeMico32 Hardware Developer User Guide
The components directory contains RTL and software drivers that pertain to
each of the components instantiated within the design. Important files in the
soc directory include:
system_conf.v – This file contains the auto-generated macro definitions of
the various components in the design. As mentioned previously, this file
must be modified if the “Enable Debug Interface” option is selected in the
LM32 processor dialog box.
platform.v – This file contains the top-level module of the design, which is
Platform in this example.
pmi_def.v – This file contains module definitions of all the PMI modules
used in the design. For the purpose of functional simulation, the PMI
behavioral models must be provided. See “Replace PMI Black-box
Instantiations with Behavioral Models.” on page 46.
Creating an Optional VHDL Wrapper
For mixed-language designs, the VHDL Wrapper is required for simulation. To
demonstrate mixed-language functional simulation, a VHDL wrapper has
been created for the top-level module in the design example. The example
wrapper, platform_vhdl.vhd, is located in the soc directory and is shown in
Figure 19 on page 43.
Figure 18: LM32 Setup