Lines Matching defs:object
254 object( object_ ),
262 std::fprintf( f, "%s", compose_line( object.to_string() ).c_str() );
263 old_value = object;
267 { return !(object == old_value); }
270 { bit_width = object.length(); }
274 const T& object;
284 const sc_dt::sc_bv_base& object, const std::string& name)
286 traceT(object,name);
292 const sc_dt::sc_lv_base& object, const std::string& name)
294 traceT(object,name);
308 const bool& object;
315 : vcd_trace(name_, vcd_name_), object(object_), old_value(object_)
324 return object != old_value;
330 if (object == true) std::fputc('1', f);
335 old_value = object;
348 const sc_dt::sc_bit& object;
355 : vcd_trace(name, vcd_name), object( object_ ), old_value( object_ )
364 return object != old_value;
370 if (object == true) std::fputc('1', f);
375 old_value = object;
389 const sc_dt::sc_logic& object;
397 : vcd_trace(name_, vcd_name_), object(object_), old_value(object_)
407 return object != old_value;
415 out_char = map_sc_logic_state_to_vcd_state(object.to_char());
420 old_value = object;
428 vcd_sc_unsigned_trace(const sc_dt::sc_unsigned& object,
436 const sc_dt::sc_unsigned& object;
444 : vcd_trace(name_, vcd_name_), object(object_), old_value(object_.length())
448 old_value = object;
454 return object != old_value;
463 if ( compdata.size() < (size_t)object.length() ) {
464 size_t sz = ( (size_t)object.length() + 4096 ) & (~(size_t)(4096-1));
470 for (int bitindex = object.length() - 1; bitindex >= 0; --bitindex) {
471 *rawdata_ptr++ = "01"[object[bitindex].to_bool()];
477 old_value = object;
483 bit_width = object.length();
491 vcd_sc_signed_trace(const sc_dt::sc_signed& object,
499 const sc_dt::sc_signed& object;
507 : vcd_trace(name_, vcd_name_), object(object_), old_value(object_.length())
510 old_value = object;
516 return object != old_value;
525 if ( compdata.size() < (size_t)object.length() ) {
526 size_t sz = ( (size_t)object.length() + 4096 ) & (~(size_t)(4096-1));
532 for (int bitindex = object.length() - 1; bitindex >= 0; --bitindex) {
533 *rawdata_ptr++ = "01"[object[bitindex].to_bool()];
539 old_value = object;
545 bit_width = object.length();
552 vcd_sc_uint_base_trace(const sc_dt::sc_uint_base& object,
560 const sc_dt::sc_uint_base& object;
569 : vcd_trace(name_, vcd_name_), object(object_), old_value(object_.length())
573 old_value = object;
579 return object != old_value;
589 for (bitindex = object.length()-1; bitindex >= 0; --bitindex) {
590 *rawdata_ptr++ = "01"[object[bitindex].to_bool()];
596 old_value = object;
602 bit_width = object.length();
610 vcd_sc_int_base_trace(const sc_dt::sc_int_base& object,
618 const sc_dt::sc_int_base& object;
626 : vcd_trace(name_, vcd_name_), object(object_), old_value(object_.length())
629 old_value = object;
635 return object != old_value;
645 for (bitindex = object.length()-1; bitindex >= 0; --bitindex) {
646 *rawdata_ptr++ = "01"[object[bitindex].to_bool()];
652 old_value = object;
658 bit_width = object.length();
668 vcd_sc_fxval_trace( const sc_dt::sc_fxval& object,
676 const sc_dt::sc_fxval& object;
685 object( object_ ), old_value( object_ )
694 return object != old_value;
700 std::fprintf( f, "r%.16g %s", object.to_double(), vcd_name.c_str() );
701 old_value = object;
710 vcd_sc_fxval_fast_trace( const sc_dt::sc_fxval_fast& object,
718 const sc_dt::sc_fxval_fast& object;
728 object( object_ ), old_value( object_ )
737 return object != old_value;
743 std::fprintf( f, "r%.16g %s", object.to_double(), vcd_name.c_str() );
744 old_value = object;
753 vcd_sc_fxnum_trace( const sc_dt::sc_fxnum& object,
762 const sc_dt::sc_fxnum& object;
771 object( object_ ),
778 old_value = object;
784 return object != old_value;
793 if ( compdata.size() < (size_t)object.wl() ) {
794 size_t sz = ( (size_t)object.wl() + 4096 ) & (~(size_t)(4096-1));
800 for(int bitindex = object.wl() - 1; bitindex >= 0; -- bitindex )
802 *rawdata_ptr ++ = "01"[object[bitindex]];
808 old_value = object;
814 bit_width = object.wl();
823 vcd_sc_fxnum_fast_trace( const sc_dt::sc_fxnum_fast& object,
832 const sc_dt::sc_fxnum_fast& object;
842 object( object_ ),
849 old_value = object;
855 return object != old_value;
864 if ( compdata.size() < (size_t)object.wl() ) {
865 size_t sz = ( (size_t)object.wl() + 4096 ) & (~(size_t)(4096-1));
871 for(int bitindex = object.wl() - 1; bitindex >= 0; -- bitindex )
873 *rawdata_ptr ++ = "01"[object[bitindex]];
879 old_value = object;
885 bit_width = object.wl();
893 vcd_unsigned_int_trace(const unsigned& object,
901 const unsigned& object;
912 : vcd_trace(name_, vcd_name_), object(object_), old_value( object_ ),
925 return object != old_value;
937 if ((object & mask) != object) {
945 rawdata[bitindex] = (object & bit_mask)? '1' : '0';
952 old_value = object;
959 vcd_unsigned_short_trace(const unsigned short& object,
967 const unsigned short& object;
978 : vcd_trace(name_, vcd_name_), object(object_), old_value(object_), mask(0xffff)
990 return object != old_value;
1002 if ((object & mask) != object) {
1010 rawdata[bitindex] = (object & bit_mask)? '1' : '0';
1017 old_value = object;
1024 vcd_unsigned_char_trace(const unsigned char& object,
1032 const unsigned char& object;
1043 : vcd_trace(name_, vcd_name_), object(object_), old_value(object_), mask(0xff)
1053 return object != old_value;
1064 if ((object & mask) != object) {
1072 rawdata[bitindex] = (object & bit_mask)? '1' : '0';
1079 old_value = object;
1086 vcd_unsigned_long_trace(const unsigned long& object,
1094 const unsigned long& object;
1105 : vcd_trace(name_, vcd_name_), object(object_), old_value(object_),
1118 return object != old_value;
1129 if ((object & mask) != object) {
1137 rawdata[bitindex] = (object & bit_mask)? '1' : '0';
1144 old_value = object;
1151 vcd_signed_int_trace(const int& object,
1159 const int& object;
1169 : vcd_trace(name_, vcd_name_), object(object_), old_value(object_),
1181 return object != old_value;
1192 if (((unsigned) object & mask) != (unsigned) object) {
1200 rawdata[bitindex] = (object & bit_mask)? '1' : '0';
1207 old_value = object;
1214 vcd_signed_short_trace(const short& object,
1222 const short& object;
1233 : vcd_trace(name_, vcd_name_), object(object_), old_value(object_), mask(0xffff)
1244 return object != old_value;
1255 if (((unsigned short) object & mask) != (unsigned short) object) {
1263 rawdata[bitindex] = (object & bit_mask)? '1' : '0';
1270 old_value = object;
1277 vcd_signed_char_trace(const char& object,
1285 const char& object;
1295 : vcd_trace(name_, vcd_name_), object(object_), old_value(object_), mask(0xff)
1306 return object != old_value;
1317 if (((unsigned char) object & mask) != (unsigned char) object) {
1325 rawdata[bitindex] = (object & bit_mask)? '1' : '0';
1332 old_value = object;
1339 vcd_int64_trace(const sc_dt::int64& object,
1347 const sc_dt::int64& object;
1357 : vcd_trace(name_, vcd_name_), object(object_), old_value(object_),
1368 return object != old_value;
1379 if (((sc_dt::uint64) object & mask) != (sc_dt::uint64) object)
1391 rawdata[bitindex] = (object & bit_mask)? '1' : '0';
1398 old_value = object;
1406 vcd_uint64_trace(const sc_dt::uint64& object,
1414 const sc_dt::uint64& object;
1424 : vcd_trace(name_, vcd_name_), object(object_), old_value(object_),
1435 return object != old_value;
1446 if ((object & mask) != object)
1458 rawdata[bitindex] = (object & bit_mask)? '1' : '0';
1465 old_value = object;
1473 vcd_signed_long_trace(const long& object,
1481 const long& object;
1491 : vcd_trace(name_, vcd_name_), object(object_), old_value(object_),
1503 return object != old_value;
1514 if (((unsigned long) object & mask) != (unsigned long) object) {
1522 rawdata[bitindex] = (object & bit_mask)? '1' : '0';
1529 old_value = object;
1537 vcd_float_trace(const float& object,
1544 const float& object;
1551 : vcd_trace(name_, vcd_name_), object(object_)
1555 old_value = object;
1560 return object != old_value;
1565 std::fprintf(f, "r%.16g %s", object, vcd_name.c_str());
1566 old_value = object;
1573 vcd_double_trace(const double& object,
1580 const double& object;
1587 : vcd_trace(name_, vcd_name_), object(object_), old_value(object_)
1595 return object != old_value;
1600 std::fprintf(f, "r%.16g %s", object, vcd_name.c_str());
1601 old_value = object;
1617 const unsigned& object;
1629 : vcd_trace(name_, vcd_name_), object(object_), old_value(object_),
1655 return object != old_value;
1665 if ((object & mask) != object) {
1672 rawdata[bitindex] = (object & bit_mask)? '1' : '0';
1679 old_value = object;