User guide
374 www.xilinx.com System Generator for DSP User Guide
UG640 (v 12.2) July 23, 2010
Chapter 4: Importing HDL Modules
Black Box Tutorial Exercise 9: Prompting a User for Parameters in a
Simulink Model and Passing Them to a Black Box
This tutorial exercise describes how to access generics/parameters from a masked counter and
pass them onto the black box to override the default local parameters in the VHDL file.
1. Navigate into the directory
<ISE_Design_Suite_tree>/sysgen/examples/example8 directory and open
the file black_box_ex8.mdl. The model is a simple counter, which includes two
input signals (reset and enable), a subsystem with a black box, and an output signal
(count) . The black box example model is shown below.
2. Simulate the black_box_ex8 model. The Simulink waveforms for the
black_box_ex8 simulation are shown below.