Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

Modelsim: compiling into libraries

Hi all,

I've a few questions regarding Modelsim:

1) libraries contain the VHDL files or the result of the compilation of these files?

2) How can I compile a file in a directory by my choice, different from the work directory?

3) In a testbench, i saw this:

library work;

use work.lib_one.all;

use work.lib_two.all;

This means that in work directory there are subdirectories named lib_one, lib_two, and in those subdirectories there were compiled some VHDL files.

How can I create subdirectories of WORK and compile there VHDL files?

Thanks a lot for your answers.

12 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    All compiles fine for me.

    are you sure you've compiled log_package.vhd?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    you're right,

    i've compiled another file with the same name 'log_package.vhd', but different code

    is there a way to compile all files in a folder in just one command?

    thank you very much Tricky