gem5
v20.1.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 friend sc_logic | operator& (const sc_logic &, const sc_logic &) |
const friend sc_logic | operator| (const sc_logic &, const sc_logic &) |
const friend sc_logic | operator^ (const sc_logic &, const sc_logic &) |
bool | operator== (const sc_logic &, const sc_logic &) |
bool | operator!= (const sc_logic &, const sc_logic &) |
Definition at line 130 of file sc_logic.hh.
|
inline |
Definition at line 186 of file sc_logic.hh.
|
inline |
Definition at line 187 of file sc_logic.hh.
|
inline |
Definition at line 188 of file sc_logic.hh.
|
inlineexplicit |
Definition at line 189 of file sc_logic.hh.
|
inlineexplicit |
Definition at line 190 of file sc_logic.hh.
|
inlineexplicit |
Definition at line 191 of file sc_logic.hh.
|
inlineexplicit |
Definition at line 192 of file sc_logic.hh.
|
inline |
Definition at line 195 of file sc_logic.hh.
|
explicitprivate |
|
inline |
Definition at line 261 of file sc_logic.hh.
|
private |
Definition at line 121 of file sc_logic.cc.
References sc_dt::Log_0.
|
staticprivate |
Definition at line 104 of file sc_logic.cc.
|
staticprivate |
Definition at line 112 of file sc_logic.cc.
|
staticprivate |
Definition at line 98 of file sc_logic.cc.
References sc_dt::Log_0, sc_dt::Log_1, sc_dt::Log_X, and sc_dt::Log_Z.
|
inline |
Definition at line 270 of file sc_logic.hh.
|
inlinestatic |
Definition at line 295 of file sc_logic.hh.
|
inlinestatic |
Definition at line 305 of file sc_logic.hh.
|
inlinestatic |
Definition at line 290 of file sc_logic.hh.
|
inlinestatic |
Definition at line 288 of file sc_logic.hh.
|
inlinestatic |
Definition at line 300 of file sc_logic.hh.
Definition at line 221 of file sc_logic.hh.
|
private |
Definition at line 214 of file sc_logic.hh.
Definition at line 235 of file sc_logic.hh.
References m_val.
Definition at line 228 of file sc_logic.hh.
|
inline |
Definition at line 259 of file sc_logic.hh.
References sc_core::sc_mempool::allocate().
|
inline |
Definition at line 283 of file sc_logic.hh.
void sc_dt::sc_logic::scan | ( | ::std::istream & | is = ::std::cin | ) |
Definition at line 179 of file sc_logic.cc.
|
inline |
Definition at line 272 of file sc_logic.hh.
References MipsISA::p, and sc_core::sc_mempool::release().
Referenced by sc_dt::sc_uint_base::operator=(), sc_dt::sc_int_base::operator=(), sc_dt::sc_unsigned::operator=(), and sc_dt::sc_signed::operator=().
|
inline |
Definition at line 280 of file sc_logic.hh.
|
inlinestaticprivate |
Definition at line 149 of file sc_logic.hh.
|
inlinestaticprivate |
Definition at line 152 of file sc_logic.hh.
|
inlinestaticprivate |
Definition at line 164 of file sc_logic.hh.
|
inlinestaticprivate |
Definition at line 139 of file sc_logic.hh.
|
inline |
Definition at line 268 of file sc_logic.hh.
Referenced by sc_core::sc_signal_resolved::update().
Definition at line 371 of file sc_logic.hh.
Definition at line 323 of file sc_logic.hh.
Definition at line 365 of file sc_logic.hh.
Definition at line 335 of file sc_logic.hh.
Definition at line 329 of file sc_logic.hh.
|
static |
|
static |
Definition at line 178 of file sc_logic.hh.
Referenced by sc_dt::sc_lv_base::init().
|
static |
Definition at line 179 of file sc_logic.hh.
Referenced by sc_dt::operator!=().
|
private |
Definition at line 311 of file sc_logic.hh.
Referenced by operator^=(), and operator|=().
|
static |
Definition at line 183 of file sc_logic.hh.
Referenced by sc_dt::sc_proxy< sc_bv_base >::operator[](), sc_dt::sc_bitref< X >::operator^=(), and operator|=().
|
static |
|
static |