SystemC 3.0.0
Accellera SystemC proof-of-concept library
Classes | Namespaces | Macros | Enumerations | Functions | Variables
sc_logic.h File Reference
#include <cstdio>
#include "sysc/kernel/sc_cmnhdr.h"
#include "sysc/kernel/sc_macros.h"
#include "sysc/utils/sc_mempool.h"
#include "sysc/datatypes/bit/sc_bit.h"
Include dependency graph for sc_logic.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  sc_dt::sc_logic
 

Namespaces

namespace  sc_dt
 

Macros

#define DEFN_ASN_OP_T(op, tp)
 
#define DEFN_ASN_OP(op)
 
#define DEFN_BIN_OP_T(ret, op, tp)
 
#define DEFN_BIN_OP(ret, op)
 

Enumerations

enum  sc_dt::sc_logic_value_t { sc_dt::Log_0 = 0 , sc_dt::Log_1 , sc_dt::Log_Z , sc_dt::Log_X }
 

Functions

const sc_logic sc_dt::operator& (const sc_logic &a, const sc_logic &b)
 
const sc_logic sc_dt::operator| (const sc_logic &a, const sc_logic &b)
 
const sc_logic sc_dt::operator^ (const sc_logic &a, const sc_logic &b)
 
bool sc_dt::operator== (const sc_logic &a, const sc_logic &b)
 
bool sc_dt::operator!= (const sc_logic &a, const sc_logic &b)
 
inline::std::ostream & sc_dt::operator<< (::std::ostream &os, const sc_logic &a)
 
inline::std::istream & sc_dt::operator>> (::std::istream &is, sc_logic &a)
 

Variables

SC_API const sc_logic sc_dt::SC_LOGIC_0
 
SC_API const sc_logic sc_dt::SC_LOGIC_1
 
SC_API const sc_logic sc_dt::SC_LOGIC_Z
 
SC_API const sc_logic sc_dt::SC_LOGIC_X
 
SC_API const sc_logic sc_dt::sc_logic_0
 
SC_API const sc_logic sc_dt::sc_logic_1
 
SC_API const sc_logic sc_dt::sc_logic_Z
 
SC_API const sc_logic sc_dt::sc_logic_X
 

Macro Definition Documentation

◆ DEFN_ASN_OP

#define DEFN_ASN_OP (   op)
Value:
DEFN_ASN_OP_T(op, bool) \
DEFN_ASN_OP_T(op, char) \
DEFN_ASN_OP_T(op, int ) \
DEFN_ASN_OP_T(op, sc_bit )
#define DEFN_ASN_OP_T(op, tp)
Definition: sc_logic.h:199
sc_logic_value_t
Definition: sc_logic.h:87

Definition at line 203 of file sc_logic.h.

◆ DEFN_ASN_OP_T

#define DEFN_ASN_OP_T (   op,
  tp 
)
Value:
sc_logic& operator op ( tp v ) \
{ *this op sc_logic( v ); return *this; }
class SC_API sc_logic
Definition: sc_signal_ifs.h:39

Definition at line 199 of file sc_logic.h.

◆ DEFN_BIN_OP

#define DEFN_BIN_OP (   ret,
  op 
)
Value:
DEFN_BIN_OP_T(ret,op,bool) \
DEFN_BIN_OP_T(ret,op,char) \
DEFN_BIN_OP_T(ret,op,int)
#define DEFN_BIN_OP_T(ret, op, tp)
Definition: sc_logic.h:317

Definition at line 323 of file sc_logic.h.

◆ DEFN_BIN_OP_T

#define DEFN_BIN_OP_T (   ret,
  op,
  tp 
)
Value:
inline ret operator op ( const sc_logic& a, tp b ) \
{ return ( a op sc_logic( b ) ); } \
inline ret operator op ( tp a, const sc_logic& b ) \
{ return ( sc_logic( a ) op b ); }
uint64 const sc_uint_base int b
Definition: sc_fxval.h:955

Definition at line 317 of file sc_logic.h.