Table of Contents Previous page Next page Index

ModelSim

Model Technology Inc.


mti_GetProductVersion()

Gets the name and version of the simulator.

Syntax

prod_ver = mti_GetProductVersion() 

Returns

Name
Type
Description
prod_ver
char *
The name and version of the product

Arguments

None

Description

mti_GetProductVersion() returns the name and version of the product. The returned pointer must not be freed.

Related functions

None

Example

FLI code

#include <mti.h>

void initForeign(
  mtiRegionIdT       region,   /* The ID of the region in which this     */
                               /* foreign architecture is instantiated.  */
  char              *param,    /* The last part of the string in the     */
                               /* foreign attribute.                     */
  mtiInterfaceListT *generics, /* A list of generics for the foreign model.*/
  mtiInterfaceListT *ports     /* A list of ports for the foreign model.   */
)
{
mti_PrintFormatted( "The version of the simulator is:\n  \"%s\".\n",
                    mti_GetProductVersion() );
} 

HDL code

entity for_model is
end for_model;

architecture a of for_model is
  attribute foreign of a : architecture is "initForeign for_model.sl";
begin
end a;

entity top is
end top;

architecture a of top is

  signal s1 : bit := '0';

  component for_model is
  end component;

  for all : for_model use entity work.for_model(a);

begin

  i1 : for_model;

  s1 <= not s1 after 5 ns;

end a; 

Simulation output

% vsim -c top
Reading .../modeltech/sunos5/../tcl/vsim/pref.tcl 

# 5.4b

# vsim -c top 
# Loading .../modeltech/sunos5/../std.standard
# Loading work.top(a)
# Loading work.for_model(a)
# Loading ./for_model.sl
# The version of the simulator is:
#   "Model Technology ModelSim SE/EE PLUS vsim 5.4b Simulator 2000.06 Jun  9 2000".
VSIM 1> quit 


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

ModelSim