AnsweredAssumed Answered

Issue with SystemC DPI tfdb file [ vsim error-2178 "A newer version (version 11) SystemC DPI tfdb file is present in current work library. The software only expects tfdb file with version 10 or below"]

Question asked by ramees041 on Sep 8, 2020

I have a perl script which has the below questasim line of code in it:-

//////////////////////////////////////////////////  

      ...

      ...
      ...
      $which_vsim= /home/user1/questa/questasim/include.                                                                       ##{ location of "vsim" }
      $dpi_pkg_path= /home/user1/Projects/Project1/example/sim/../src/uvm-1.1d/src/dpi/uvm_dpi.cc.    ##{ location of "uvm_dpi.cc" in the working project directory}
      $dpi_so_path= /home/user1/Projects/Project1/example/sim/../src/uvm-1.1d/uvm_dpi                       ##{ destination where we want to generate "uvm_dpi.so" file for the above ".cc" file }.
      ...
      ...
      ...
      system "gcc -m32 -fPIC -DQUESTA -g -W -shared -x c -I$which_vsim $dpi_pkg_path -o $dpi_so_path.so";   ##{ "gcc" used to generate "uvm_dpi.so" from "uvm_dpi.cc" }
      system "vsim -sv_lib $dpi_so_path $VSIMOPT $VSIMBATCH +UVM_VERBOSITY=$verbosity +UVM_OBJECTION_TRACE       +UVM_TESTNAME=$testname $others $plusargs +uvm_set_config_int=*,test_num,$test_num";
      ...
      ...
      ...

//////////////////////////////////////////////////  

 

 

When the above script is executed, the error I get is:-

# ** Error: (vsim-2178) A newer version (version 11) SystemC DPI tfdb file is present in current work library. The software only expects tfdb file with version 10 or below.
# Time: 0 ns Iteration: 0 Unknown:
# ** Error: (vsim-2166) DPI TFDB operation failed: VersionReadFailed:
# Time: 0 ns Iteration: 0 Unknown:
# ** Note: (vsim-3812) Design is being optimized...
# ** Fatal: (vopt-2138) Cannot load design unit work.sample_top.
# ** Error: (vopt-13130) Failed to find design unit sample_top.
# Searched libraries:
# work
# Optimization failed
# Error loading design
Error loading design
# End time: 16:11:23 on Sep 08,2020, Elapsed time: 0:00:01
# Errors: 4, Warnings: 0

Outcomes