Support dynamic loading of VPI extensions (#7727)

This commit is contained in:
Matthew Ballance
2026-06-28 09:28:09 -04:00
committed by GitHub
parent 3853301367
commit d023b3b075
27 changed files with 549 additions and 0 deletions
+2
View File
@@ -104,6 +104,8 @@ private:
puts("\n");
if (v3Global.opt.vpi()) {
// VPI shared libraries requested via +verilator+vpi+<lib> are loaded by
// contextp->commandArgs() above, before the statically-linked startup routines.
puts("// Hook VPI startup routines and invoke callback\n");
puts("if (vlog_startup_routines) {\n");
puts(/**/ "for (auto routinep = &vlog_startup_routines[0]; *routinep; routinep++)"