User guide
76 www.xilinx.com System Generator for DSP User Guide
UG640 (v 12.2) July 23, 2010
Chapter 1: Hardware Design Using System Generator
Generating the HDL Files for the System Generator Designs
The steps used to create the HDL files are as follows:
1. Open the first design, spram.mdl, in MATLAB. This is a multirate design due to the
down sampling block placed after the output of the Single Port RAM.
2. Double click on the System Generator block; select the HDL Netlist target and press
the Generate button. By pressing the Generate button, the HDL file for this design is
created in the directory
<ISE_Design_Suite_tree>/sysgen/examples/projnav/mult_diff_desig
ns/hdl_netlist1.
3. Repeat steps 1 and 2 for the mac_fir.mdl model. The HDL file for this design is
created in the directory
<ISE_Design_Suite_tree>/sysgen/examples/projnav/mult_diff_desig
ns/hdl_netlist2.
Note:
You are now finished generating HDL Netlists from System Generator
Switching to Different HDL Libraries
When integrating two or more System Generator designs into a bigger design, you need to
rename HDL libraries to prevent name clashes and other undesired behaviors during
simulation. System Generator provides a utility that switches library names for all related
files in your System Generator design. In addition, it also makes a backup copy in a folder
just in case you want to revert back to the original library name. The following is the syntax
for this utility:
Syntax:
xlSwitchLibrary(<target_dir_pathname>, <from_lib_name>, <to_lib_name>)
<target_dir_pathname>: location of the design
<from_lib_name>: Original HDL library name
<to_lib_name>: New HDL library name
1. From the MATLAB Console, enter the following command:
xlSwitchLibrary('hdl_netlist1','work','design1_lib')
2. Next, from the MATLAB Console, enter the following command:
xlSwitchLibrary('hdl_netlist2','work','design2_lib')