gem5  v22.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 &)
Bitfield< 4 > op
Definition: types.hh:83
sc_logic_value_t
Definition: sc_logic.hh:85
#define DEFN_ASN_OP_T(op, tp)
Definition: sc_logic.hh:166

Definition at line 174 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; \
}
Bitfield< 0 > v
Definition: pagetable.hh:65

Definition at line 166 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)
#define DEFN_BIN_OP_T(ret, op, tp)
Definition: sc_logic.hh:308

Definition at line 320 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); \
}
Bitfield< 7 > b
Definition: misc_types.hh:388
Bitfield< 8 > a
Definition: misc_types.hh:66

Definition at line 308 of file sc_logic.hh.


Generated on Wed Dec 21 2022 10:23:00 for gem5 by doxygen 1.9.1