0 Replies Latest reply on Mar 31, 2017 7:32 AM by elcworker

    modelsim: use compiled modules with the same name in diferent libraries

    elcworker

      Hello!

      Can anyone explain me how I can use compiled modules with the same name in diferent libraries in modelsim?

      Example: I have 2 libraries in my workspace: work1 and work2. In work1 there is compiled verilog module with name Module and in work2 there is compiled verilog module with the same name Module.

      I get it by issue this commands:

       

      vlib work1

      vlog -work work1 Path1_to_Module/Module.v

      vlib work2

      vlog -work work2 Path2_to_Module/Module.v

       

      Path1_to_Module/Module.v and Path2_to_Module/Module.v has different contetnt (different version the same module for example).

       

      So I have 2 libraries with 2 different modules in each, but each module has the same name. When I simulate in Modelsim code in one module that contains "include Path1_to_Module" and in another module code contains "include Path2_to_Module" Modelsim in both cases use the same compiled Module: from work1 for example.

       

      So how I can explain Modelsim in which place which library with corresponding module use in simulation?

       

      Thanks a lot!