Services and Modeling for Embedded Software Development
Embecosm divider strip
Prev  Next

3.2.3.  SystemC Model Coding Conventions

All the examples in this application note separate the definition of a class (i.e. what it does) in a .h file, from the implementation (i.e. how it does it) in a .cpp file. Class X is defined in file X.h and implemented in X.cpp.

The examples use the convention that classes and other type names start with an Upper Case letter (e.g. Or1ksimSC), variables and functions start with a lower case letter (e.g. dataBus) and defined or enumerated constants are all in UPPER CASE (e.g. #define BAUD_RATE 9600). All SystemC module classes end with the characters 'SC'.

Embecosm divider strip