SystemC  2.3.2
Accellera SystemC proof-of-concept library
sc_macros.h File Reference

Miscellaneous definitions that are needed by the headers. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 sc_dt
 
 sc_core
 

Macros

#define SC_STRINGIFY_HELPER_(Arg)   SC_STRINGIFY_HELPER_DEFERRED_( Arg )
 
#define SC_STRINGIFY_HELPER_DEFERRED_(Arg)   SC_STRINGIFY_HELPER_MORE_DEFERRED_( Arg )
 
#define SC_STRINGIFY_HELPER_MORE_DEFERRED_(Arg)   #Arg
 
#define SC_CONCAT_HELPER_(a, b)   SC_CONCAT_HELPER_DEFERRED_( a, b )
 
#define SC_CONCAT_HELPER_DEFERRED_(a, b)   SC_CONCAT_HELPER_MORE_DEFERRED_( a,b )
 
#define SC_CONCAT_HELPER_MORE_DEFERRED_(a, b)   a ## b
 
#define SC_CONCAT_UNDERSCORE_(a, b)   SC_CONCAT_HELPER_( a, SC_CONCAT_HELPER_( _, b ) )
 
#define SC_WAIT()
 
#define SC_WAITN(n)
 
#define SC_WAIT_UNTIL(expr)   do { SC_WAIT(); } while( !(expr) )
 

Functions

template<class T >
const T sc_dt::sc_min (const T &a, const T &b)
 
template<class T >
const T sc_dt::sc_max (const T &a, const T &b)
 
template<class T >
const T sc_dt::sc_abs (const T &a)
 

Detailed Description

Miscellaneous definitions that are needed by the headers.

Original Author: Stan Y. Liao, Synopsys, Inc.

CHANGE LOG AT THE END OF THE FILE

Definition in file sc_macros.h.

Macro Definition Documentation

◆ SC_CONCAT_HELPER_

#define SC_CONCAT_HELPER_ (   a,
 
)    SC_CONCAT_HELPER_DEFERRED_( a, b )

Definition at line 95 of file sc_macros.h.

◆ SC_CONCAT_HELPER_DEFERRED_

#define SC_CONCAT_HELPER_DEFERRED_ (   a,
 
)    SC_CONCAT_HELPER_MORE_DEFERRED_( a,b )

Definition at line 98 of file sc_macros.h.

◆ SC_CONCAT_HELPER_MORE_DEFERRED_

#define SC_CONCAT_HELPER_MORE_DEFERRED_ (   a,
 
)    a ## b

Definition at line 101 of file sc_macros.h.

◆ SC_CONCAT_UNDERSCORE_

#define SC_CONCAT_UNDERSCORE_ (   a,
 
)    SC_CONCAT_HELPER_( a, SC_CONCAT_HELPER_( _, b ) )

Definition at line 104 of file sc_macros.h.

◆ SC_STRINGIFY_HELPER_

#define SC_STRINGIFY_HELPER_ (   Arg)    SC_STRINGIFY_HELPER_DEFERRED_( Arg )

Definition at line 83 of file sc_macros.h.

◆ SC_STRINGIFY_HELPER_DEFERRED_

#define SC_STRINGIFY_HELPER_DEFERRED_ (   Arg)    SC_STRINGIFY_HELPER_MORE_DEFERRED_( Arg )

Definition at line 86 of file sc_macros.h.

◆ SC_STRINGIFY_HELPER_MORE_DEFERRED_

#define SC_STRINGIFY_HELPER_MORE_DEFERRED_ (   Arg)    #Arg

Definition at line 89 of file sc_macros.h.

◆ SC_WAIT

#define SC_WAIT ( )
Value:
::sc_core::sc_set_location( __FILE__, __LINE__ ); \
SC_API void sc_set_location(const char *, int, sc_simcontext *=sc_get_curr_simcontext())
void SC_API wait(int, sc_simcontext *)

Definition at line 113 of file sc_macros.h.

◆ SC_WAIT_UNTIL

#define SC_WAIT_UNTIL (   expr)    do { SC_WAIT(); } while( !(expr) )

Definition at line 125 of file sc_macros.h.

◆ SC_WAITN

#define SC_WAITN (   n)
Value:
::sc_core::sc_set_location( __FILE__, __LINE__ ); \
SC_API void sc_set_location(const char *, int, sc_simcontext *=sc_get_curr_simcontext())
void SC_API wait(int, sc_simcontext *)

Definition at line 119 of file sc_macros.h.