From f8c9da5ed5996c3873da2580d132ac3f5cc35cbf Mon Sep 17 00:00:00 2001 From: Giles Atkinson <“gatk555@gmail.com”> Date: Sat, 8 Feb 2025 18:09:37 +0000 Subject: [PATCH] The VPI module path should be first in the lib_args parameter. --- src/xspice/vhdl/ghdl_shim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xspice/vhdl/ghdl_shim.c b/src/xspice/vhdl/ghdl_shim.c index 8f307f61c..c5a7ead66 100644 --- a/src/xspice/vhdl/ghdl_shim.c +++ b/src/xspice/vhdl/ghdl_shim.c @@ -204,8 +204,8 @@ void *run_ghdl(void *arg) /* 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 file = "./ghdlng.vpi";