Table of Contents Previous page Next page Index

ModelSim

Model Technology Inc.


VHDL FLI examples

Included in the ModelSim installation are a header file that must be included with foreign C code and several examples that illustrate how to use the foreign language interface.

The header file is:

/<install_dir>/modeltech/include/mti.h 

The examples are located in:

/<install_dir>/modeltech/examples/foreign/ 

in the following directories:

example_one 

This example illustrates how to create processes and sensitize them to signals and how to read and drive signals from these processes.

example_two

This example illustrates traversal of the design hierarchy, creation of a simple gate function, creation and sensitization of a process, and loading of multiple foreign shared libraries.

example_three

This example illustrates how to read a testvector file and use it to stimulate and test a design via FLI function calls.

example_four

This example illustrates how to create and use foreign subprograms.



Model Technology Inc.
Voice: (503) 641-1340
Fax: (503)526-5410
http://www.model.com
sales@model.com
TOC PREV NEXT INDEX

ModelSim