Download CoCentric SystemC Compiler RTL User and Modeling Guide

Transcript
Table 3-2
Nonsynthesizable C/C++ Constructs (Continued)
Category
Comment
Corrective action
Reference
conversion
Reference conversion is
supported for implicit
conversion of signals only.
Replace in all other
cases.
User-defined
template class
Only SystemC templates
classes such as sc_int<> are
supported.
Replace.
Type casting at
runtime
Not allowed.
Replace.
Type
identification at
runtime
Not allowed.
Replace.
Explicit
user-defined
type conversion
The C++ built-in types and
SystemC types are supported
for explicit conversion.
Replace in all other
cases.
Not allowed.
Replace.
Unions
Not allowed.
Replace with structs.
Global variable
Not supported for synthesis.
Replace with local
variables.
Member
variable
Member variables accessed by
two or more SC_METHOD
processes are not supported.
However, access to member
variables by only one process is
supported.
Use signals instead of
variables for
communication
between processes.
Volatile variable
Not allowed.
Use only nonvolatile
variables.
Unconditional
branching
Construct
goto
Converting to a Synthesizable Subset
3-7