Library creation in Modelsim

H

Hari Sriniv

Guest
Hello Experts,
This might be some basic question, but I didn't have that much of a
luck going through the docs. I have to create a library in Modelsim,
say foolib having 3 modules namely foo1.v, foo2.v and foo3.v.

I have to use this foolib library into my top level testbench footb.v
which is in a different directory.

Can you please light me the steps neeed to do this.

Any help would be greatly appreciated.

Thanks and have a great day.

Regards
Hari Srini.
 
"Hari Sriniv" <harisriniv@yahoo.com> wrote in message
news:abe3ee34.0404140038.3195408a@posting.google.com...
Hello Experts,
This might be some basic question, but I didn't have that much of a
luck going through the docs. I have to create a library in Modelsim,
say foolib having 3 modules namely foo1.v, foo2.v and foo3.v.

I have to use this foolib library into my top level testbench footb.v
which is in a different directory.
For verilog, you don't have to create a library in Modelsim. -y option
should work. e.g

vlog -y /path/to/foolib footb.v

If you really want to use Modelsim library, here is what you can do,

vlib foolib
vlog -work foolib foo1.v foo2.v foo3.v
vlog -L foolib footb.v

HTH,
Jim
jimwu88NOOOSPAM@yahoo.com
http://www.geocities.com/jimwu88/chips
 
harisriniv@yahoo.com (Hari Sriniv) wrote in message news:<abe3ee34.0404140038.3195408a@posting.google.com>...
Hello Experts,
This might be some basic question, but I didn't have that much of a
luck going through the docs. I have to create a library in Modelsim,
say foolib having 3 modules namely foo1.v, foo2.v and foo3.v.
Assuming all of your sources are in the same directory, you could
create a library using vlib:

vlib foolib

will create a library directory called foolib in your current
directory.

I have to use this foolib library into my top level testbench footb.v
which is in a different directory.

Can you please light me the steps neeed to do this.
You have to use the -L option to tell vsim where to find foolib. In
your simulation configuration, choose the libraries tab, then click
"Add" next to the "Search Libraries" box, and mouse around to the
library.

-a
 

Welcome to EDABoard.com

Sponsor

Back
Top