Lines Matching refs:std
99 wif_trace(const std::string& name_, const std::string& wif_name_);
116 const std::string name; // Name of the variable
117 const std::string wif_name; // Name of the variable in WIF file
123 wif_trace::wif_trace(const std::string& name_,
124 const std::string& wif_name_)
135 std::stringstream ss;
142 std::fprintf( f, "declare %s \"%s\" %s ",
146 std::fprintf( f, "0 %d ", bit_width - 1 );
148 std::fprintf( f, "variable ;\n" );
149 std::fprintf( f, "start_trace %s ;\n", wif_name.c_str() );
170 const std::string& name_,
171 const std::string& wif_name_,
184 const std::string& name_,
185 const std::string& wif_name_,
227 std::fprintf(f, "assign %s \"%s\" ;\n", wif_name.c_str(), buf);
236 const std::string& name_,
237 const std::string& wif_name_,
250 const std::string& name_,
251 const std::string& wif_name_,
293 std::fprintf(f, "assign %s \"%s\" ;\n", wif_name.c_str(), buf);
305 const std::string& name_,
306 const std::string& wif_name_ );
317 const std::string& name_,
318 const std::string& wif_name_ )
335 std::fprintf( f, "assign %s \'1\' ;\n", wif_name.c_str() );
337 std::fprintf( f, "assign %s \'0\' ;\n", wif_name.c_str() );
347 const std::string& name_,
348 const std::string& wif_name_);
358 const std::string& name_,
359 const std::string& wif_name_)
374 std::fprintf(f, "assign %s \'1\' ;\n", wif_name.c_str());
376 std::fprintf(f, "assign %s \'0\' ;\n", wif_name.c_str());
386 const std::string& name_,
387 const std::string& wif_name_);
398 const std::string& name_,
399 const std::string& wif_name_)
416 std::fprintf(f, "assign %s \'", wif_name.c_str());
418 std::fputc(wif_char, f);
419 std::fprintf(f,"\' ;\n");
429 const std::string& name_,
430 const std::string& wif_name_);
442 const std::string& name_,
443 const std::string& wif_name_)
457 static std::vector<char> buf(1024);
458 typedef std::vector<char>::size_type size_t;
462 std::vector<char>( sz ).swap( buf ); // resize without copying values
470 std::fprintf(f, "assign %s \"%s\" ;\n", wif_name.c_str(), &buf[0]);
485 const std::string& name_,
486 const std::string& wif_name_);
498 const std::string& name_,
499 const std::string& wif_name_)
513 static std::vector<char> buf(1024);
514 typedef std::vector<char>::size_type size_t;
518 std::vector<char>( sz ).swap( buf ); // resize without copying values
527 std::fprintf(f, "assign %s \"%s\" ;\n", wif_name.c_str(), &buf[0]);
541 const std::string& name_,
542 const std::string& wif_name_);
555 const std::string& name_,
556 const std::string& wif_name_)
577 std::fprintf(f, "assign %s \"%s\" ;\n", wif_name.c_str(), buf);
592 const std::string& name_,
593 const std::string& wif_name_);
605 const std::string& name_,
606 const std::string& wif_name_)
628 std::fprintf(f, "assign %s \"%s\" ;\n", wif_name.c_str(), buf);
645 const std::string& name_,
646 const std::string& wif_name_ );
658 const std::string& name_,
659 const std::string& wif_name_ )
675 std::fprintf( f, "assign %s %f ; \n", wif_name.c_str(), object.to_double() );
686 const std::string& name_,
687 const std::string& wif_name_ );
700 const std::string& name_,
701 const std::string& wif_name_ )
717 std::fprintf( f, "assign %s %f ; \n", wif_name.c_str(), object.to_double() );
728 const std::string& name_,
729 const std::string& wif_name_ );
742 const std::string& name_,
743 const std::string& wif_name_ )
764 static std::vector<char> buf(1024);
765 typedef std::vector<char>::size_type size_t;
769 std::vector<char>( sz ).swap( buf ); // resize without copying values
779 std::fprintf( f, "assign %s \"%s\" ;\n", wif_name.c_str(), &buf[0]);
796 const std::string& name_,
797 const std::string& wif_name_ );
811 const std::string& name_,
812 const std::string& wif_name_ )
833 static std::vector<char> buf(1024);
834 typedef std::vector<char>::size_type size_t;
838 std::vector<char>( sz ).swap( buf ); // resize without copying values
848 std::fprintf( f, "assign %s \"%s\" ;\n", wif_name.c_str(), &buf[0]);
864 const std::string& name_,
865 const std::string& wif_name_, int width_);
877 const std::string& name_,
878 const std::string& wif_name_,
917 std::fprintf(f, "assign %s \"%s\" ;\n", wif_name.c_str(), buf);
927 const std::string& name_,
928 const std::string& wif_name_,
942 const std::string& name_,
943 const std::string& wif_name_,
981 std::fprintf(f, "assign %s \"%s\" ;\n", wif_name.c_str(), buf);
990 const std::string& name_,
991 const std::string& wif_name_,
1004 const std::string& name_,
1005 const std::string& wif_name_,
1043 std::fprintf(f, "assign %s \"%s\" ;\n", wif_name.c_str(), buf);
1052 const std::string& name_,
1053 const std::string& wif_name_,
1066 const std::string& name_,
1067 const std::string& wif_name_,
1106 std::fprintf(f, "assign %s \"%s\" ;\n", wif_name.c_str(), buf);
1115 const std::string& name_,
1116 const std::string& wif_name_,
1129 const std::string& name_,
1130 const std::string& wif_name_,
1169 std::fprintf(f, "assign %s \"%s\" ;\n", wif_name.c_str(), buf);
1178 const std::string& name_,
1179 const std::string& wif_name_,
1192 const std::string& name_,
1193 const std::string& wif_name_,
1231 std::fprintf(f, "assign %s \"%s\" ;\n", wif_name.c_str(), buf);
1240 const std::string& name_,
1241 const std::string& wif_name_,
1254 const std::string& name_,
1255 const std::string& wif_name_,
1293 std::fprintf(f, "assign %s \"%s\" ;\n", wif_name.c_str(), buf);
1302 const std::string& name_,
1303 const std::string& wif_name_,
1316 const std::string& name_,
1317 const std::string& wif_name_,
1355 std::fprintf(f, "assign %s \"%s\" ;\n", wif_name.c_str(), buf);
1365 const std::string& name_,
1366 const std::string& wif_name_);
1376 const std::string& name_,
1377 const std::string& wif_name_)
1391 std::fprintf(f,"assign %s %f ; \n", wif_name.c_str(), object);
1400 const std::string& name_,
1401 const std::string& wif_name_);
1411 const std::string& name_,
1412 const std::string& wif_name_)
1426 std::fprintf(f,"assign %s %f ; \n", wif_name.c_str(), object);
1436 const std::string& name_,
1437 const std::string& wif_name_,
1450 std::string type_name;
1457 const std::string& name_,
1458 const std::string& wif_name_,
1472 std::fprintf(f, "type scalar \"%s\" enum ", wif_type);
1475 std::fprintf(f, "\"%s\", ", literals[i]);
1476 std::fprintf(f, "\"SC_WIF_UNDEF\" ;\n");
1478 std::fprintf(f, "declare %s \"%s\" \"%s\" ",
1480 std::fprintf(f, "variable ;\n");
1481 std::fprintf(f, "start_trace %s ;\n", wif_name.c_str());
1506 std::fprintf( f, "assign %s \"%s\" ;\n", wif_name.c_str(), lit );
1523 const std::string& name_,
1524 const std::string& wif_name_,
1533 std::fprintf( f,
1576 std::fprintf(fp, "init ;\n\n");
1579 if (timescale_unit == 1e-15) std::sprintf(buf,"0");
1580 else if(timescale_unit == 1e-14) std::sprintf(buf,"1");
1581 else if(timescale_unit == 1e-13) std::sprintf(buf,"2");
1582 else if(timescale_unit == 1e-12) std::sprintf(buf,"3");
1583 else if(timescale_unit == 1e-11) std::sprintf(buf,"4");
1584 else if(timescale_unit == 1e-10) std::sprintf(buf,"5");
1585 else if(timescale_unit == 1e-9) std::sprintf(buf,"6");
1586 else if(timescale_unit == 1e-8) std::sprintf(buf,"7");
1587 else if(timescale_unit == 1e-7) std::sprintf(buf,"8");
1588 else if(timescale_unit == 1e-6) std::sprintf(buf,"9");
1589 else if(timescale_unit == 1e-5) std::sprintf(buf,"10");
1590 else if(timescale_unit == 1e-4) std::sprintf(buf,"11");
1591 else if(timescale_unit == 1e-3) std::sprintf(buf,"12");
1592 else if(timescale_unit == 1e-2) std::sprintf(buf,"13");
1593 else if(timescale_unit == 1e-1) std::sprintf(buf,"14");
1594 else if(timescale_unit == 1e0) std::sprintf(buf,"15");
1595 else if(timescale_unit == 1e1) std::sprintf(buf,"16");
1596 else if(timescale_unit == 1e2) std::sprintf(buf,"17");
1597 std::fprintf(fp,"header %s \"%s\" ;\n\n", buf, sc_version());
1599 std::fprintf(fp, "comment \"ASCII WIF file produced on date: %s\" ;\n"
1603 std::fprintf(fp, "comment \"Created by %s\" ;\n", sc_version());
1605 std::fprintf(fp, "comment \"Convert this file to binary WIF format using a2wif\" ;\n\n");
1608 std::fprintf(fp, "type scalar \"BIT\" enum '0', '1' ;\n");
1609 std::fprintf(fp, "type scalar \"MVL\" enum '0', '1', 'X', 'Z', '?' ;\n");
1610 std::fprintf(fp, "\n");
1624 std::sprintf(buf,
1646 wif_trace_file::trace( const tp& object_, const std::string& name_ ) \
1661 wif_trace_file::trace(const sc_dt::tp& object_, const std::string& name_) \
1688 const std::string& name_, \
1701 const std::string& name_, \
1728 const std::string& name_, \
1744 const std::string& name_,
1756 const std::string& name_ )
1763 const std::string& name_ )
1770 wif_trace_file::write_comment(const std::string& comment)
1774 std::fprintf(fp, "comment \"%s\" ;\n", comment.c_str());
1813 std::fprintf(fp, "delta_time %u%09u ;\n", delta_units_high,
1817 std::fprintf(fp, "delta_time %u ;\n", delta_units_low);
1828 std::fprintf(fp, "\n"); // Put another newline
1840 wif_trace_file::create_wif_name(std::string* ptr_to_str)
1847 std::string
1851 std::sprintf( buf, "O%d", wif_name_index ++ );