When you instantiate a VHDL component in a Verilog/SV module or a Verilog/SV module in a VHDL architecture, the xelab
command:
- First searches for a unit of the same language as that of the instantiating design unit.
- If a unit of the same language is not found,
xelab
searches for a cross-language design unit in the libraries specified by the-L
option.
The search order is the same as the order of appearance of libraries on the xelab command line.
Note: When using the Vivado IDE, the library search order is specified automatically. No user intervention is necessary or possible.