FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > VHDL

VHDL comp.lang.vhdl newsgroup / Usenet

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-23-2007, 02:43 PM
Pasacco
Guest
 
Posts: n/a
Default Creating / compiling user LIBRARY

Hi

I have problem when I try to COMPILE / SYNTHESIZE bunch of VHDL source
files.

VHDL source files have hierarchical structure.
For example, top module calls sub-module using LIBRARY declaration.

--------------------------------------------------------------------------------------------
--- As an example
--- Name ls sub-module component : module_network
--- Name of LIBRARY of "module_network" : module_networklib
--- module_network_pkg : definition of component "module_network
LIBRARY module_networklib;
USE module_networklib.module_network_pkg.ALL;
--------------------------------------------------------------------------------------------

Problem is that

When I try to synthesize the top module (in Xilinx ISE), the tool
responds with error message
"Library module_networklib not found"

This is expected, since I do not have "compiled library".

How can we create "compiled library" for sub-modules ?
Can we synthesize the top module, without having "compiled library"?

Thank you in advance for someone, who has this experience.

Reply With Quote
  #2 (permalink)  
Old 04-23-2007, 03:43 PM
Mike Treseler
Guest
 
Posts: n/a
Default Re: Creating / compiling user LIBRARY

Pasacco wrote:

> "Library module_networklib not found"
> This is expected, since I do not have "compiled library".
> How can we create "compiled library" for sub-modules ?


Compile the sub-module before any
modules that instance it.
For most synthesis tools this means
to order the file list correctly
and name the top entity correctly.

-- Mike Treseler
Reply With Quote
  #3 (permalink)  
Old 04-23-2007, 05:42 PM
Pasacco
Guest
 
Posts: n/a
Default Re: Creating / compiling user LIBRARY

On 23 apr, 16:43, Mike Treseler <[email protected]> wrote:
> Pasacco wrote:
> > "Library module_networklib not found"
> > This is expected, since I do not have "compiled library".
> > How can we create "compiled library" for sub-modules ?

>
> Compile the sub-module before any
> modules that instance it.
> For most synthesis tools this means
> to order the file list correctly
> and name the top entity correctly.
>
> -- Mike Treseler



Reply With Quote
  #4 (permalink)  
Old 04-23-2007, 05:44 PM
Pasacco
Guest
 
Posts: n/a
Default Re: Creating / compiling user LIBRARY

> Compile the sub-module before any
> modules that instance it.
> For most synthesis tools this means
> to order the file list correctly
> and name the top entity correctly.


Does 'compile' mean by 'synthesis' (for example xilinx ISE or
Synplify) ?
Thank you for the comment

Reply With Quote
  #5 (permalink)  
Old 04-23-2007, 06:04 PM
Mike Treseler
Guest
 
Posts: n/a
Default Re: Creating / compiling user LIBRARY

Pasacco wrote:
>> Compile the sub-module before any
>> modules that instance it.
>> For most synthesis tools this means
>> to order the file list correctly
>> and name the top entity correctly.

>
> Does 'compile' mean by 'synthesis'


Named libraries are a significant complication
for simulation and synthesis.
Consider using the default "work"
library for your entire design.

-- LIBRARY module_networklib;
-- USE module_networklib.module_network_pkg.ALL;
use work.module_network_pkg.ALL;

-- Mike Treseler
Reply With Quote
  #6 (permalink)  
Old 04-23-2007, 06:53 PM
Duane Clark
Guest
 
Posts: n/a
Default Re: Creating / compiling user LIBRARY

Pasacco wrote:
> Hi
>
> I have problem when I try to COMPILE / SYNTHESIZE bunch of VHDL source
> files.
>
> ...
> Problem is that
>
> When I try to synthesize the top module (in Xilinx ISE), the tool
> responds with error message
> "Library module_networklib not found"
>
> This is expected, since I do not have "compiled library".
>
> How can we create "compiled library" for sub-modules ?
> Can we synthesize the top module, without having "compiled library"?


You are using the ISE GUI? In ISE 8 or 9?

Click on the "Libraries" tab of the main window. Right click and select
"New Source". Select "VHDL Library" and enter the name for the library.
Click ok to create the library. Now right click on the library name in
the window and select "Add Source". Add the VHDL source code. Your
project should now be able to use the libraries.
Reply With Quote
  #7 (permalink)  
Old 04-24-2007, 10:25 AM
Pasacco
Guest
 
Posts: n/a
Default Re: Creating / compiling user LIBRARY

Now the synthesis is okay.
Thank you very much.

Reply With Quote
  #8 (permalink)  
Old 06-03-2007, 04:25 PM
Pasacco
Guest
 
Posts: n/a
Default Re: Creating / compiling user LIBRARY

Hi

Thank you for your help.
Now the library mapping is working, in Xilinx ISE (8.2.3) GUI.
But I am not able to find a way to do followings in "command line" (in
Linux)

--------------------------------
(1) New Source -> VHDL Library
(2) Add Source -> lots of VHDL files
--------------------------------

In MODELSIM, this was possible with "vlib -> vmap -> vcom".

I tried to find in "System development guide" and "Synthesis
Verification guide", with no luck.
Could anyone help me with "How to do library mapping" in "command
line"?

Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling a library mans FPGA 3 04-19-2007 07:06 PM
creating library in ISE 9 mans FPGA 2 04-18-2007 06:49 PM
Answer Record # 18857 compiling modelsim library John Craven FPGA 1 06-30-2004 01:17 AM
Compiling library problem in Xilinx ISE4.0? Lee FPGA 3 04-23-2004 02:28 AM


All times are GMT +1. The time now is 11:57 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved