Table of Contents Previous page Next page Index

ModelSim

Model Technology Inc.


mti_GetWlfFilename()

Gets the name of the waveform logfile (.wlf).

Syntax

 filename = mti_GetWlfFilename() 

Returns

Name
Type
Description
filename
char *
A pointer to the name of the waveform logfile (.wlf)

Arguments

None

Description

mti_GetWlfFilename() returns the name of the waveform logfile (.wlf). 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.   */
)
{
  char * filename;

  filename = mti_GetWlfFilename();
  mti_PrintFormatted( "WLF filename = %s\n", filename );
} 

HDL code

entity top is
end top;

architecture a of top is

  signal s1 : bit := '0';

begin

  s1 <= not s1 after 10 ns;

end a; 

Simulation output

% vsim -c -wlf mydata.wlf top -foreign "initForeign for_model.sl"
Reading .../modeltech/sunos5/../tcl/vsim/pref.tcl

# 5.5

# vsim -wlf mydata.wlf -foreign {initForeign for_model.sl} -c top
# Loading .../modeltech/sunos5/../std.standard
# Loading work.top(a)
# Loading ./for_model.sl
# WLF filename = mydata.wlf
VSIM 1> add log -r /*
VSIM 2> run 100
VSIM 3> quit 


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

ModelSim