User guide

19-17
Using the VCS / SystemC Cosimulation Interface
SystemC source code including:
- A SystemC top-level simulation (sc_main) that instantiates the
interface wrappers and other SystemC modules.
- Any other SystemC source files for the design.
An optional port mapping file. If you do not provide this file, the
interface uses the default port mapping definition. For details of
the port mapping file, see “Using a Port Mapping File” on page
19-26.
An optional data type mapping file. If you don’t write a data type
mapping file, the interface uses the default file in the VCS
installation. For details of the data type mapping files, see “Using
a Data Type Mapping File” on page 19-27.
Generating the Wrapper
You use the vlogan utility with the -sc_model option to generate
and build the wrapper and interface files for Verilog modules for
cosimulation. This utility creates the ./csrc directory in the current
directory, just like VCS does when you include compile-time options
for incremental compilation. The vlogan utility writes the wrapper
and interface files in subdirectories in the ./csrc directory.
There is nothing you need to do to the files that vlogan writes. VCS
knows to look for them when you include the compile-time option for
using the interface. See “Compiling a Verilog Design Containing
SystemC Modules” on page 19-14.