UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Newbie fpgasowhere
Newbie
385 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
Moderator
Moderator
320 Views
Registered: ‎09-15-2016

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

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
Newbie fpgasowhere
Newbie
297 Views
Registered: ‎01-27-2019

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


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
Newbie fpgasowhere
Newbie
292 Views
Registered: ‎01-27-2019

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

Files added

0 Kudos