gem5 v24.0.0.0
Loading...
Searching...
No Matches
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

namespace  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, sc_logic_value_t) \
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.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; \
}

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, sc_logic_value_t) \
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); \
}
SwitchingFiber b
SwitchingFiber a

Definition at line 308 of file sc_logic.hh.


Generated on Tue Jun 18 2024 16:24:08 for gem5 by doxygen 1.11.0