UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 17858

3.1 System Generator for DSP and 5.1i Project Navigator - How do I implement a project that has a VHDL Black Box with packages from other libraries?

Description

Keywords: SysGen, System Generator, MATLAB, HDL, Project Navigator, libraries, packages, implement

Urgency: Standard

General Description:
How do I implement a project that has a VHDL Black Box with packages from other libraries?

Solution

- To simulate a VHDL Black Box with packages from other libraries in ModelSim, please see (Xilinx Answer 17857).

- To implement a design with a VHDL Black Box that contains packages from other libraries in Project Navigator:

1. Create your black box using the black box procedures from the SysGen help.

2. Modify the "blackbox_config.m" script to include the VHDL package files in the designated location in the _config.m script.

For example:
this_block.addFile('flop.vhd'); % This is a VHDL package file.
this_block.addFile('reg_8_bit.vhd'); % This is a VHDL package file.
this_block.addFile('my_top.vhd'); % This is the original file used to define the black box.

3. Generate the project as usual, using the Xilinx token.

4. Open Project Navigator project by double-clicking on the NPL file in the netlist directory. Once you have opened the project, add the new library and move the proper sources to that library.

5. Click on the "Project" menu.

6. Click on "New Source".

7. Select "VHDL Library" from the list on the left.

8. Put the library name (e.g., "my_lib") in the box and click "OK".

9. Right-click on the files in the hierarchy that must be moved to the new Library (e.g., flop.vhd, reg_8_bit.vhd), and select "Move to Library".

10. Select the library (e.g., "my_lib") from the list and click "OK".
AR# 17858
Date Created 08/22/2003
Last Updated 06/24/2004
Status Archive
Type General Article