#include <cstdio>
#include <iostream>
#include "../sc_mempool.hh"
#include "sc_bit.hh"
Go to the source code of this file.
◆ 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 &)
#define DEFN_ASN_OP_T(op, tp)
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, bool) \
DEFN_BIN_OP_T(ret, op, char) \
DEFN_BIN_OP_T(ret, op, int)
#define DEFN_BIN_OP_T(ret, op, tp)
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); \
}
Definition at line 308 of file sc_logic.hh.