User guide
352 www.xilinx.com System Generator for DSP User Guide
UG640 (v 12.2) July 23, 2010
Chapter 4: Importing HDL Modules
Importing a VHDL Module
Black Box Tutorial Example 3: Importing a VHDL Module
This topic explains how to use the black box to import VHDL into a System Generator
design and how to use ModelSim to co-simulate the VHDL module.
1. From the MATLAB console, change the directory to
<ISE_Design_Suite_tree>/sysgen/examples/black_box/intro.
The following files are located in this directory:
♦ black_box_intro.mdl - A Simulink model containing an example black box.
♦ transpose_fir.vhd - Top-level VHDL for a transpose form FIR filter. This file
is the VHDL that is associated with the black box.
♦ mac.vhd – Multiply and add component used to build the transpose FIR filter.
2. Open the black_box_intro model from the MATLAB command window by
typing
>> black_box_intro
3. Open the subsystem named Transpose FIR Filter Black Box. At this point, the
subsystem contains two inports and one outport. The black box subsystem is shown
below:
4. Go to the Simulink Library Browser and add a black box block to this subsystem. The
black box is located in the Xilinx Blockset's Basic Elements library. The Black Box
Configuration Wizard is automatically invoked when a new black box is added to the
subsystem. A browser window appears that lists the VHDL source files that can be