gem5  v20.1.0.0
Classes | Namespaces | Macros | Enumerations | Functions
sc_logic.hh File Reference
#include <cstdio>
#include <iostream>
#include "../sc_mempool.hh"
#include "sc_bit.hh"

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)
 

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, const sc_bit &)

Definition at line 206 of file sc_logic.hh.

◆ 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; \
}

Definition at line 198 of file sc_logic.hh.

◆ 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)

Definition at line 352 of file sc_logic.hh.

◆ 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); \
}

Definition at line 340 of file sc_logic.hh.

X86ISA::op
Bitfield< 4 > op
Definition: types.hh:78
sc_dt::sc_logic_value_t
sc_logic_value_t
Definition: sc_logic.hh:116
ArmISA::a
Bitfield< 8 > a
Definition: miscregs_types.hh:62
DEFN_ASN_OP_T
#define DEFN_ASN_OP_T(op, tp)
Definition: sc_logic.hh:198
ArmISA::b
Bitfield< 7 > b
Definition: miscregs_types.hh:376
DEFN_BIN_OP_T
#define DEFN_BIN_OP_T(ret, op, tp)
Definition: sc_logic.hh:340
ArmISA::v
Bitfield< 28 > v
Definition: miscregs_types.hh:51

Generated on Wed Sep 30 2020 14:02:19 for gem5 by doxygen 1.8.17