Answers Database


2.1i COREGEN, VANTAGE, VHDL: Error: Configuration "cfg_beh" cannot be created because the library already has a configuration with the same name. (util/LBR/58)


Record #7946

Product Family: Software

Product Line: LogiCore

Product Part: Coregen IP Modules

Problem Title:

2.1i COREGEN, VANTAGE, VHDL: Error: Configuration "cfg_beh" cannot be created because the library already has a configuration with the same name. (util/LBR/58)



Problem Description:
Urgency: hot

General Description:
Some VHDL simulators like Viewlogic Vantage do not allow you to compile a
VHDL configuration of a given name more than once in a library. Because (Xilinx Solution #6250)
directs you to specify the VHDL models in the XilinxCoreLib library with wildcards you may encounter this problem of recompiling the same configuration and see
errors like the following:


     VHDL Compiler, Release 6.202
         Copyright (c) 1998, Viewlogic Systems, Inc.
         Working library XILINXCORELIB "C:\Temp\Test7\xilinxcorelib.lib".
         --
         Compiling "C:\Temp\Test7\XilinxCoreLib\prims_sim_arch.vhd" line 1...
         Compiled entity XILINXCORELIB.C_BUFT
         --
         Compiling "C:\Temp\Test7\XilinxCoreLib\prims_sim_arch.vhd" line 27...
        a.C_BUFT.BEHAVIORAL.c
         Compiled architecture XILINXCORELIB.C_BUFT(BEHAVIORAL)
         --
         Compiling "C:\Temp\Test7\XilinxCoreLib\prims_sim_arch.vhd" line 45...
         Compiled configuration XILINXCORELIB.CFG_BEH of C_BUFT(BEHAVIORAL)
         --
         Compiling "C:\Temp\Test7\XilinxCoreLib\prims_sim_arch.vhd" line 50...
         Compiled entity XILINXCORELIB.C_PULLUP
         --
         Compiling "C:\Temp\Test7\XilinxCoreLib\prims_sim_arch.vhd" line 65...
        a.C_PULLUP.BEHAVIORAL.c
         Compiled architecture XILINXCORELIB.C_PULLUP(BEHAVIORAL)
         --
         Compiling "C:\Temp\Test7\XilinxCoreLib\prims_sim_arch.vhd" line 72...
        **Error: Cannot create configuration CFG_BEH in library "WORK"
        (C:\Temp\Test7\xilinxcorelib.lib)
           because configuration with the same name already exists.
        (libAccess/127)
           The existing configuration is associated with "C_BUFT BEHAVIORAL".
        (libAccess/131)
        **Error: Unable to create configuration WORK.CFG_BEH of
        C_PULLUP(BEHAVIORAL). (compiler/driver/56)
         --
         5/6 design unit(s) compiled successfully.
         Syntax summary: 0 error(s), 0 warning(s) found.



The errors are seen with the PULLUP, BUFT and C_LUT models.

As the error message indicates, Vantage does not allow you to compile configurations with the same name, although this is a perfectly valid thing to do.


Solution 1:

The "cfg_beh" configuration declarations for PULLUP, BUFT, and C_LUTare all located in the prims_sim_arch.vhd file. They are actually empty declarations and can simply be deleted from this model.






End of Record #7946 - Last Modified: 12/20/99 15:45

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