User guide

19-28
Using the VCS / SystemC Cosimulation Interface
The data type mapping file is named cosim_defaults.map. The
interface looks for and reads the data mapping file in the following
places and in the following order:
1. In $VCS_HOME/include/cosim
2. In your $HOME/.synopsys_ccss directory
3. In the current directory.
An entry in a later file overrules an entry in an earlier file.
Each entry for a SystemC type has the following:
1. It begins with the keyword Verilog.
2. It is followed by the bit width. For vectors, an asterisk (*) is a
wildcard to designate vectors of any bit width not specified
elsewhere in the file.
3. The corresponding Verilog “type” using keywords that specify if it
is scalar, unsigned vector, or signed port, the same keywords
used in the port mapping file.
4. The SystemC or Native C++ type
Example 19-2 shows an example of a data type mapping file.
Example 19-2 Data Type Mapping File
##################################################
# Mappings between SystemC and Verilog datatypes
##################################################
Verilog * bit_vector sc_bv
Verilog 1 bit bool
Verilog * bit_vector int
Verilog * signed int
Verilog 1 bit sc_logic
Verilog 1 bit sc_bit
Verilog * bit_vector char