cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Newbie
Newbie
624 Views
Registered: ‎01-27-2019

xvhdl -lib with directory not working on Windows (works with Linux)

Hi,

When using xvhdl, I'm unable to get "-lib somelib=somedir/somelib" option working where I've specified a directory along with the library as shown here. This issue is only when I'm simulating on Windows, it all works as expected when I run my scripts on Linux.

I'm using Vivado 2018.1 on both Windows and Linux.

Thanks.

0 Kudos
3 Replies
Highlighted
Moderator
Moderator
559 Views
Registered: ‎09-15-2016

Hi @fpgasowhere,

The xvhdl commands parses VHDL files.

xvhdl Examples :

xvhdl -work worklib file1.vhd file2.vhd

xvhdl -lib work test.vhd

Can you please share the scripts and the compile.log, vivado.log files from both the machines to check at our end.

Thanks & Regards,
Sravanthi B
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------
0 Kudos
Highlighted
Newbie
Newbie
536 Views
Registered: ‎01-27-2019


Rather than attach my real files I've generated a minimal example that shows the -lib feature working on Linux and not working on Windows.

(1) On Linux, I get the following with xvhdl:

# in directory build/lib compile my_pkg with xvhdl as follows:
xvhdl -work my_lib=my_lib ../../lib/my_pkg.vhd
INFO: [VRFC 10-163] Analyzing VHDL file "/home/paul/xilinx_issue/lib/my_pkg.vhd" into library my_lib

# in directory build/fpga compile my_fpga with xvhdl as follows:
xvhdl -work my_fpga=my_fpga -lib my_lib=../lib/my_lib ../../src/my_fpga.vhd
INFO: [VRFC 10-163] Analyzing VHDL file "/home/paul/xilinx_issue/src/my_fpga.vhd" into library my_fpga
INFO: [VRFC 10-307] analyzing entity my_fpga

As can be seen from the INFO outputs, compiling the library and referencing the library work under Linux.

(2) On Windows, I get the following with xvhdl:

# in directory build\lib compile my_pkg with xvhdl as follows:
xvhdl -work my_lib=my_lib ../../lib/my_pkg.vhd
INFO: [VRFC 10-163] Analyzing VHDL file "/home/paul/xilinx_issue/lib/my_pkg.vhd" into library my_lib

# in directory build\fpga compile my_fpga with xvhdl as follows:
xvhdl -work my_fpga=my_fpga -lib my_lib=../lib/my_lib ../../src/my_fpga.vhd
ERROR: [XSIM 43-4316] Can not find file: ../lib/my_lib

As can be seen from the INFO and ERROR outputs, compiling the library works, but referencing the library fails under Windows.

0 Kudos
Highlighted
Newbie
Newbie
531 Views
Registered: ‎01-27-2019

Files added

0 Kudos