sc_macros.h File Reference

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

Go to the source code of this file.

Namespaces

namespace  sc_dt
namespace  sc_core

Defines

#define W_BEGIN
#define W_DO
#define W_ESCAPE
#define W_END
#define WAIT()
#define WAITN(n)
#define WAIT_UNTIL(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)


Define Documentation

#define W_BEGIN

Value:

do {                                                                      \
        sc_watch __aux_watch( sc_get_curr_simcontext() );

Definition at line 113 of file sc_macros.h.

#define W_DO

Value:

try {                                                                 \
            __watching_first( __aux_watch.cthread_h );

Definition at line 117 of file sc_macros.h.

#define W_END

Value:

}                                                                     \
    } while( false );

Definition at line 129 of file sc_macros.h.

#define W_ESCAPE

Value:

}                                                                     \
        catch( int sc_level ) {                                               \
            __sanitycheck_watchlists( __aux_watch.cthread_h );                \
            if( sc_level < __watch_level( __aux_watch.cthread_h ) ) {         \
                throw sc_level;                                               \
            }

Definition at line 121 of file sc_macros.h.

 
#define WAIT (  ) 

Value:

sc_set_location( __FILE__, __LINE__ );                                    \
    wait()

Definition at line 139 of file sc_macros.h.

#define WAIT_UNTIL ( expr   ) 

Value:

sc_set_location( __FILE__, __LINE__ );                                    \
    do { wait(); } while( !(expr) )

Definition at line 147 of file sc_macros.h.

#define WAITN (  ) 

Value:

sc_set_location( __FILE__, __LINE__ );                                    \
    wait(n)

Definition at line 143 of file sc_macros.h.


Generated on Wed Jan 21 15:32:11 2009 for SystemC by  doxygen 1.5.5