Browse Source

The VPI module path should be first in the lib_args parameter.

pre-master-46
Giles Atkinson 1 year ago
committed by Holger Vogt
parent
commit
f8c9da5ed5
  1. 4
      src/xspice/vhdl/ghdl_shim.c

4
src/xspice/vhdl/ghdl_shim.c

@ -204,8 +204,8 @@ void *run_ghdl(void *arg)
/* Determing the file name for our VPI module. */ /* Determing the file name for our VPI module. */
if (pinfo->lib_argc >= 2 && pinfo->lib_argv[1][0]) // Explicit VPI file.
file = pinfo->lib_argv[1];
if (pinfo->lib_argc >= 1 && pinfo->lib_argv[0][0]) // Explicit VPI file.
file = pinfo->lib_argv[0];
else else
file = "./ghdlng.vpi"; file = "./ghdlng.vpi";

Loading…
Cancel
Save