sc_trace_file.cc revision 12877
112855Sgabeblack@google.com/* 212855Sgabeblack@google.com * Copyright 2018 Google, Inc. 312855Sgabeblack@google.com * 412855Sgabeblack@google.com * Redistribution and use in source and binary forms, with or without 512855Sgabeblack@google.com * modification, are permitted provided that the following conditions are 612855Sgabeblack@google.com * met: redistributions of source code must retain the above copyright 712855Sgabeblack@google.com * notice, this list of conditions and the following disclaimer; 812855Sgabeblack@google.com * redistributions in binary form must reproduce the above copyright 912855Sgabeblack@google.com * notice, this list of conditions and the following disclaimer in the 1012855Sgabeblack@google.com * documentation and/or other materials provided with the distribution; 1112855Sgabeblack@google.com * neither the name of the copyright holders nor the names of its 1212855Sgabeblack@google.com * contributors may be used to endorse or promote products derived from 1312855Sgabeblack@google.com * this software without specific prior written permission. 1412855Sgabeblack@google.com * 1512855Sgabeblack@google.com * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1612855Sgabeblack@google.com * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1712855Sgabeblack@google.com * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 1812855Sgabeblack@google.com * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 1912855Sgabeblack@google.com * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2012855Sgabeblack@google.com * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2112855Sgabeblack@google.com * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2212855Sgabeblack@google.com * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2312855Sgabeblack@google.com * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2412855Sgabeblack@google.com * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 2512855Sgabeblack@google.com * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2612855Sgabeblack@google.com * 2712855Sgabeblack@google.com * Authors: Gabe Black 2812855Sgabeblack@google.com */ 2912855Sgabeblack@google.com 3012855Sgabeblack@google.com#include "base/logging.hh" 3112855Sgabeblack@google.com#include "systemc/ext/utils/sc_trace_file.hh" 3212855Sgabeblack@google.com 3312855Sgabeblack@google.comnamespace sc_core 3412855Sgabeblack@google.com{ 3512855Sgabeblack@google.com 3612855Sgabeblack@google.comsc_trace_file * 3712855Sgabeblack@google.comsc_create_vcd_trace_file(const char *name) 3812855Sgabeblack@google.com{ 3912855Sgabeblack@google.com warn("%s not implemented.\n", __PRETTY_FUNCTION__); 4012855Sgabeblack@google.com return nullptr; 4112855Sgabeblack@google.com} 4212855Sgabeblack@google.com 4312855Sgabeblack@google.comvoid 4412855Sgabeblack@google.comsc_close_vcd_trace_file(sc_trace_file *tf) 4512855Sgabeblack@google.com{ 4612855Sgabeblack@google.com warn("%s not implemented.\n", __PRETTY_FUNCTION__); 4712855Sgabeblack@google.com} 4812855Sgabeblack@google.com 4912855Sgabeblack@google.comvoid 5012855Sgabeblack@google.comsc_write_comment(sc_trace_file *tf, const std::string &comment) 5112855Sgabeblack@google.com{ 5212855Sgabeblack@google.com warn("%s not implemented.\n", __PRETTY_FUNCTION__); 5312855Sgabeblack@google.com} 5412855Sgabeblack@google.com 5512855Sgabeblack@google.comvoid 5612855Sgabeblack@google.comsc_trace(sc_trace_file *, const bool &, const std::string &) 5712855Sgabeblack@google.com{ 5812855Sgabeblack@google.com warn("%s not implemented.\n", __PRETTY_FUNCTION__); 5912855Sgabeblack@google.com} 6012855Sgabeblack@google.com 6112855Sgabeblack@google.comvoid 6212855Sgabeblack@google.comsc_trace(sc_trace_file *, const bool *, const std::string &) 6312855Sgabeblack@google.com{ 6412855Sgabeblack@google.com warn("%s not implemented.\n", __PRETTY_FUNCTION__); 6512855Sgabeblack@google.com} 6612855Sgabeblack@google.com 6712855Sgabeblack@google.comvoid 6812855Sgabeblack@google.comsc_trace(sc_trace_file *, const float &, const std::string &) 6912855Sgabeblack@google.com{ 7012855Sgabeblack@google.com warn("%s not implemented.\n", __PRETTY_FUNCTION__); 7112855Sgabeblack@google.com} 7212855Sgabeblack@google.com 7312855Sgabeblack@google.comvoid 7412855Sgabeblack@google.comsc_trace(sc_trace_file *, const float *, const std::string &) 7512855Sgabeblack@google.com{ 7612855Sgabeblack@google.com warn("%s not implemented.\n", __PRETTY_FUNCTION__); 7712855Sgabeblack@google.com} 7812855Sgabeblack@google.com 7912855Sgabeblack@google.comvoid 8012855Sgabeblack@google.comsc_trace(sc_trace_file *, const double &, const std::string &) 8112855Sgabeblack@google.com{ 8212855Sgabeblack@google.com warn("%s not implemented.\n", __PRETTY_FUNCTION__); 8312855Sgabeblack@google.com} 8412855Sgabeblack@google.com 8512855Sgabeblack@google.comvoid 8612855Sgabeblack@google.comsc_trace(sc_trace_file *, const double *, const std::string &) 8712855Sgabeblack@google.com{ 8812855Sgabeblack@google.com warn("%s not implemented.\n", __PRETTY_FUNCTION__); 8912855Sgabeblack@google.com} 9012855Sgabeblack@google.com 9112855Sgabeblack@google.comvoid 9212855Sgabeblack@google.comsc_trace(sc_trace_file *, const sc_dt::sc_logic &, const std::string &) 9312855Sgabeblack@google.com{ 9412855Sgabeblack@google.com warn("%s not implemented.\n", __PRETTY_FUNCTION__); 9512855Sgabeblack@google.com} 9612855Sgabeblack@google.com 9712855Sgabeblack@google.comvoid 9812855Sgabeblack@google.comsc_trace(sc_trace_file *, const sc_dt::sc_logic *, const std::string &) 9912855Sgabeblack@google.com{ 10012855Sgabeblack@google.com warn("%s not implemented.\n", __PRETTY_FUNCTION__); 10112855Sgabeblack@google.com} 10212855Sgabeblack@google.com 10312855Sgabeblack@google.comvoid 10412855Sgabeblack@google.comsc_trace(sc_trace_file *, const sc_dt::sc_int_base &, const std::string &) 10512855Sgabeblack@google.com{ 10612855Sgabeblack@google.com warn("%s not implemented.\n", __PRETTY_FUNCTION__); 10712855Sgabeblack@google.com} 10812855Sgabeblack@google.com 10912855Sgabeblack@google.comvoid 11012855Sgabeblack@google.comsc_trace(sc_trace_file *, const sc_dt::sc_int_base *, const std::string &) 11112855Sgabeblack@google.com{ 11212855Sgabeblack@google.com warn("%s not implemented.\n", __PRETTY_FUNCTION__); 11312855Sgabeblack@google.com} 11412855Sgabeblack@google.com 11512855Sgabeblack@google.comvoid 11612855Sgabeblack@google.comsc_trace(sc_trace_file *, const sc_dt::sc_uint_base &, const std::string &) 11712855Sgabeblack@google.com{ 11812855Sgabeblack@google.com warn("%s not implemented.\n", __PRETTY_FUNCTION__); 11912855Sgabeblack@google.com} 12012855Sgabeblack@google.com 12112855Sgabeblack@google.comvoid 12212855Sgabeblack@google.comsc_trace(sc_trace_file *, const sc_dt::sc_uint_base *, const std::string &) 12312855Sgabeblack@google.com{ 12412855Sgabeblack@google.com warn("%s not implemented.\n", __PRETTY_FUNCTION__); 12512855Sgabeblack@google.com} 12612855Sgabeblack@google.com 12712855Sgabeblack@google.comvoid 12812855Sgabeblack@google.comsc_trace(sc_trace_file *, const sc_dt::sc_signed &, const std::string &) 12912855Sgabeblack@google.com{ 13012855Sgabeblack@google.com warn("%s not implemented.\n", __PRETTY_FUNCTION__); 13112855Sgabeblack@google.com} 13212855Sgabeblack@google.com 13312855Sgabeblack@google.comvoid 13412855Sgabeblack@google.comsc_trace(sc_trace_file *, const sc_dt::sc_signed *, const std::string &) 13512855Sgabeblack@google.com{ 13612855Sgabeblack@google.com warn("%s not implemented.\n", __PRETTY_FUNCTION__); 13712855Sgabeblack@google.com} 13812855Sgabeblack@google.com 13912855Sgabeblack@google.comvoid 14012855Sgabeblack@google.comsc_trace(sc_trace_file *, const sc_dt::sc_unsigned &, const std::string &) 14112855Sgabeblack@google.com{ 14212855Sgabeblack@google.com warn("%s not implemented.\n", __PRETTY_FUNCTION__); 14312855Sgabeblack@google.com} 14412855Sgabeblack@google.com 14512855Sgabeblack@google.comvoid 14612855Sgabeblack@google.comsc_trace(sc_trace_file *, const sc_dt::sc_unsigned *, const std::string &) 14712855Sgabeblack@google.com{ 14812855Sgabeblack@google.com warn("%s not implemented.\n", __PRETTY_FUNCTION__); 14912855Sgabeblack@google.com} 15012855Sgabeblack@google.com 15112855Sgabeblack@google.comvoid 15212855Sgabeblack@google.comsc_trace(sc_trace_file *, const sc_dt::sc_bv_base &, const std::string &) 15312855Sgabeblack@google.com{ 15412855Sgabeblack@google.com warn("%s not implemented.\n", __PRETTY_FUNCTION__); 15512855Sgabeblack@google.com} 15612855Sgabeblack@google.com 15712855Sgabeblack@google.comvoid 15812855Sgabeblack@google.comsc_trace(sc_trace_file *, const sc_dt::sc_bv_base *, const std::string &) 15912855Sgabeblack@google.com{ 16012855Sgabeblack@google.com warn("%s not implemented.\n", __PRETTY_FUNCTION__); 16112855Sgabeblack@google.com} 16212855Sgabeblack@google.com 16312855Sgabeblack@google.comvoid 16412855Sgabeblack@google.comsc_trace(sc_trace_file *, const sc_dt::sc_lv_base &, const std::string &) 16512855Sgabeblack@google.com{ 16612855Sgabeblack@google.com warn("%s not implemented.\n", __PRETTY_FUNCTION__); 16712855Sgabeblack@google.com} 16812855Sgabeblack@google.com 16912855Sgabeblack@google.comvoid 17012855Sgabeblack@google.comsc_trace(sc_trace_file *, const sc_dt::sc_lv_base *, const std::string &) 17112855Sgabeblack@google.com{ 17212855Sgabeblack@google.com warn("%s not implemented.\n", __PRETTY_FUNCTION__); 17312855Sgabeblack@google.com} 17412855Sgabeblack@google.com 17512855Sgabeblack@google.comvoid 17612855Sgabeblack@google.comsc_trace(sc_trace_file *, const sc_dt::sc_fxval &, const std::string &) 17712855Sgabeblack@google.com{ 17812855Sgabeblack@google.com warn("%s not implemented.\n", __PRETTY_FUNCTION__); 17912855Sgabeblack@google.com} 18012855Sgabeblack@google.com 18112855Sgabeblack@google.comvoid 18212855Sgabeblack@google.comsc_trace(sc_trace_file *, const sc_dt::sc_fxval *, const std::string &) 18312855Sgabeblack@google.com{ 18412855Sgabeblack@google.com warn("%s not implemented.\n", __PRETTY_FUNCTION__); 18512855Sgabeblack@google.com} 18612855Sgabeblack@google.com 18712855Sgabeblack@google.comvoid 18812855Sgabeblack@google.comsc_trace(sc_trace_file *, const sc_dt::sc_fxval_fast &, const std::string &) 18912855Sgabeblack@google.com{ 19012855Sgabeblack@google.com warn("%s not implemented.\n", __PRETTY_FUNCTION__); 19112855Sgabeblack@google.com} 19212855Sgabeblack@google.com 19312855Sgabeblack@google.comvoid 19412855Sgabeblack@google.comsc_trace(sc_trace_file *, const sc_dt::sc_fxval_fast *, const std::string &) 19512855Sgabeblack@google.com{ 19612855Sgabeblack@google.com warn("%s not implemented.\n", __PRETTY_FUNCTION__); 19712855Sgabeblack@google.com} 19812855Sgabeblack@google.com 19912855Sgabeblack@google.comvoid 20012855Sgabeblack@google.comsc_trace(sc_trace_file *, const sc_dt::sc_fxnum &, const std::string &) 20112855Sgabeblack@google.com{ 20212855Sgabeblack@google.com warn("%s not implemented.\n", __PRETTY_FUNCTION__); 20312855Sgabeblack@google.com} 20412855Sgabeblack@google.com 20512855Sgabeblack@google.comvoid 20612855Sgabeblack@google.comsc_trace(sc_trace_file *, const sc_dt::sc_fxnum *, const std::string &) 20712855Sgabeblack@google.com{ 20812855Sgabeblack@google.com warn("%s not implemented.\n", __PRETTY_FUNCTION__); 20912855Sgabeblack@google.com} 21012855Sgabeblack@google.com 21112855Sgabeblack@google.comvoid 212sc_trace(sc_trace_file *, const sc_dt::sc_fxnum_fast &, const std::string &) 213{ 214 warn("%s not implemented.\n", __PRETTY_FUNCTION__); 215} 216 217void 218sc_trace(sc_trace_file *, const sc_dt::sc_fxnum_fast *, const std::string &) 219{ 220 warn("%s not implemented.\n", __PRETTY_FUNCTION__); 221} 222 223void 224sc_trace(sc_trace_file *, const unsigned char &, 225 const std::string &, int width) 226{ 227 warn("%s not implemented.\n", __PRETTY_FUNCTION__); 228} 229 230void 231sc_trace(sc_trace_file *, const unsigned char *, 232 const std::string &, int width) 233{ 234 warn("%s not implemented.\n", __PRETTY_FUNCTION__); 235} 236 237void 238sc_trace(sc_trace_file *, const unsigned short &, 239 const std::string &, int width) 240{ 241 warn("%s not implemented.\n", __PRETTY_FUNCTION__); 242} 243 244void 245sc_trace(sc_trace_file *, const unsigned short *, 246 const std::string &, int width) 247{ 248 warn("%s not implemented.\n", __PRETTY_FUNCTION__); 249} 250 251void 252sc_trace(sc_trace_file *, const unsigned int &, const std::string &, int width) 253{ 254 warn("%s not implemented.\n", __PRETTY_FUNCTION__); 255} 256 257void 258sc_trace(sc_trace_file *, const unsigned int *, const std::string &, int width) 259{ 260 warn("%s not implemented.\n", __PRETTY_FUNCTION__); 261} 262 263void 264sc_trace(sc_trace_file *, const unsigned long &, 265 const std::string &, int width) 266{ 267 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