Searched refs:sc_assert (Results 76 - 100 of 178) sorted by relevance

12345678

/gem5/src/systemc/tests/systemc/datatypes/int/sc_int_base/bitselect/32bit/signed/
H A Dselect.cpp52 sc_assert( By == Bx );
56 sc_assert( (bool) Bx[i] == (j & (1<<i)? 1 : 0) );
58 sc_assert( (bool) By[i] == (j & (1<<i)? 1 : 0) );
/gem5/src/systemc/tests/systemc/datatypes/int/sc_int_base/bitselect/32bit/unsigned/
H A Dselect.cpp52 sc_assert( By == Bx );
56 sc_assert( (bool) Bx[i] == (j & (1<<i)? 1 : 0) );
58 sc_assert( (bool) By[i] == (j & (1<<i)? 1 : 0) );
/gem5/src/systemc/tests/systemc/datatypes/int/sc_int_base/bitselect/64bit/signed/
H A Dselect.cpp52 sc_assert( By == Bx );
56 sc_assert( (bool) Bx[i] == (j & (uint64(1)<<i)? 1 : 0) );
58 sc_assert( (bool) By[i] == (j & (uint64(1)<<i)? 1 : 0) );
/gem5/src/systemc/tests/systemc/datatypes/int/sc_int_base/bitselect/64bit/unsigned/
H A Dselect.cpp52 sc_assert( By == Bx );
56 sc_assert( (bool) Bx[i] == (j & (uint64(1)<<i)? 1 : 0) );
58 sc_assert( (bool) By[i] == (j & (uint64(1)<<i)? 1 : 0) );
/gem5/src/systemc/tests/systemc/bugs/instantiation_detection/
H A Dinstantiation_detection.cpp66 sc_assert( create<sub_module>("sub_module") == NULL );
67 sc_assert( create<sc_in<bool> >("port") == NULL );
68 sc_assert( create<sc_export<sc_signal_in_if<bool> > >("export") == NULL );
69 sc_assert( create<sc_signal<bool> >("signal") == NULL );
107 sc_assert( create<sc_in<bool> >("port") == NULL );
108 sc_assert( create<sc_export<sc_signal_in_if<bool> > >("export") == NULL );
/gem5/src/systemc/tests/systemc/compliance_1666/test205/
H A Dtest205.cpp13 sc_assert(sc_time_stamp() == sc_time(0, SC_NS));
15 sc_assert(sc_time_stamp() == sc_time(3, SC_NS));
23 sc_assert(sc_time_stamp() == sc_time(4, SC_NS));
25 sc_assert(sc_time_stamp() == sc_time(7, SC_NS));
43 sc_assert(sc_time_stamp() == sc_time(8, SC_NS));
45 sc_assert(sc_time_stamp() == sc_time(11, SC_NS));
/gem5/src/systemc/tests/systemc/misc/unit/data/general/subvector/stab2/
H A Dstab2.cpp54 sc_assert( x[i] == ((i & 1) ^ ((i >> 1) & 1)) );
60 // sc_assert( y[i] == char((i & 1) ^ ((i >> 2) & 1)) );
61 sc_assert( y[i] == ((i & 1) ^ ((i >> 2) & 1)) );
67 sc_assert( (bool) z[i] == (((i >> 2) & 1) ^ ((i >> 1) & 1)) );
73 sc_assert( (bool) w[i] == (((i >> 3) & 1) ^ ((i >> 1) & 1)) );
117 sc_assert( foo[j] == x[i + j] );
118 sc_assert( foo1[224 - j] == x[i + j] );
119 sc_assert( foo2.range(449,225) == foo1 );
120 sc_assert( foo2.range(224,0) == foo );
125 sc_assert( foo
[all...]
/gem5/src/systemc/tests/systemc/1666-2011-compliance/odds_and_ends/
H A Dodds_and_ends.cpp122 sc_assert( sc_time_stamp() == sc_time(10, SC_NS) || sc_time_stamp() == sc_time(20, SC_NS) );
129 sc_assert( sc_time_stamp() == sc_time(10, SC_NS) || sc_time_stamp() == sc_time(20, SC_NS) );
144 sc_assert( sc_time_stamp() == sc_time(105, SC_NS) );
145 sc_assert( !sc_is_unwinding() );
151 sc_assert( sc_time_stamp() == sc_time(125, SC_NS) );
152 sc_assert( !sc_is_unwinding() );
162 if (t3a.valid()) sc_assert( t3a.terminated() );
163 if (t3b.valid()) sc_assert( t3b.terminated() );
173 sc_assert( sc_time_stamp() == sc_time(10, SC_NS) );
180 sc_assert( sc_time_stam
[all...]
/gem5/src/systemc/tests/systemc/datatypes/int/string_conversion/test01/
H A Dtest01.cpp56 sc_assert( b == a );
61 sc_assert( b == a );
66 // sc_assert( b == a );
71 sc_assert( b == a );
76 sc_assert( b == a );
81 // sc_assert( b == a );
86 sc_assert( b == a );
91 sc_assert( b == a );
96 // sc_assert( b == a );
101 sc_assert(
[all...]
/gem5/src/systemc/tests/systemc/datatypes/int/string_conversion/test02/
H A Dtest02.cpp56 sc_assert( b == a );
61 sc_assert( b == a );
66 // sc_assert( b == a );
71 sc_assert( b == a );
76 sc_assert( b == a );
81 // sc_assert( b == a );
86 sc_assert( b == a );
91 sc_assert( b == a );
96 // sc_assert( b == a );
101 sc_assert(
[all...]
/gem5/src/systemc/tests/systemc/compliance_1666/test235a/
H A Dtest235a.cpp58 sc_assert(p1.size() == 1);
59 sc_assert(p2.size() == 1);
60 sc_assert(p3.size() == 2);
61 sc_assert(p4.size() == 3);
62 sc_assert(p5.size() == 0);
63 sc_assert(p6.size() == 1);
64 sc_assert(p7.size() == 2);
65 sc_assert(p8.size() == 0);
66 sc_assert(p9.size() == 1);
67 sc_assert(p1
[all...]
/gem5/src/systemc/tests/systemc/utils/sc_report/test05/
H A Dcatch_actions.cpp55 sc_assert( !(actions & SC_THROW) );
57 sc_assert( actions & SC_THROW );
77 sc_assert(last_report_thrown == false);
81 sc_assert(act == SC_DISPLAY);
82 sc_assert(sc_report_handler::get_catch_actions() == (SC_DISPLAY | SC_LOG));
/gem5/src/systemc/tests/systemc/compliance_1666/test001/
H A Dtest001.cpp12 sc_assert(std::string(this->kind()) == "sc_module");
22 sc_assert(std::string(basename()) == "mod0");
38 sc_assert(sc_get_current_process_handle().proc_kind() == SC_METHOD_PROC_);
42 sc_assert(sc_get_current_process_handle().proc_kind() == SC_THREAD_PROC_);
49 sc_assert(std::string(sc_get_current_process_handle().name()) == "top.mod0.g");
78 void p2() { int i; ch.read(i); sc_assert(i == 333); }
96 sc_assert(std::string(sc_get_current_process_handle().get_process_object()->basename()) == "action");
131 sc_assert(s[0] == '_');
133 sc_assert(!s.empty());
136 sc_assert(charse
[all...]
/gem5/ext/systemc/src/sysc/kernel/
H A Dsc_except.cpp41 sc_assert( m_proc_p );
54 sc_assert( m_proc_p );
96 sc_assert( false && "Unhandled kill/reset, should never happen" );
/gem5/src/systemc/tests/systemc/1666-2011-compliance/late_reset_bug/
H A Dlate_reset_bug.cpp71 sc_assert( count == 1 ); // FAILS !!!!!!
84 sc_assert( top.f0 );
85 sc_assert( top.f1 );
/gem5/src/systemc/tests/systemc/1666-2011-compliance/living_dead_bug/
H A Dliving_dead_bug.cpp70 sc_assert( false ); // FAILS!!!!!!
82 sc_assert( top.f0 );
83 sc_assert( top.f1 );
/gem5/src/systemc/tests/systemc/1666-2011-compliance/mixed_child_procs/
H A Dmixed_child_procs.cpp138 default: sc_assert(false); break;
149 default: sc_assert(false); break;
158 default: sc_assert(false); break;
176 case 1: sc_assert(sc_time_stamp() == sc_time(10, SC_NS)); f1[i]=1; break;
179 default: sc_assert(false); break;
195 sc_assert( top.index == top.n );
199 sc_assert( top.f0[i] );
200 sc_assert( top.f1[i] );
204 sc_assert( top.f2[i] );
205 sc_assert( to
[all...]
/gem5/src/systemc/tests/systemc/misc/unit/data/general/subvector/stab1/
H A Dstab1.cpp54 sc_assert( x[i] == ((i & 1) ^ ((i >> 1) & 1)) );
60 // sc_assert( y[i] == char((i & 1) ^ ((i >> 2) & 1)) );
61 sc_assert( y[i] == ((i & 1) ^ ((i >> 2) & 1)) );
67 sc_assert( (bool) z[i] == (((i >> 2) & 1) ^ ((i >> 1) & 1)) );
73 sc_assert( (bool) w[i] == (((i >> 3) & 1) ^ ((i >> 1) & 1)) );
115 sc_assert( foo[j] == x[i + j] );
116 sc_assert( foo1[224 - j] == x[i + j] );
124 sc_assert( bar[j] == y[i + j] );
125 sc_assert( bar1[41 - j] == y[i + j] );
133 sc_assert( ba
[all...]
/gem5/src/systemc/tests/systemc/1666-2011-compliance/virtual_bind/
H A Dvirtual_bind.cpp60 sc_assert(false);
80 sc_assert(false);
149 sc_assert( top.chan.f1 );
150 sc_assert( top.child->chan.f1 );
151 sc_assert( top.child->p.f2 );
152 sc_assert( top.child->xp.f3 );
/gem5/src/systemc/tests/systemc/datatypes/int/arith/arith01/
H A Darith01.cpp73 sc_assert(z == v31.q);
96 sc_assert(y == v.q);
103 sc_assert(y == v.q);
110 sc_assert(y == v.q);
117 sc_assert(y == v.q);
124 sc_assert(y == v.q);
/gem5/src/systemc/tests/systemc/1666-2011-compliance/sc_vector/
H A Dsc_vector.cpp70 sc_assert( weird_arg == "The Creator" || weird_arg == "WeIrD_aRg" );
206 sc_assert( ports.size() == static_cast<unsigned int>(N) );
207 sc_assert( kids.size() == static_cast<unsigned int>(N) );
214 sc_assert( kids[i].p.get_interface() == ports[i].get_interface() );
228 sc_assert( &*(assembly.begin()) == &(*initiator_vec.begin()).port );
229 // sc_assert( &*(assembly.end()) == &(*initiator_vec.end()).port );
230 sc_assert( assembly.size() == initiator_vec.size() );
233 sc_assert( &assembly[i] == &initiator_vec[i].port );
234 sc_assert( &assembly.at(i) == &initiator_vec[i].port );
245 sc_assert( element
[all...]
/gem5/src/systemc/tests/systemc/compliance_1666/test219/
H A Dtest219.cpp47 sc_assert(sc_time_stamp() == sc_time(10, SC_NS));
52 sc_assert(sc_time_stamp() == sc_time(15, SC_NS));
73 sc_assert(top.m->prim.count == 1);
74 sc_assert(top.m->ME_count == 1);
/gem5/src/systemc/tests/systemc/datatypes/int/sc_int/concat/signed/32bit/
H A Dconcat.cpp51 sc_assert( a_si32 == b_si32 );
/gem5/src/systemc/tests/systemc/datatypes/int/sc_int/concat/signed/64bit/
H A Dconcat.cpp51 sc_assert( a_si64 == b_si64 );
/gem5/src/systemc/tests/systemc/datatypes/int/sc_int/concat/unsigned/32bit/
H A Dconcat.cpp51 sc_assert( a_su32 == b_su32 );

Completed in 21 milliseconds

12345678