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
and
implemented in X
.h
.
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'.