Return to Support Page
 homesearchagentssupportask xilinxmap

Answers Database


Foundation: What if a user macro has same name as Xilinx library symbol?


Record #1055

Product Family:  Software

Product Line:  Aldec

Problem Title:
Foundation: What if a user macro has same name as Xilinx library symbol?


Problem Description:
Do not create macros with the same name as a symbol from the
Xilinx libraries.

If a user macro has the same name as a Xilinx library macro,
it is no longer possible to use the Xilinx symbol in the project.

If a user macro has the same name as a Xilinx library
primitive, a library error will be issued when XNF files are
generated.


Solution 1:

If a user macro with the same name as a Xilinx library part
has been created, the user macro must be renamed, and the
library must be updated to re-read the Xilinx library part.

As an example, assume that a user macro named FD was created
and used in a project called EXAMPLE.

The first step is to rename the symbol:

1. Open the project library by double-clicking on its icon
   in the Foundation Project Manager.  This will open the
   Library Manager, and a window listing the objects in the
   project library.

2. Select the FD macro from the list of objects in the
   library.

3. In the Library Manager window, select Object->Rename.

4. Enter a new name for the macro that is not the same as
   a Xilinx libray part (such as MY_FD).

5. Close the object list and the Library Manager.


The second step is to update the project libraries and the
schematics:

1. In the Schematic Editor, select File->Update Libraries.
   All instances of the user macro will be replaced by the
   Xilinx library part.

2. Go through the design and replace all FD symbols with the
   MY_FD user macro.

3. When you save the schematics, you may get a warning saying
   that the schematic has been automatically corrected.
   Click Yes to save the schematic.



End of Record #1055

For the latest news, design tips, and patch information on the Xilinx design environment, check out the Xilinx Expert Journals!

© 1998 Xilinx, Inc. All rights reserved
Trademarks and Patents