SystemC  Recoding Infrastructure for SystemC v0.6.2 derived from Accellera SystemC 2.3.1
Accellera SystemC proof-of-concept library
Classes | Namespaces | Macros | Enumerations | Functions | Variables
sc_logic.h File Reference
#include <cstdio>
#include "sysc/utils/sc_iostream.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

 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

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

Macro Definition Documentation

#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, const sc_bit& )
#define DEFN_ASN_OP_T(op, tp)
Definition: sc_logic.h:201
sc_logic_value_t
Definition: sc_logic.h:85

Definition at line 205 of file sc_logic.h.

#define DEFN_ASN_OP_T (   op,
  tp 
)
Value:
sc_logic& operator op ( tp v ) \
{ *this op sc_logic( v ); return *this; }

Definition at line 201 of file sc_logic.h.

#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:319
sc_logic_value_t
Definition: sc_logic.h:85

Definition at line 325 of file sc_logic.h.

#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:1003

Definition at line 319 of file sc_logic.h.