User guide
19-33
Using the VCS / SystemC Cosimulation Interface
Interface Definition File
The interface definition file contains all the necessary information to
generate the TLI adapters. It consists of a general section and a
section specific to task/function. The order of lines within the general
section is arbitrary, and the first occurrence of a task or function
keyword marks the end of this section. The format of the file is
illustrated as follows:
interface if_name
direction sv_calls_sc
[verilog_adapter name]
[systemc_adapter name]
[hdl_path XMR-path]
[#include "file1.h"]
[`include "file2.v"]
...
task <method1>
input|output|inout|return vlog_type argument_name_1 return
input|output|inout|vlog_type argument_name_2
.
.
.
function [return type] method2
input|output|inout vlog_type argument_name_1
.
.
.
The interface entry defines the name of the interface. For the
direction SystemVerilog calling SystemC, the if_name argument
must match the name of the SystemC interface class. Specialized
template arguments are allowed in this case, for example
my_interface int or my_interface 32. For SystemC calling
SystemVerilog, if_name must match the SystemVerilog interface
name.