sc_trace_file.cc revision 12877
12SN/A/*
21762SN/A * Copyright 2018 Google, Inc.
32SN/A *
42SN/A * Redistribution and use in source and binary forms, with or without
52SN/A * modification, are permitted provided that the following conditions are
62SN/A * met: redistributions of source code must retain the above copyright
72SN/A * notice, this list of conditions and the following disclaimer;
82SN/A * redistributions in binary form must reproduce the above copyright
92SN/A * notice, this list of conditions and the following disclaimer in the
102SN/A * documentation and/or other materials provided with the distribution;
112SN/A * neither the name of the copyright holders nor the names of its
122SN/A * contributors may be used to endorse or promote products derived from
132SN/A * this software without specific prior written permission.
142SN/A *
152SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
162SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
172SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
182SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
192SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
202SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
212SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
222SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
232SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
242SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
252SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
262SN/A *
272665Ssaidi@eecs.umich.edu * Authors: Gabe Black
282760Sbinkertn@umich.edu */
292760Sbinkertn@umich.edu
302665Ssaidi@eecs.umich.edu#include "base/logging.hh"
312SN/A#include "systemc/ext/utils/sc_trace_file.hh"
322SN/A
332SN/Anamespace sc_core
342SN/A{
352SN/A
362SN/Asc_trace_file *
372SN/Asc_create_vcd_trace_file(const char *name)
382SN/A{
392SN/A    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
402SN/A    return nullptr;
412SN/A}
424841Ssaidi@eecs.umich.edu
432SN/Avoid
44217SN/Asc_close_vcd_trace_file(sc_trace_file *tf)
452SN/A{
466214Snate@binkert.org    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
472SN/A}
482738Sstever@eecs.umich.edu
49395SN/Avoid
50237SN/Asc_write_comment(sc_trace_file *tf, const std::string &comment)
514000Ssaidi@eecs.umich.edu{
522SN/A    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
53217SN/A}
54502SN/A
55217SN/Avoid
56217SN/Asc_trace(sc_trace_file *, const bool &, const std::string &)
57237SN/A{
58502SN/A    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
59217SN/A}
60217SN/A
616820SLisa.Hsu@amd.comvoid
626820SLisa.Hsu@amd.comsc_trace(sc_trace_file *, const bool *, const std::string &)
636820SLisa.Hsu@amd.com{
646820SLisa.Hsu@amd.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
65217SN/A}
666227Snate@binkert.org
67217SN/Avoid
68217SN/Asc_trace(sc_trace_file *, const float &, const std::string &)
694841Ssaidi@eecs.umich.edu{
704841Ssaidi@eecs.umich.edu    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
714841Ssaidi@eecs.umich.edu}
724841Ssaidi@eecs.umich.edu
73237SN/Avoid
746227Snate@binkert.orgsc_trace(sc_trace_file *, const float *, const std::string &)
75217SN/A{
764841Ssaidi@eecs.umich.edu    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
774841Ssaidi@eecs.umich.edu}
784841Ssaidi@eecs.umich.edu
794841Ssaidi@eecs.umich.eduvoid
80237SN/Asc_trace(sc_trace_file *, const double &, const std::string &)
81237SN/A{
824000Ssaidi@eecs.umich.edu    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
83237SN/A}
84237SN/A
85217SN/Avoid
86217SN/Asc_trace(sc_trace_file *, const double *, const std::string &)
87217SN/A{
88237SN/A    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
895543Ssaidi@eecs.umich.edu}
90217SN/A
915543Ssaidi@eecs.umich.eduvoid
926820SLisa.Hsu@amd.comsc_trace(sc_trace_file *, const sc_dt::sc_logic &, const std::string &)
93217SN/A{
94223SN/A    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
955543Ssaidi@eecs.umich.edu}
96223SN/A
975543Ssaidi@eecs.umich.eduvoid
985543Ssaidi@eecs.umich.edusc_trace(sc_trace_file *, const sc_dt::sc_logic *, const std::string &)
995543Ssaidi@eecs.umich.edu{
1005543Ssaidi@eecs.umich.edu    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
1015543Ssaidi@eecs.umich.edu}
102223SN/A
103223SN/Avoid
1045543Ssaidi@eecs.umich.edusc_trace(sc_trace_file *, const sc_dt::sc_int_base &, const std::string &)
105217SN/A{
106217SN/A    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
1075543Ssaidi@eecs.umich.edu}
108237SN/A
109237SN/Avoid
1105543Ssaidi@eecs.umich.edusc_trace(sc_trace_file *, const sc_dt::sc_int_base *, const std::string &)
111237SN/A{
1125543Ssaidi@eecs.umich.edu    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
1135543Ssaidi@eecs.umich.edu}
1145543Ssaidi@eecs.umich.edu
1155543Ssaidi@eecs.umich.eduvoid
1165543Ssaidi@eecs.umich.edusc_trace(sc_trace_file *, const sc_dt::sc_uint_base &, const std::string &)
117237SN/A{
118217SN/A    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
1192SN/A}
1202SN/A
1212SN/Avoid
122395SN/Asc_trace(sc_trace_file *, const sc_dt::sc_uint_base *, const std::string &)
1232SN/A{
1242SN/A    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
125510SN/A}
126510SN/A
1272SN/Avoid
1282SN/Asc_trace(sc_trace_file *, const sc_dt::sc_signed &, const std::string &)
1295739Snate@binkert.org{
1305739Snate@binkert.org    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
1312SN/A}
132265SN/A
133512SN/Avoid
1342SN/Asc_trace(sc_trace_file *, const sc_dt::sc_signed *, const std::string &)
1355739Snate@binkert.org{
1365739Snate@binkert.org    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
137237SN/A}
1385739Snate@binkert.org
1392SN/Avoid
1402287SN/Asc_trace(sc_trace_file *, const sc_dt::sc_unsigned &, const std::string &)
1412287SN/A{
1422287SN/A    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
1432868Sktlim@umich.edu}
144395SN/A
1452SN/Avoid
1462SN/Asc_trace(sc_trace_file *, const sc_dt::sc_unsigned *, const std::string &)
1472SN/A{
148395SN/A    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
149395SN/A}
1502SN/A
1512SN/Avoid
1522SN/Asc_trace(sc_trace_file *, const sc_dt::sc_bv_base &, const std::string &)
153395SN/A{
1542SN/A    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
155395SN/A}
1562SN/A
1572SN/Avoid
158395SN/Asc_trace(sc_trace_file *, const sc_dt::sc_bv_base *, const std::string &)
1592SN/A{
160395SN/A    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
1612SN/A}
1622SN/A
1632SN/Avoid
164395SN/Asc_trace(sc_trace_file *, const sc_dt::sc_lv_base &, const std::string &)
1652SN/A{
166395SN/A    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
1672SN/A}
168395SN/A
1692SN/Avoid
1702SN/Asc_trace(sc_trace_file *, const sc_dt::sc_lv_base *, const std::string &)
171395SN/A{
172395SN/A    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
1732SN/A}
1742SN/A
1752SN/Avoid
176395SN/Asc_trace(sc_trace_file *, const sc_dt::sc_fxval &, const std::string &)
177395SN/A{
1782SN/A    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
1792SN/A}
1802SN/A
1812SN/Avoid
1822SN/Asc_trace(sc_trace_file *, const sc_dt::sc_fxval *, const std::string &)
1832SN/A{
184395SN/A    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
1852SN/A}
1862SN/A
1872SN/Avoid
1882SN/Asc_trace(sc_trace_file *, const sc_dt::sc_fxval_fast &, const std::string &)
1892SN/A{
1902SN/A    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
1912SN/A}
1922SN/A
193395SN/Avoid
194395SN/Asc_trace(sc_trace_file *, const sc_dt::sc_fxval_fast *, const std::string &)
1952738Sstever@eecs.umich.edu{
1962SN/A    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
1972SN/A}
1982SN/A
1992SN/Avoid
2002SN/Asc_trace(sc_trace_file *, const sc_dt::sc_fxnum &, const std::string &)
201395SN/A{
202395SN/A    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
2032SN/A}
204395SN/A
2052SN/Avoid
206395SN/Asc_trace(sc_trace_file *, const sc_dt::sc_fxnum *, const std::string &)
2072SN/A{
208395SN/A    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
2092738Sstever@eecs.umich.edu}
2102SN/A
2112SN/Avoid
2122SN/Asc_trace(sc_trace_file *, const sc_dt::sc_fxnum_fast &, const std::string &)
2132SN/A{
214395SN/A    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
2152SN/A}
2162SN/A
2175543Ssaidi@eecs.umich.eduvoid
2185543Ssaidi@eecs.umich.edusc_trace(sc_trace_file *, const sc_dt::sc_fxnum_fast *, const std::string &)
219237SN/A{
2202SN/A    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
221237SN/A}
222237SN/A
223237SN/Avoid
224237SN/Asc_trace(sc_trace_file *, const unsigned char &,
225237SN/A         const std::string &, int width)
226237SN/A{
227237SN/A    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
2287491Ssteve.reinhardt@amd.com}
229237SN/A
230937SN/Avoid
231937SN/Asc_trace(sc_trace_file *, const unsigned char *,
232237SN/A         const std::string &, int width)
233237SN/A{
234237SN/A    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
235237SN/A}
2364000Ssaidi@eecs.umich.edu
237304SN/Avoid
238304SN/Asc_trace(sc_trace_file *, const unsigned short &,
239449SN/A         const std::string &, int width)
240449SN/A{
241449SN/A    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
2427491Ssteve.reinhardt@amd.com}
2437491Ssteve.reinhardt@amd.com
2447491Ssteve.reinhardt@amd.comvoid
2457491Ssteve.reinhardt@amd.comsc_trace(sc_trace_file *, const unsigned short *,
2467491Ssteve.reinhardt@amd.com         const std::string &, int width)
2477491Ssteve.reinhardt@amd.com{
2487491Ssteve.reinhardt@amd.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
2497491Ssteve.reinhardt@amd.com}
2507491Ssteve.reinhardt@amd.com
2517491Ssteve.reinhardt@amd.comvoid
2527491Ssteve.reinhardt@amd.comsc_trace(sc_trace_file *, const unsigned int &, const std::string &, int width)
2537823Ssteve.reinhardt@amd.com{
2547491Ssteve.reinhardt@amd.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
2557491Ssteve.reinhardt@amd.com}
256449SN/A
257449SN/Avoid
258449SN/Asc_trace(sc_trace_file *, const unsigned int *, const std::string &, int width)
259449SN/A{
260449SN/A    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
261449SN/A}
262449SN/A
263449SN/Avoid
264449SN/Asc_trace(sc_trace_file *, const unsigned long &,
265237SN/A         const std::string &, int width)
2662SN/A{
2672SN/A    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
268}
269
270void
271sc_trace(sc_trace_file *, const unsigned long *,
272         const std::string &, int width)
273{
274    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
275}
276
277void
278sc_trace(sc_trace_file *, const char &, const std::string &, int width)
279{
280    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
281}
282
283void
284sc_trace(sc_trace_file *, const char *, const std::string &, int width)
285{
286    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
287}
288
289void
290sc_trace(sc_trace_file *, const short &, const std::string &, int width)
291{
292    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
293}
294
295void
296sc_trace(sc_trace_file *, const short *, const std::string &, int width)
297{
298    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
299}
300
301void
302sc_trace(sc_trace_file *, const int &, const std::string &, int width)
303{
304    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
305}
306
307void
308sc_trace(sc_trace_file *, const int *, const std::string &, int width)
309{
310    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
311}
312
313void
314sc_trace(sc_trace_file *, const long &, const std::string &, int width)
315{
316    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
317}
318
319void
320sc_trace(sc_trace_file *, const long *, const std::string &, int width)
321{
322    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
323}
324
325void
326sc_trace(sc_trace_file *, const sc_dt::int64 &, const std::string &, int width)
327{
328    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
329}
330
331void
332sc_trace(sc_trace_file *, const sc_dt::int64 *, const std::string &, int width)
333{
334    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
335}
336
337void
338sc_trace(sc_trace_file *, const sc_dt::uint64 &,
339         const std::string &, int width)
340{
341    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
342}
343
344void
345sc_trace(sc_trace_file *, const sc_dt::uint64 *,
346         const std::string &, int width)
347{
348    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
349}
350
351void
352sc_trace(sc_trace_file *, const sc_signal_in_if<char> &,
353         const std::string &, int width)
354{
355    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
356}
357
358void
359sc_trace(sc_trace_file *, const sc_signal_in_if<short> &,
360         const std::string &, int width)
361{
362    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
363}
364
365void
366sc_trace(sc_trace_file *, const sc_signal_in_if<int> &,
367         const std::string &, int width)
368{
369    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
370}
371
372void
373sc_trace(sc_trace_file *, const sc_signal_in_if<long> &,
374         const std::string &, int width)
375{
376    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
377}
378
379void
380sc_trace(sc_trace_file *, const unsigned int &,
381         const std::string &, const char **enum_literals)
382{
383    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
384}
385
386} // namespace sc_core
387