Download Model Technology Model Sim EE Technical data

Transcript
12 - VHDL Foreign Language Interface
and Verilog PLI
Chapter contents
Compiling and linking FLI and PLI applications
Windows NT/95/98 linking . . . . .
SunOS 4 linking . . . . . . .
Solaris linking . . . . . . . .
HP700 linking . . . . . . . .
IBM RISC/6000 linking . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
452
453
453
453
454
454
Using the VHDL FLI with foreign architectures
Declaring the FOREIGN attribute . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
456
456
Using the VHDL FLI with foreign subprograms
.
.
.
.
.
.
.
.
.
.
458
Using checkpoint/restore with the FLI .
.
.
.
.
.
.
.
.
.
.
.
.
463
Support for Verilog instances
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
465
VSIM function descriptions .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
467
Using the Verilog PLI . . . . .
Specifying the PLI file to load . .
Support for VHDL objects . . .
PLI ACC routines for VHDL objects
PLI TF routines and Reason flags .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
483
483
484
485
486
FLI and PLI tracing . . . . .
The purpose of tracing files. .
Invoking a trace . . . . .
Replaying a Verilog PLI session
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
486
486
487
489
.
.
.
.
This chapter covers ModelSim’s VHDL FLI (Foreign Language Interface) and
ModelSim’s implementation of the Verilog PLI. The VHDL FLI allows you to
replace a VHDL architecture with code written in C or replace the body of a
VHDL function with code written in C. If you are simulating a Verilog design, the
MTI Verilog PLI provides similar capability for Verilog tasks and functions. Both
interfaces offer routines for mixed VHDL/Verilog simulation.
ModelSim EE/PLUS Reference Manual
VHDL Foreign Language Interface and Verilog PLI - 451