/gem5/src/systemc/tests/systemc/kernel/sc_time/test19/ |
H A D | test19.cpp | 33 sc_time_tuple tp = t; local 37 if( tp.has_value() ) 38 std::cout << "t.value=" << tp.value(); 40 std::cout << "t.double=" << tp.to_double(); 41 std::cout << ", t.unit=" << tp.unit_symbol() 44 sc_assert( tp.has_value() ); 46 sc_assert( tp.to_string() == t.to_string() ); 47 sc_assert( tp.unit() == tu ); 51 sc_assert( u == tp ); 52 sc_assert( tp [all...] |
/gem5/ext/systemc/src/sysc/tracing/ |
H A D | sc_trace.h | 96 #define DECL_TRACE_METHOD_A(tp) \ 97 virtual void trace( const tp& object, \ 100 #define DECL_TRACE_METHOD_B(tp) \ 101 virtual void trace( const tp& object, \ 177 #define DECL_TRACE_FUNC_REF_A(tp) \ 180 const tp& object, \ 183 #define DECL_TRACE_FUNC_PTR_A(tp) \ 186 const tp* object, \ 189 #define DECL_TRACE_FUNC_A(tp) \ 190 DECL_TRACE_FUNC_REF_A(tp) \ [all...] |
H A D | sc_trace.cpp | 158 #define DEFN_TRACE_FUNC_REF_A(tp) \ 160 sc_trace( sc_trace_file* tf, const tp& object, const std::string& name ) \ 167 #define DEFN_TRACE_FUNC_PTR_A(tp) \ 169 sc_trace( sc_trace_file* tf, const tp* object, const std::string& name ) \ 176 #define DEFN_TRACE_FUNC_A(tp) \ 177 DEFN_TRACE_FUNC_REF_A(tp) \ 178 DEFN_TRACE_FUNC_PTR_A(tp)
|
H A D | sc_wif_trace.cpp | 1644 #define DEFN_TRACE_METHOD(tp) \ 1646 wif_trace_file::trace( const tp& object_, const std::string& name_ ) \ 1649 traces.push_back( new wif_ ## tp ## _trace( object_, \ 1659 #define DEFN_TRACE_METHOD(tp) \ 1661 wif_trace_file::trace(const sc_dt::tp& object_, const std::string& name_) \ 1664 traces.push_back( new wif_ ## tp ## _trace( object_, \ 1685 #define DEFN_TRACE_METHOD_SIGNED(tp) \ 1687 wif_trace_file::trace( const tp& object_, \ 1692 traces.push_back( new wif_signed_ ## tp ## _trace( object_, \ 1698 #define DEFN_TRACE_METHOD_UNSIGNED(tp) \ [all...] |
/gem5/src/systemc/tests/systemc/datatypes/misc/test03/ |
H A D | test03.cpp | 86 #define TEST_DEFAULT_CTOR(tp) \ 88 cout << "\n" << #tp << endl; \ 90 tp a; \ 94 tp b; \ 98 tp c; \ 102 tp d; \ 106 tp e; \
|
/gem5/ext/systemc/src/sysc/datatypes/fx/ |
H A D | sc_fix.h | 112 #define DECL_CTORS_T(tp) \ 113 sc_fix( tp, \ 116 sc_fix( tp, \ 119 sc_fix( tp, \ 122 sc_fix( tp, \ 125 sc_fix( tp, \ 128 sc_fix( tp, \ 131 sc_fix( tp, \ 135 sc_fix( tp, \ 139 sc_fix( tp, \ [all...] |
H A D | sc_ufix.h | 112 #define DECL_CTORS_T(tp) \ 113 sc_ufix( tp, \ 116 sc_ufix( tp, \ 119 sc_ufix( tp, \ 122 sc_ufix( tp, \ 125 sc_ufix( tp, \ 128 sc_ufix( tp, \ 131 sc_ufix( tp, \ 135 sc_ufix( tp, \ 139 sc_ufix( tp, \ [all...] |
H A D | sc_fixed.h | 84 #define DECL_CTORS_T_A(tp) \ 85 sc_fixed( tp, sc_fxnum_observer* = 0 ); \ 86 sc_fixed( tp, const sc_fxcast_switch&, sc_fxnum_observer* = 0 ); 88 #define DECL_CTORS_T_B(tp) \ 89 explicit sc_fixed( tp, sc_fxnum_observer* = 0 ); \ 90 sc_fixed( tp, const sc_fxcast_switch&, sc_fxnum_observer* = 0 ); 124 #define DECL_ASN_OP_T(op,tp) \ 125 sc_fixed& operator op ( tp ); 206 #define DECL_CTORS_T_A(tp) \ 207 sc_fixed_fast( tp, sc_fxnum_fast_observe [all...] |
H A D | sc_ufixed.h | 84 #define DECL_CTORS_T_A(tp) \ 85 sc_ufixed( tp, sc_fxnum_observer* = 0 ); \ 86 sc_ufixed( tp, const sc_fxcast_switch&, sc_fxnum_observer* = 0 ); 88 #define DECL_CTORS_T_B(tp) \ 89 explicit sc_ufixed( tp, sc_fxnum_observer* = 0 ); \ 90 sc_ufixed( tp, const sc_fxcast_switch&, sc_fxnum_observer* = 0 ); 124 #define DECL_ASN_OP_T(op,tp) \ 125 sc_ufixed& operator op ( tp ); 206 #define DECL_CTORS_T_A(tp) \ 207 sc_ufixed_fast( tp, sc_fxnum_fast_observe [all...] |
H A D | sc_fxval.h | 152 #define DECL_BIN_OP_T(op,tp) \ 153 friend const sc_fxval operator op ( const sc_fxval&, tp ); \ 154 friend const sc_fxval operator op ( tp, const sc_fxval& ); 218 #define DECL_BIN_FNC_T(fnc,tp) \ 219 friend void fnc ( sc_fxval&, const sc_fxval&, tp ); \ 220 friend void fnc ( sc_fxval&, tp, const sc_fxval& ); 262 #define DECL_REL_OP_T(op,tp) \ 263 friend bool operator op ( const sc_fxval&, tp ); \ 264 friend bool operator op ( tp, const sc_fxval& ); 305 #define DECL_ASN_OP_T(op,tp) \ [all...] |
H A D | sc_fxnum.h | 118 #define DECL_ASN_OP_T(op,tp) \ 119 sc_fxnum_bitref& operator op ( tp ); 189 #define DECL_ASN_OP_T(op,tp) \ 190 sc_fxnum_fast_bitref& operator op ( tp ); 265 #define DECL_ASN_OP_T(tp) \ 266 sc_fxnum_subref& operator = ( tp ); 288 #define DECL_ASN_OP_T_A(op,tp) \ 289 sc_fxnum_subref& operator op ## = ( tp ); 307 #define DECL_REL_OP_T(op,tp) \ 308 friend bool operator op ( const sc_fxnum_subref&, tp ); \ [all...] |
/gem5/src/systemc/ext/dt/fx/ |
H A D | sc_fix.hh | 93 #define DECL_CTORS_T(tp) \ 94 sc_fix(tp, int, int, sc_fxnum_observer * =0); \ 95 sc_fix(tp, sc_q_mode, sc_o_mode, sc_fxnum_observer * =0); \ 96 sc_fix(tp, sc_q_mode, sc_o_mode, int, sc_fxnum_observer * =0); \ 97 sc_fix(tp, int, int, sc_q_mode, sc_o_mode, sc_fxnum_observer * =0); \ 98 sc_fix(tp, int, int, sc_q_mode, sc_o_mode, int, sc_fxnum_observer * =0); \ 99 sc_fix(tp, const sc_fxcast_switch &, sc_fxnum_observer * =0); \ 100 sc_fix(tp, int, int, const sc_fxcast_switch &, sc_fxnum_observer * =0); \ 101 sc_fix(tp, sc_q_mode, sc_o_mode, const sc_fxcast_switch &, \ 103 sc_fix(tp, sc_q_mod [all...] |
H A D | sc_ufix.hh | 93 #define DECL_CTORS_T(tp) \ 94 sc_ufix(tp, int, int, sc_fxnum_observer * =0); \ 95 sc_ufix(tp, sc_q_mode, sc_o_mode, sc_fxnum_observer * =0); \ 96 sc_ufix(tp, sc_q_mode, sc_o_mode, int, sc_fxnum_observer * =0); \ 97 sc_ufix(tp, int, int, sc_q_mode, sc_o_mode, sc_fxnum_observer * =0); \ 98 sc_ufix(tp, int, int, sc_q_mode, sc_o_mode, int, sc_fxnum_observer * =0); \ 99 sc_ufix(tp, const sc_fxcast_switch &, sc_fxnum_observer * =0); \ 100 sc_ufix(tp, int, int, const sc_fxcast_switch &, sc_fxnum_observer * =0); \ 101 sc_ufix(tp, sc_q_mode, sc_o_mode, const sc_fxcast_switch &, \ 103 sc_ufix(tp, sc_q_mod [all...] |
H A D | sc_fixed.hh | 80 #define DECL_CTORS_T_A(tp) \ 81 sc_fixed(tp, sc_fxnum_observer * =0); \ 82 sc_fixed(tp, const sc_fxcast_switch &, sc_fxnum_observer * =0); 84 #define DECL_CTORS_T_B(tp) \ 85 explicit sc_fixed(tp, sc_fxnum_observer * =0); \ 86 sc_fixed(tp, const sc_fxcast_switch &, sc_fxnum_observer * =0); 116 #define DECL_ASN_OP_T(op, tp) sc_fixed &operator op (tp); 187 #define DECL_CTORS_T_A(tp) \ 188 sc_fixed_fast(tp, sc_fxnum_fast_observe [all...] |
H A D | sc_ufixed.hh | 81 #define DECL_CTORS_T_A(tp) \ 82 sc_ufixed(tp, sc_fxnum_observer * =0); \ 83 sc_ufixed(tp, const sc_fxcast_switch &, sc_fxnum_observer * =0); 85 #define DECL_CTORS_T_B(tp) \ 86 explicit sc_ufixed(tp, sc_fxnum_observer * =0); \ 87 sc_ufixed(tp, const sc_fxcast_switch &, sc_fxnum_observer * =0); 116 #define DECL_ASN_OP_T(op,tp) sc_ufixed &operator op (tp); 187 #define DECL_CTORS_T_A(tp) \ 188 sc_ufixed_fast(tp, sc_fxnum_fast_observe [all...] |
H A D | sc_fxval.hh | 131 #define DECL_BIN_OP_T(op,tp) \ 132 friend const sc_fxval operator op (const sc_fxval &, tp); \ 133 friend const sc_fxval operator op (tp, const sc_fxval &); 189 #define DECL_BIN_FNC_T(fnc, tp) \ 190 friend void fnc (sc_fxval &, const sc_fxval &, tp); \ 191 friend void fnc (sc_fxval &, tp, const sc_fxval &); 227 #define DECL_REL_OP_T(op, tp) \ 228 friend bool operator op (const sc_fxval &, tp); \ 229 friend bool operator op (tp, const sc_fxval &); 264 #define DECL_ASN_OP_T(op, tp) sc_fxva [all...] |
H A D | sc_fxnum.hh | 113 #define DECL_ASN_OP_T(op, tp) \ 114 sc_fxnum_bitref &operator op (tp); 171 #define DECL_ASN_OP_T(op, tp) sc_fxnum_fast_bitref &operator op (tp); 232 #define DECL_ASN_OP_T(tp) \ 233 sc_fxnum_subref &operator = (tp); 255 #define DECL_ASN_OP_T_A(op, tp) \ 256 sc_fxnum_subref &operator op ## = (tp); 272 #define DECL_REL_OP_T(op, tp) \ 273 friend bool operator op (const sc_fxnum_subref &, tp); \ [all...] |
/gem5/ext/systemc/src/sysc/datatypes/bit/ |
H A D | sc_bit.h | 113 #define DEFN_TO_VALUE_T(tp) \ 114 static bool to_value( tp i ) \ 136 #define DEFN_CTOR_T(tp) \ 137 explicit sc_bit( tp a ) \ 176 #define DEFN_ASN_OP_T(op,tp) \ 177 sc_bit& operator op( tp b ) \ 272 #define DEFN_BIN_FUN_T(ret,fun,tp) \ 273 inline ret fun( const sc_bit& a, tp b ) \ 275 inline ret fun( tp b, const sc_bit& a ) \ 361 #define DEFN_TRN_FUN_T(fun,tp) \ [all...] |
H A D | sc_logic.h | 203 #define DEFN_ASN_OP_T(op,tp) \ 204 sc_logic& operator op ( tp v ) \ 321 #define DEFN_BIN_OP_T(ret,op,tp) \ 322 inline ret operator op ( const sc_logic& a, tp b ) \ 324 inline ret operator op ( tp a, const sc_logic& b ) \
|
H A D | sc_lv_base.h | 390 #define DEFN_BITWISE_AND_ASN_OP_T(tp) \ 394 sc_proxy<X>::operator &= ( tp b ) \ 425 #define DEFN_BITWISE_AND_OP_T_A(tp) \ 429 sc_proxy<X>::operator & ( tp b ) const \ 452 #define DEFN_BITWISE_AND_OP_T_B(tp) \ 456 operator & ( tp b, const sc_proxy<X>& px ) \ 492 #define DEFN_BITWISE_OR_ASN_OP_T(tp) \ 496 sc_proxy<X>::operator |= ( tp b ) \ 527 #define DEFN_BITWISE_OR_OP_T_A(tp) \ 531 sc_proxy<X>::operator | ( tp [all...] |
/gem5/src/systemc/ext/dt/bit/ |
H A D | sc_bit.hh | 113 #define DEFN_TO_VALUE_T(tp) \ 114 static bool to_value(tp i) { return to_value((int)i); } 129 #define DEFN_CTOR_T(tp) \ 130 explicit sc_bit(tp a) : m_val(to_value(a)) { sc_deprecated_sc_bit(); } 162 #define DEFN_ASN_OP_T(op, tp) \ 163 sc_bit &operator op(tp b) { return (*this op sc_bit(b)); } 255 #define DEFN_BIN_FUN_T(ret,fun,tp) \ 256 inline ret fun(const sc_bit& a, tp b) { return fun(a, sc_bit(b)); } \ 257 inline ret fun(tp b, const sc_bit &a) { return fun(sc_bit(a), b); } 338 #define DEFN_TRN_FUN_T(fun,tp) \ [all...] |
H A D | sc_logic.hh | 166 #define DEFN_ASN_OP_T(op,tp) \ 168 operator op (tp v) \ 308 #define DEFN_BIN_OP_T(ret,op,tp) \ 310 operator op (const sc_logic &a, tp b) \ 315 operator op (tp a, const sc_logic &b) \
|
H A D | sc_lv_base.hh | 333 #define DEFN_BITWISE_AND_ASN_OP_T(tp) \ 336 sc_proxy<X>::operator &= (tp b) \ 364 #define DEFN_BITWISE_AND_OP_T_A(tp) \ 367 sc_proxy<X>::operator & (tp b) const \ 389 #define DEFN_BITWISE_AND_OP_T_B(tp) \ 392 operator & (tp b, const sc_proxy<X> &px) \ 424 #define DEFN_BITWISE_OR_ASN_OP_T(tp) \ 427 sc_proxy<X>::operator |= (tp b) \ 455 #define DEFN_BITWISE_OR_OP_T_A(tp) \ 458 sc_proxy<X>::operator | (tp [all...] |
H A D | sc_proxy.hh | 483 #define DECL_BITWISE_AND_OP_T(tp) \ 485 inline const sc_lv_base operator & (tp b, const sc_proxy<X> &px); 512 #define DECL_BITWISE_OR_OP_T(tp) \ 514 inline const sc_lv_base operator | (tp a, const sc_proxy<X> &px); 540 #define DECL_BITWISE_XOR_OP_T(tp) \ 542 inline const sc_lv_base operator ^ (tp a, const sc_proxy<X> &px); 567 #define DECL_REL_OP_T(tp) \ 569 inline bool operator == (tp b, const sc_proxy<X> &px); \ 572 inline bool operator != (const sc_proxy<X> &px, tp b); \ 575 inline bool operator != (tp [all...] |
/gem5/tests/test-progs/asmtest/src/riscv/isa/rv64samt/ |
H A D | sysclone_d.S | 93 sd a0, (tp)
|