gem5  v20.0.0.3
Classes | Namespaces | Macros | Functions
sc_bit.hh File Reference
#include <iostream>
#include "../int/sc_nbdefs.hh"

Go to the source code of this file.

Classes

class  sc_dt::sc_bit
 

Namespaces

 sc_dt
 

Macros

#define DEFN_TO_VALUE_T(tp)   static bool to_value(tp i) { return to_value((int)i); }
 
#define DEFN_CTOR_T(tp)   explicit sc_bit(tp a) : m_val(to_value(a)) { sc_deprecated_sc_bit(); }
 
#define DEFN_ASN_OP_T(op, tp)   sc_bit &operator op(tp b) { return (*this op sc_bit(b)); }
 
#define DEFN_ASN_OP(op)
 
#define DEFN_BIN_FUN_T(ret, fun, tp)
 
#define DEFN_BIN_FUN(ret, fun)
 
#define DEFN_TRN_FUN_T(fun, tp)
 
#define DEFN_TRN_FUN(fun)
 

Functions

void sc_dt::sc_deprecated_sc_bit ()
 
bool sc_dt::operator== (const sc_bit &a, const sc_bit &b)
 
bool sc_dt::operator!= (const sc_bit &a, const sc_bit &b)
 
bool sc_dt::equal (const sc_bit &a, const sc_bit &b)
 
bool sc_dt::not_equal (const sc_bit &a, const sc_bit &b)
 
const sc_bit sc_dt::operator~ (const sc_bit &a)
 
const sc_bit sc_dt::b_not (const sc_bit &a)
 
void sc_dt::b_not (sc_bit &r, const sc_bit &a)
 
const sc_bit sc_dt::operator& (const sc_bit &a, const sc_bit &b)
 
const sc_bit sc_dt::operator| (const sc_bit &a, const sc_bit &b)
 
const sc_bit sc_dt::operator^ (const sc_bit &a, const sc_bit &b)
 
const sc_bit sc_dt::b_and (const sc_bit &a, const sc_bit &b)
 
const sc_bit sc_dt::b_or (const sc_bit &a, const sc_bit &b)
 
const sc_bit sc_dt::b_xor (const sc_bit &a, const sc_bit &b)
 
inline ::std::ostream & sc_dt::operator<< (::std::ostream &os, const sc_bit &a)
 
inline ::std::istream & sc_dt::operator>> (::std::istream &is, sc_bit &a)
 

Macro Definition Documentation

◆ DEFN_ASN_OP

#define DEFN_ASN_OP (   op)
Value:
DEFN_ASN_OP_T(op,bool) \
DEFN_ASN_OP_T(op,char)
#define DEFN_ASN_OP_T(op, tp)
Definition: sc_bit.hh:162
Bitfield< 4 > op
Definition: types.hh:78

Definition at line 164 of file sc_bit.hh.

Referenced by sc_dt::sc_bit::operator^=().

◆ DEFN_ASN_OP_T

#define DEFN_ASN_OP_T (   op,
  tp 
)    sc_bit &operator op(tp b) { return (*this op sc_bit(b)); }

Definition at line 162 of file sc_bit.hh.

◆ DEFN_BIN_FUN

#define DEFN_BIN_FUN (   ret,
  fun 
)
Value:
DEFN_BIN_FUN_T(ret,fun,bool) \
DEFN_BIN_FUN_T(ret,fun,char) \
DEFN_BIN_FUN_T(ret,fun,int)
Definition: design.h:40
#define DEFN_BIN_FUN_T(ret, fun, tp)
Definition: sc_bit.hh:255

Definition at line 259 of file sc_bit.hh.

Referenced by sc_dt::b_xor(), sc_dt::not_equal(), sc_dt::operator!=(), and sc_dt::operator^().

◆ DEFN_BIN_FUN_T

#define DEFN_BIN_FUN_T (   ret,
  fun,
  tp 
)
Value:
inline ret fun(const sc_bit& a, tp b) { return fun(a, sc_bit(b)); } \
inline ret fun(tp b, const sc_bit &a) { return fun(sc_bit(a), b); }
Definition: design.h:40
Bitfield< 8 > a
Bitfield< 7 > b

Definition at line 255 of file sc_bit.hh.

◆ DEFN_CTOR_T

#define DEFN_CTOR_T (   tp)    explicit sc_bit(tp a) : m_val(to_value(a)) { sc_deprecated_sc_bit(); }

Definition at line 129 of file sc_bit.hh.

◆ DEFN_TO_VALUE_T

#define DEFN_TO_VALUE_T (   tp)    static bool to_value(tp i) { return to_value((int)i); }

Definition at line 113 of file sc_bit.hh.

◆ DEFN_TRN_FUN

#define DEFN_TRN_FUN (   fun)
Value:
inline void \
fun(sc_bit &r, const sc_bit &a, const sc_bit &b) { r = fun(a , b); } \
DEFN_TRN_FUN_T(fun, int) \
DEFN_TRN_FUN_T(fun, bool) \
DEFN_TRN_FUN_T(fun, char)
Definition: design.h:40
Bitfield< 8 > a
Bitfield< 7 > b

Definition at line 346 of file sc_bit.hh.

◆ DEFN_TRN_FUN_T

#define DEFN_TRN_FUN_T (   fun,
  tp 
)
Value:
inline void \
fun(sc_bit &r, const sc_bit &a, tp b) \
{ r = fun(a, sc_bit(b)); } \
inline void \
fun(sc_bit &r, tp a, const sc_bit &b) \
{ r = fun(sc_bit(a), b); }
Definition: design.h:40
Bitfield< 8 > a
Bitfield< 7 > b

Definition at line 338 of file sc_bit.hh.


Generated on Fri Jul 3 2020 15:53:09 for gem5 by doxygen 1.8.13