cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
dshamgar
Observer
Observer
489 Views
Registered: ‎10-06-2020

config_compile_simlib doesn't add options specified to all libraries compilation

Hi, 

i am using vivado 2020.01 and want to compile the simlibs for VCS 19.06.

i need to add arguments to the VCS compilation execution and i use config_compile_simlib adding the -kdb option for all vcs config types:

config_compile_simlib -cfgopt {vcs_mx.verilog.axi_bfm:-sverilog -nc -kdb }
config_compile_simlib -cfgopt {vcs_mx.verilog.ieee:-sverilog -nc -kdb }
config_compile_simlib -cfgopt {vcs_mx.verilog.secureip:+v2k -nc -kdb }
config_compile_simlib -cfgopt {vcs_mx.verilog.simprim:+v2k -nc +define+XIL_TIMING -kdb }
config_compile_simlib -cfgopt {vcs_mx.verilog.std:-sverilog -nc -kdb }
config_compile_simlib -cfgopt {vcs_mx.verilog.synopsys:-sverilog -nc -kdb }
config_compile_simlib -cfgopt {vcs_mx.verilog.unisim:+v2k -nc -kdb }
config_compile_simlib -cfgopt {vcs_mx.verilog.vl:-sverilog -nc -kdb }
config_compile_simlib -cfgopt {vcs_mx.verilog.xpm:-nc -sverilog -kdb }
config_compile_simlib -cfgopt {vcs_mx.vhdl.axi_bfm:-nc -kdb }
config_compile_simlib -cfgopt {vcs_mx.vhdl.ieee:-nc -kdb }
config_compile_simlib -cfgopt {vcs_mx.vhdl.secureip:-nc -kdb }
config_compile_simlib -cfgopt {vcs_mx.vhdl.simprim:-nc -kdb }
config_compile_simlib -cfgopt {vcs_mx.vhdl.std:-nc -kdb }
config_compile_simlib -cfgopt {vcs_mx.vhdl.synopsys:-nc -kdb }
config_compile_simlib -cfgopt {vcs_mx.vhdl.unisim:-nc -kdb }
config_compile_simlib -cfgopt {vcs_mx.vhdl.vl:-nc -kdb }
config_compile_simlib -cfgopt {vcs_mx.vhdl.xpm:-nc -kdb }

 

in the compile_simlib.log i see that some libraries weren't compiled with the -kdb flag:

Compiling vhdl library 'axi_iic_v2_0_24'...
> executing '/cad/Synopsys/VCS/vcs/P-2019.06//bin/vhdlan -nc -full64 -work axi_iic_v2_0_24 -f /project/panther/vendor/Xilinx/xilinx_libs/./axi_iic_v2_0_24/.cxl.vhdl.axi_iic_v2_0_24.axi_iic_v2_0_24.lin64.cmf'...
output file: '/project/panther/vendor/Xilinx/xilinx_libs/./axi_iic_v2_0_24/.cxl.vhdl.axi_iic_v2_0_24.axi_iic_v2_0_24.lin64.log'
> forking '/cad/Synopsys/VCS/vcs/P-2019.06//bin/vhdlan -nc -full64 -work axi_iic_v2_0_24 -f /project/panther/vendor/Xilinx/xilinx_libs/./axi_iic_v2_0_24/.cxl.vhdl.axi_iic_v2_0_24.axi_iic_v2_0_24.lin64.cmf'
return code: '0'
Time taken: 0 mins (0 secs)

anu idea why ? or how to fix ? 

 

thanks,

doron

0 Kudos
4 Replies
graces
Moderator
Moderator
426 Views
Registered: ‎07-16-2008

The configuration doesn't apply to IP library compilation. 

If you stick to the option, you might as well manually compile the IP static files at simulation runtime.

-----------------------------------------------------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
If starting with Versal take a look at our Versal Design Process Hub and our Versal Blogs.
-----------------------------------------------------------------------------------------------------------------------
0 Kudos
dshamgar
Observer
Observer
409 Views
Registered: ‎10-06-2020

Thanks for your replay.

i don't understand why the configuration doesn't apply to all libraries ? 

there are some flags which must be set for all libraries when compiling (like the -kdb) otherwise i can't run a simulation with different compilation flags for different libraries.

is there a guide/tool for compiling the entire IP library manually ? 

thanks,

doron 

0 Kudos
miti
Xilinx Employee
Xilinx Employee
379 Views
Registered: ‎06-10-2020

HI@dshamgar ,

There is no tool for compiling the entire IP library manually with specific flags.

But as workaround you can modify the file ".cxl.vcs_mx.lin64.cmd" with necessary changes and source this to compile the libraries.

This file will be found at the same directory where compile_simlibs are generated.

Hope this will help you.

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as a solution.
-------------------------------------------------------------------------

0 Kudos
dshamgar
Observer
Observer
335 Views
Registered: ‎10-06-2020

Hi miti, 

I tried you suggested solution and i got several warnings and errors:

1. Warning-[KDB-OPTIONS] Kdb options are inconsistent.
Kdb options of library "XILINX_VIP" are inconsistent with current command.
Please check your kdb options while compiling the design.

 

2. when tried to change sysc=231 configuration to sysc=232 (in the entire file) i got the error:

Error-[SC-SYSCAN-SYSC-MIX] Mixing SystemC versions is not allowed
Mixing different SystemC versions is not allowed. Previously used SystemC
version is '231', currently used SystemC version is '232'.
Either add or omit argument -sysc=<version> to all calls of vlogan, vhdlan,
syscan, vcs and syscsim where you use SystemC.

 

3. the file uses environment variables like HDI_APPROOT that are not defined:

"HDI_APPROOT: Undefined variable."

 

please advise.

 

thanks,

doron

 

 

 

 

0 Kudos