/gem5/src/systemc/tests/systemc/misc/user_guide/chpt3.2/ |
H A D | main.cpp | 48 sc_signal<char> stream ("ST"); 53 fsm_recognizer fsm("Recog", clk, stream, handshake, found); 54 stimgen chargen("TESTB", clk, stream, handshake);
|
H A D | sg.h | 49 sc_signal<char>& stream; local 57 : stream(STREAM), data_ready(DATA_READY) {
|
H A D | sg.cpp | 53 stream.write(c);
|
/gem5/src/base/ |
H A D | cprintf.cc | 44 Print::Print(std::ostream &stream, const std::string &format) argument 45 : stream(stream), format(format.c_str()), ptr(format.c_str()), cont(false) 47 saved_flags = stream.flags(); 48 saved_fill = stream.fill(); 49 saved_precision = stream.precision(); 50 saved_width = stream.width(); 53 Print::Print(std::ostream &stream, const char *format) argument 54 : stream(stream), forma [all...] |
H A D | cprintf.hh | 49 std::ostream &stream; member in struct:cp::Print 64 Print(std::ostream &stream, const std::string &format); 65 Print(std::ostream &stream, const char *format); 104 format_char(stream, data, fmt); 108 format_integer(stream, data, fmt); 112 format_float(stream, data, fmt); 116 format_string(stream, data, fmt); 120 stream << "<bad format>"; 147 ccprintf(std::ostream &stream, const char *format, const Args &...args) argument 149 cp::Print print(stream, forma 164 std::stringstream stream; local 175 ccprintf(std::ostream &stream, const std::string &format, const Args &...args) argument [all...] |
H A D | inet.cc | 121 stringstream stream; local 122 stream << *this; 123 return stream.str(); 133 operator<<(ostream &stream, const EthAddr &ea) argument 136 ccprintf(stream, "%x:%x:%x:%x:%x:%x", a[0], a[1], a[2], a[3], a[4], a[5]); 137 return stream; 143 stringstream stream; local 144 stream << *this; 145 return stream.str(); 155 operator<<(ostream &stream, cons argument 167 stringstream stream; local 180 operator <<(ostream &stream, const IpNetmask &in) argument 189 stringstream stream; local 201 operator <<(ostream &stream, const IpWithPort &iwp) argument [all...] |
H A D | trace.cc | 151 ccprintf(stream, "%7d: ", when); 154 stream << name << ": "; 156 stream << message; 157 stream.flush();
|
/gem5/util/tlm/examples/common/ |
H A D | report_handler.cc | 56 std::ostream& stream = actions & SC_DISPLAY ? std::cout : std::cerr; local 58 stream << report.get_time(); 61 stream << " (<) "; 63 stream << " (!) "; 65 stream << " (=) "; 68 stream << ": " << report.get_msg_type()
|
/gem5/src/systemc/tests/systemc/misc/user_guide/chpt3.1/ |
H A D | main.cpp | 48 sc_signal<char> stream ("ST"); 53 fsm_recognizer fsm("Recog", clk, stream, handshake, found); 54 stimgen chargen("TESTB", clk, stream, handshake);
|
H A D | sg.h | 49 sc_signal<char>& stream; local 57 : stream(STREAM), data_ready(DATA_READY) {
|
H A D | sg.cpp | 52 stream.write(c);
|
/gem5/src/dev/storage/ |
H A D | disk_image.cc | 89 stream.open(file.c_str(), mode); 90 if (!stream.is_open()) 98 stream.close(); 105 if (!stream.is_open()) 107 stream.seekg(0, ios::end); 108 disk_size = stream.tellg(); 120 if (!stream.is_open()) 123 stream.seekg(offset * SectorSize, ios::beg); 124 if (!stream.good()) 127 streampos pos = stream 222 SafeRead(ifstream &stream, void *data, int count) argument 237 SafeRead(ifstream &stream, T &data) argument 244 SafeReadSwap(ifstream &stream, T &data) argument 305 SafeWrite(ofstream &stream, const void *data, int count) argument 320 SafeWrite(ofstream &stream, const T &data) argument 327 SafeWriteSwap(ofstream &stream, const T &data) argument [all...] |
H A D | disk_image.hh | 75 mutable std::fstream stream; member in class:RawDiskImage 145 void SafeRead(std::ifstream &stream, void *data, int count); 148 void SafeRead(std::ifstream &stream, T &data); 151 void SafeReadSwap(std::ifstream &stream, T &data); 153 void SafeWrite(std::ofstream &stream, const void *data, int count); 156 void SafeWrite(std::ofstream &stream, const T &data); 159 void SafeWriteSwap(std::ofstream &stream, const T &data);
|
/gem5/ext/pybind11/tests/ |
H A D | test_iostream.py | 104 stream = StringIO() 105 with redirect_stdout(stream): 110 assert stream.getvalue() == '' 112 stream = StringIO() 113 with redirect_stdout(stream): 118 assert stream.getvalue() == msg 123 stream = StringIO() 124 with redirect_stderr(stream): 129 assert stream.getvalue() == '' 131 stream [all...] |
/gem5/src/dev/net/ |
H A D | etherdump.cc | 48 : SimObject(p), stream(simout.create(p->file, true)->stream()), 88 stream->write(reinterpret_cast<char *>(&hdr), sizeof(hdr)); 90 stream->flush(); 101 stream->write(reinterpret_cast<char *>(&pkthdr), sizeof(pkthdr)); 102 stream->write(reinterpret_cast<char *>(packet->data), pkthdr.caplen); 103 stream->flush();
|
H A D | etherdump.hh | 50 std::ostream *stream; member in class:EtherDump
|
/gem5/util/systemc/gem5_within_systemc/ |
H A D | sc_logger.hh | 64 std::ostream stream; member in class:Gem5SystemC::Logger
|
H A D | sc_logger.cc | 91 * [oi]stream. It will, therefore, call overflow for every character it 92 * wants to insert into the output stream. Those characters are captured one 123 stream(cuttingStreambuf) 129 stream.flush(); 149 return stream;
|
/gem5/src/base/stats/ |
H A D | text.cc | 100 : mystream(false), stream(NULL), descriptions(false) 104 Text::Text(std::ostream &stream) argument 105 : mystream(false), stream(NULL), descriptions(false) 107 open(stream); 111 : mystream(false), stream(NULL), descriptions(false) 120 assert(stream); 121 delete stream; 128 if (stream) 129 panic("stream already set!"); 132 stream 253 operator ()(ostream &stream, bool oneLine) const argument [all...] |
H A D | text.hh | 60 std::ostream *stream; member in class:Stats::Text 73 Text(std::ostream &stream); 77 void open(std::ostream &stream);
|
/gem5/src/mem/ruby/structures/ |
H A D | Prefetcher.cc | 174 // allocate a new prefetch stream 185 // allocate a new prefetch stream 223 Prefetcher::issueNextPrefetch(Addr address, PrefetchEntry *stream) argument 225 // get our corresponding stream fetcher 226 if (stream == NULL) { 228 stream = getPrefetchEntry(address, index); 231 // if (for some reason), this stream is unallocated, return. 232 if (stream == NULL) { 233 DPRINTF(RubyPrefetcher, "Unallocated stream, returning\n"); 237 // extend this prefetching stream b [all...] |
/gem5/src/systemc/utils/ |
H A D | vcd.cc | 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; 243 stream() << " " << ::sc_core::sc_time::from_value(timeUnitTicks) << 245 stream() << "$end" << std::endl << std::endl; 250 topScope.output("SystemC", stream()); [all...] |
H A D | tracefile.cc | 55 std::ostream &TraceFile::stream() { return *_os->stream(); } function in class:sc_gem5::TraceFile
|
/gem5/src/kern/linux/ |
H A D | events.cc | 108 dumpDmesg(tc, *os->stream()); 121 dumpDmesg(tc, *os->stream());
|
/gem5/src/dev/serial/ |
H A D | terminal.cc | 130 outfile->stream()->setf(ios::unitbuf); 209 stringstream stream; local 210 ccprintf(stream, "==== m5 slave terminal: Terminal %d ====", number); 214 stream << "\r\n"; 216 write((const uint8_t *)stream.str().c_str(), stream.str().size()); 359 outfile->stream()->put((char)c);
|