summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/systemc/ext/utils/sc_trace_file.hh41
1 files changed, 21 insertions, 20 deletions
diff --git a/src/systemc/ext/utils/sc_trace_file.hh b/src/systemc/ext/utils/sc_trace_file.hh
index db50e3967..0b4b0d02b 100644
--- a/src/systemc/ext/utils/sc_trace_file.hh
+++ b/src/systemc/ext/utils/sc_trace_file.hh
@@ -122,46 +122,46 @@ void sc_trace(sc_trace_file *, const sc_time *, const std::string &);
// Nonstandard - unsigned versions necessary to avoid ambiguous overload
// resolution.
void sc_trace(sc_trace_file *, const unsigned char &,
- const std::string &, int width=(8 * sizeof(char)));
+ const std::string &, int width=(8 * sizeof(unsigned char)));
void sc_trace(sc_trace_file *, const unsigned char *,
- const std::string &, int width=(8 * sizeof(char)));
+ const std::string &, int width=(8 * sizeof(unsigned char)));
void sc_trace(sc_trace_file *, const unsigned short &,
- const std::string &, int width=(8 * sizeof(char)));
+ const std::string &, int width=(8 * sizeof(unsigned short)));
void sc_trace(sc_trace_file *, const unsigned short *,
- const std::string &, int width=(8 * sizeof(char)));
+ const std::string &, int width=(8 * sizeof(unsigned short)));
void sc_trace(sc_trace_file *, const unsigned int &,
- const std::string &, int width=(8 * sizeof(char)));
+ const std::string &, int width=(8 * sizeof(unsigned int)));
void sc_trace(sc_trace_file *, const unsigned int *,
- const std::string &, int width=(8 * sizeof(char)));
+ const std::string &, int width=(8 * sizeof(unsigned int)));
void sc_trace(sc_trace_file *, const unsigned long &,
- const std::string &, int width=(8 * sizeof(char)));
+ const std::string &, int width=(8 * sizeof(unsigned long)));
void sc_trace(sc_trace_file *, const unsigned long *,
- const std::string &, int width=(8 * sizeof(char)));
+ const std::string &, int width=(8 * sizeof(unsigned long)));
void sc_trace(sc_trace_file *, const char &,
const std::string &, int width=(8 * sizeof(char)));
void sc_trace(sc_trace_file *, const char *,
const std::string &, int width=(8 * sizeof(char)));
void sc_trace(sc_trace_file *, const short &,
- const std::string &, int width=(8 * sizeof(char)));
+ const std::string &, int width=(8 * sizeof(short)));
void sc_trace(sc_trace_file *, const short *,
- const std::string &, int width=(8 * sizeof(char)));
+ const std::string &, int width=(8 * sizeof(short)));
void sc_trace(sc_trace_file *, const int &,
- const std::string &, int width=(8 * sizeof(char)));
+ const std::string &, int width=(8 * sizeof(int)));
void sc_trace(sc_trace_file *, const int *,
- const std::string &, int width=(8 * sizeof(char)));
+ const std::string &, int width=(8 * sizeof(int)));
void sc_trace(sc_trace_file *, const long &,
- const std::string &, int width=(8 * sizeof(char)));
+ const std::string &, int width=(8 * sizeof(long)));
void sc_trace(sc_trace_file *, const long *,
- const std::string &, int width=(8 * sizeof(char)));
+ const std::string &, int width=(8 * sizeof(long)));
void sc_trace(sc_trace_file *, const sc_dt::int64 &,
- const std::string &, int width=(8 * sizeof(char)));
+ const std::string &, int width=(8 * sizeof(sc_dt::int64)));
void sc_trace(sc_trace_file *, const sc_dt::int64 *,
- const std::string &, int width=(8 * sizeof(char)));
+ const std::string &, int width=(8 * sizeof(sc_dt::int64)));
void sc_trace(sc_trace_file *, const sc_dt::uint64 &,
- const std::string &, int width=(8 * sizeof(char)));
+ const std::string &, int width=(8 * sizeof(sc_dt::uint64)));
void sc_trace(sc_trace_file *, const sc_dt::uint64 *,
- const std::string &, int width=(8 * sizeof(char)));
+ const std::string &, int width=(8 * sizeof(sc_dt::uint64)));
// Nonstandard function for enums
void sc_trace(sc_trace_file *, const unsigned int &,
@@ -172,9 +172,10 @@ void sc_trace_delta_cycles(sc_trace_file *, bool on=true);
template <class T>
void
-sc_trace(sc_trace_file *, const sc_signal_in_if<T> &, const std::string &)
+sc_trace(sc_trace_file *tf, const sc_signal_in_if<T> &iface,
+ const std::string &name)
{
- sc_utils_warn_unimpl(__PRETTY_FUNCTION__);
+ sc_trace(tf, iface.read(), name);
}
void sc_trace(sc_trace_file *, const sc_signal_in_if<char> &,