User guide

19-8
Using the VCS / SystemC Cosimulation Interface
Generating the Wrapper for SystemC Modules
You use the syscan utility to generate the wrapper and interface files
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 syscan utility writes the wrapper
and interface files in subdirectories in the ./csrc directory.
There is nothing you need to do to the files that syscan 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.
The syntax for the syscan command line is as follows:
syscan [options] filename[:modulename]
[filename[:modulename]]*
Here:
filename[:modulename] [filename[:modulename]]*
This is how you specify all the SystemC files in the design. There
is no limit to the number of of files. The entries for the SystemC
files that contain modules, which you want to instantiate, also
include a colon : followed by the name of the module. If
:modulename is omitted, the .cpp files are compiled and added
to the design's database so the final vcs command is able to bring
together all the modules in the design. You do not need to add
-I$VCS_HOME/include or -I$SYSTEMC/include
[options]
These can be any of the following:
-cflags "flags"
Passes flags to the C++ compiler.