gem5  [DEVELOP-FOR-23.0]
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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.

gem5::ArmISA::a
Bitfield< 8 > a
Definition: misc_types.hh:66
sc_dt::sc_logic_value_t
sc_logic_value_t
Definition: sc_logic.hh:116
gem5::ArmISA::b
Bitfield< 7 > b
Definition: misc_types.hh:438
DEFN_ASN_OP_T
#define DEFN_ASN_OP_T(op, tp)
Definition: sc_logic.hh:198
gem5::VegaISA::v
Bitfield< 0 > v
Definition: pagetable.hh:65
DEFN_BIN_OP_T
#define DEFN_BIN_OP_T(ret, op, tp)
Definition: sc_logic.hh:340
gem5::X86ISA::op
Bitfield< 4 > op
Definition: types.hh:83

Generated on Sun Jul 30 2023 01:57:05 for gem5 by doxygen 1.8.17