Lines Matching refs:std
58 std::string
59 cleanName(std::string name)
75 std::string _vcdName;
117 printVal(std::ostream &os, const std::string &rep)
123 os << rep << vcdName() << std::endl;;
127 vcdName() << std::endl;
136 void vcdName(const std::string &vcd_name) { _vcdName = vcd_name; }
137 const std::string &vcdName() { return _vcdName; }
138 virtual std::string vcdType() { return "wire"; }
140 virtual void output(std::ostream &os) = 0;
144 VcdTraceScope::addValue(const std::string &name, VcdTraceValBase *value)
147 if (pos == std::string::npos) {
150 std::string sname = name.substr(0, pos);
159 VcdTraceScope::output(const std::string &name, std::ostream &os)
161 os << "$scope module " << name << " $end" << std::endl;
164 const std::string &name = p.first;
169 std::string msg = csprintf("'%s' has 0 bits", name);
176 std::string clean_name = cleanName(name);
189 os << "$upscope $end" << std::endl;
198 VcdTraceVal(const T* t, const std::string &vcd_name, int width) :
205 std::string
208 std::string name(_nextName);
229 stream() << "$date" << std::endl;
233 stream() << std::put_time(p_tm, " %b %d, %Y %H:%M:%S\n");
234 stream() << "$end" << std::endl << std::endl;
237 stream() << "$version" << std::endl;
238 stream() << " " << ::sc_core::sc_version() << std::endl;
239 stream() << "$end" << std::endl << std::endl;
242 stream() << "$timescale" << std::endl;
244 std::endl;
245 stream() << "$end" << std::endl << std::endl;
252 stream() << "$enddefinitions $end" << std::endl << std::endl;
256 std::string timedump_comment =
265 stream() << "$dumpvars" << std::endl;
268 stream() << "$end" << std::endl << std::endl;
322 stream() << std::endl;
331 output(std::ostream &os) override
338 VcdTraceFile::addTraceVal(const bool *v, const std::string &name)
349 std::string vcdType() override { return "real"; }
352 output(std::ostream &os) override
359 VcdTraceFile::addTraceVal(const float *v, const std::string &name)
364 VcdTraceFile::addTraceVal(const double *v, const std::string &name)
375 output(std::ostream &os) override
386 VcdTraceFile::addTraceVal(const sc_dt::sc_logic *v, const std::string &name)
405 output(std::ostream &os) override
407 std::string str;
420 const std::string &name)
426 const std::string &name)
432 VcdTraceFile::addTraceVal(const sc_dt::sc_signed *v, const std::string &name)
438 const std::string &name)
457 output(std::ostream &os) override
464 VcdTraceFile::addTraceVal(const sc_dt::sc_bv_base *v, const std::string &name)
469 VcdTraceFile::addTraceVal(const sc_dt::sc_lv_base *v, const std::string &name)
480 std::string vcdType() override { return "real"; }
483 output(std::ostream &os) override
491 VcdTraceFile::addTraceVal(const sc_dt::sc_fxval *v, const std::string &name)
497 const std::string &name)
509 output(std::ostream &os) override
511 std::string str;
523 VcdTraceFile::addTraceVal(const sc_dt::sc_fxnum *v, const std::string &name)
529 const std::string &name)
539 std::string vcdType() override { return "event"; }
542 output(std::ostream &os) override
547 os << std::endl;
552 VcdTraceFile::addTraceVal(const sc_core::sc_event *v, const std::string &name)
565 std::string vcdType() override { return "time"; }
575 output(std::ostream &os) override
588 VcdTraceFile::addTraceVal(const sc_core::sc_time *v, const std::string &name)
600 output(std::ostream &os) override
622 VcdTraceFile::addTraceVal(const unsigned char *v, const std::string &name,
628 VcdTraceFile::addTraceVal(const char *v, const std::string &name, int width)
633 VcdTraceFile::addTraceVal(const unsigned short *v, const std::string &name,
639 VcdTraceFile::addTraceVal(const short *v, const std::string &name, int width)
644 VcdTraceFile::addTraceVal(const unsigned int *v, const std::string &name,
650 VcdTraceFile::addTraceVal(const int *v, const std::string &name, int width)
655 VcdTraceFile::addTraceVal(const unsigned long *v, const std::string &name,
661 VcdTraceFile::addTraceVal(const long *v, const std::string &name, int width)
667 VcdTraceFile::addTraceVal(const sc_dt::int64 *v, const std::string &name,
673 VcdTraceFile::addTraceVal(const sc_dt::uint64 *v, const std::string &name,
680 VcdTraceFile::addTraceVal(const unsigned int *v, const std::string &name,
695 VcdTraceFile::writeComment(const std::string &comment)
697 stream() << "$comment" << std::endl;
698 stream() << comment << std::endl;
699 stream() << "$end" << std::endl << std::endl;