32-bit IBM RS/6000 platform
ModelSim loads shared libraries on the IBM RS/6000 workstation. The shared library must import ModelSim's PLI/VPI symbols, and it must export the PLI or VPI application's initialization function or table. ModelSim's export file is located in the ModelSim installation directory in rs6000/mti_exports.
If your PLI/VPI application uses anything from a system library, you'll need to specify that library when you link your PLI/VPI application. For example, to use the standard C library, specify `-lc' to the `ld' command. The resulting object must be marked as shared reentrant using these gcc or cc compiler commands for AIX 4.x:
gcc -c -I/<install_dir>/modeltech/include app.c ld -o app.sl app.o -bE:app.exp \ -bI:/<install_dir>/modeltech/rs6000/mti_exports -bM:SRE -bnoentry -lccc -c -I/<install_dir>/modeltech/include app.c ld -o app.sl app.o -bE:app.exp \ -bI:/<install_dir>/modeltech/rs6000/mti_exports -bM:SRE -bnoentry -lcThe app.exp file must export the PLI/VPI initialization function or table. For the PLI, the exported symbol should be "init_usertfs". Alternatively, if there is no init_usertfs function, then the exported symbol should be "veriusertfs". For the VPI, the exported symbol should be "vlog_startup_routines". These requirements ensure that the appropriate symbol is exported, and thus ModelSim can find the symbol when it dynamically loads the shared object.
Model Technology Incorporated Voice: (503) 641-1340 Fax: (503)526-5410 www.model.com sales@model.com |