gem5 v24.0.0.0
|
#include <sc_logic.hh>
Public Member Functions | |
sc_logic () | |
sc_logic (const sc_logic &a) | |
sc_logic (sc_logic_value_t v) | |
sc_logic (bool a) | |
sc_logic (char a) | |
sc_logic (int a) | |
sc_logic (const sc_bit &a) | |
~sc_logic () | |
sc_logic & | operator= (const sc_logic &a) |
sc_logic & | operator&= (const sc_logic &b) |
sc_logic & | operator|= (const sc_logic &b) |
sc_logic & | operator^= (const sc_logic &b) |
const sc_logic | operator~ () const |
sc_logic & | b_not () |
sc_logic_value_t | value () const |
bool | is_01 () const |
bool | to_bool () const |
char | to_char () const |
void | print (::std::ostream &os=::std::cout) const |
void | scan (::std::istream &is=::std::cin) |
Static Public Member Functions | |
static void * | operator new (std::size_t, void *p) |
static void * | operator new (std::size_t sz) |
static void | operator delete (void *p, std::size_t sz) |
static void * | operator new[] (std::size_t sz) |
static void | operator delete[] (void *p, std::size_t sz) |
Static Public Attributes | |
static const sc_logic_value_t | char_to_logic [128] |
static const char | logic_to_char [4] = { '0', '1', 'Z', 'X' } |
static const sc_logic_value_t | and_table [4][4] |
static const sc_logic_value_t | or_table [4][4] |
static const sc_logic_value_t | xor_table [4][4] |
static const sc_logic_value_t | not_table [4] |
Private Member Functions | |
void | invalid_01 () const |
sc_logic (const char *) | |
sc_logic & | operator= (const char *) |
Static Private Member Functions | |
static void | invalid_value (sc_logic_value_t) |
static void | invalid_value (char) |
static void | invalid_value (int) |
static sc_logic_value_t | to_value (sc_logic_value_t v) |
static sc_logic_value_t | to_value (bool b) |
static sc_logic_value_t | to_value (char c) |
static sc_logic_value_t | to_value (int i) |
Private Attributes | |
sc_logic_value_t | m_val |
Friends | |
const sc_logic | operator& (const sc_logic &a, const sc_logic &b) |
const sc_logic | operator| (const sc_logic &a, const sc_logic &b) |
const sc_logic | operator^ (const sc_logic &a, const sc_logic &b) |
bool | operator== (const sc_logic &a, const sc_logic &b) |
bool | operator!= (const sc_logic &a, const sc_logic &b) |
Definition at line 98 of file sc_logic.hh.
|
inline |
Definition at line 154 of file sc_logic.hh.
Referenced by operator~().
|
inline |
Definition at line 155 of file sc_logic.hh.
|
inline |
Definition at line 156 of file sc_logic.hh.
|
inlineexplicit |
Definition at line 157 of file sc_logic.hh.
|
inlineexplicit |
Definition at line 158 of file sc_logic.hh.
|
inlineexplicit |
Definition at line 159 of file sc_logic.hh.
|
inlineexplicit |
Definition at line 160 of file sc_logic.hh.
|
inline |
Definition at line 163 of file sc_logic.hh.
|
explicitprivate |
|
inline |
Definition at line 229 of file sc_logic.hh.
|
private |
Definition at line 89 of file sc_logic.cc.
References sc_dt::Log_Z, m_val, sc_core::SC_ID_LOGIC_X_TO_BOOL_, sc_core::SC_ID_LOGIC_Z_TO_BOOL_, and SC_REPORT_WARNING.
Referenced by to_bool().
|
staticprivate |
Definition at line 72 of file sc_logic.cc.
References c, sc_core::SC_ID_VALUE_NOT_VALID_, and SC_REPORT_ERROR.
|
staticprivate |
Definition at line 80 of file sc_logic.cc.
References sc_core::SC_ID_VALUE_NOT_VALID_, and SC_REPORT_ERROR.
|
staticprivate |
Definition at line 66 of file sc_logic.cc.
References invalid_value().
Referenced by invalid_value(), to_value(), to_value(), and to_value().
|
inline |
Definition at line 238 of file sc_logic.hh.
References sc_dt::Log_0, sc_dt::Log_1, and m_val.
Referenced by sc_dt::sc_bitref_r< X >::is_01(), and to_bool().
|
inlinestatic |
Definition at line 263 of file sc_logic.hh.
References sc_core::sc_mempool::release().
|
inlinestatic |
Definition at line 273 of file sc_logic.hh.
References sc_core::sc_mempool::release().
|
inlinestatic |
Definition at line 258 of file sc_logic.hh.
References sc_core::sc_mempool::allocate().
|
inlinestatic |
Definition at line 256 of file sc_logic.hh.
|
inlinestatic |
Definition at line 268 of file sc_logic.hh.
References sc_core::sc_mempool::allocate().
Definition at line 189 of file sc_logic.hh.
|
private |
Definition at line 182 of file sc_logic.hh.
Definition at line 203 of file sc_logic.hh.
Definition at line 196 of file sc_logic.hh.
|
inline |
Definition at line 227 of file sc_logic.hh.
References m_val, not_table, and sc_logic().
|
inline |
Definition at line 251 of file sc_logic.hh.
References to_char().
void sc_dt::sc_logic::scan | ( | ::std::istream & | is = ::std::cin | ) |
Definition at line 147 of file sc_logic.cc.
References c.
|
inline |
Definition at line 240 of file sc_logic.hh.
References invalid_01(), is_01(), sc_dt::Log_0, and m_val.
Referenced by sc_dt::sc_int_base::operator=(), sc_dt::sc_signed::operator=(), sc_dt::sc_uint_base::operator=(), sc_dt::sc_unsigned::operator=(), and sc_dt::sc_bitref_r< X >::to_bool().
|
inline |
Definition at line 248 of file sc_logic.hh.
References logic_to_char, and m_val.
Referenced by print(), and sc_dt::sc_bitref_r< X >::to_char().
|
inlinestaticprivate |
Definition at line 117 of file sc_logic.hh.
References b, sc_dt::Log_0, and sc_dt::Log_1.
|
inlinestaticprivate |
Definition at line 120 of file sc_logic.hh.
References c, char_to_logic, and invalid_value().
|
inlinestaticprivate |
Definition at line 132 of file sc_logic.hh.
References invalid_value(), and sc_dt::Log_X.
|
inlinestaticprivate |
Definition at line 107 of file sc_logic.hh.
References invalid_value(), and sc_dt::Log_X.
|
inline |
Definition at line 236 of file sc_logic.hh.
References m_val.
Referenced by sc_dt::sc_lv_base::init(), sc_dt::sc_bitref< X >::operator=(), and sc_core::sc_signal_resolved::update().
Definition at line 339 of file sc_logic.hh.
Definition at line 291 of file sc_logic.hh.
Definition at line 333 of file sc_logic.hh.
Definition at line 303 of file sc_logic.hh.
Definition at line 297 of file sc_logic.hh.
|
static |
Definition at line 148 of file sc_logic.hh.
Referenced by sc_dt::sc_proxy< X >::and_reduce(), sc_dt::operator&(), sc_dt::sc_bitref< X >::operator&=(), sc_dt::sc_bitref< X >::operator&=(), and operator&=().
|
static |
Definition at line 146 of file sc_logic.hh.
Referenced by sc_dt::sc_proxy< X >::assign_(), sc_dt::sc_lv_base::assign_from_string(), and to_value().
|
static |
Definition at line 147 of file sc_logic.hh.
Referenced by to_char(), and sc_dt::sc_proxy< X >::to_string().
|
private |
Definition at line 279 of file sc_logic.hh.
Referenced by b_not(), invalid_01(), is_01(), operator&=(), operator=(), operator^=(), operator|=(), operator~(), to_bool(), to_char(), and value().
|
static |
Definition at line 151 of file sc_logic.hh.
Referenced by sc_dt::sc_bitref< X >::b_not(), b_not(), sc_dt::sc_proxy< X >::nand_reduce(), sc_dt::sc_proxy< X >::nor_reduce(), sc_dt::sc_bitref_r< X >::operator~(), operator~(), and sc_dt::sc_proxy< X >::xnor_reduce().
|
static |
Definition at line 149 of file sc_logic.hh.
Referenced by sc_dt::operator|(), sc_dt::sc_bitref< X >::operator|=(), sc_dt::sc_bitref< X >::operator|=(), operator|=(), and sc_dt::sc_proxy< X >::or_reduce().
|
static |
Definition at line 150 of file sc_logic.hh.
Referenced by sc_dt::operator^(), sc_dt::sc_bitref< X >::operator^=(), sc_dt::sc_bitref< X >::operator^=(), operator^=(), and sc_dt::sc_proxy< X >::xor_reduce().