Skip to content

Commit 010aac1

Browse files
committed
Merge remote-tracking branch 'origin/main' into develop
2 parents 621a069 + b33c1ac commit 010aac1

3 files changed

Lines changed: 22 additions & 3 deletions

File tree

src/sysc/scc/configurable_tracer.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ configurable_tracer::configurable_tracer(std::string const&& name, file_type typ
3535
default_trace_enable = default_enable;
3636
}
3737

38+
configurable_tracer::configurable_tracer(std::string const&& name, file_type tx_type, file_type sig_type, bool default_enable,
39+
sc_core::sc_object* top)
40+
: tracer(std::move(name), tx_type, sig_type, top) {
41+
default_trace_enable = default_enable;
42+
}
43+
3844
configurable_tracer::configurable_tracer(std::string const&& name, file_type type, sc_core::sc_trace_file* tf, bool default_enable,
3945
sc_core::sc_object* top)
4046
: tracer(std::move(name), type, tf, top) {

src/sysc/scc/configurable_tracer.h

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class configurable_tracer : public tracer {
3838
* constructs a tracer object
3939
*
4040
* @param name basename of the trace file(s)
41-
* @param enable_tx enables transaction teacing
41+
* @param enable_tx enables transaction tracing
4242
* @param enable_vcd enable VCD (signal based) tracing
4343
* @param default_enable value of parameter enableTracing if not defined by module or CCIs
4444
*/
@@ -48,7 +48,7 @@ class configurable_tracer : public tracer {
4848
* constructs a tracer object
4949
*
5050
* @param name basename of the trace file(s)
51-
* @param enable_tx enables transaction teacing
51+
* @param enable_tx enables transaction tracing
5252
* @param enable_vcd enable VCD (signal based) tracing
5353
* @param default_enable value of parameter enableTracing if not defined by module or CCIs
5454
*/
@@ -76,6 +76,19 @@ class configurable_tracer : public tracer {
7676
configurable_tracer(std::string const& name, file_type type, bool enable_vcd = true, bool default_enable = false,
7777
sc_core::sc_object* top = nullptr)
7878
: configurable_tracer(std::string(name), type, enable_vcd, default_enable, top) {}
79+
/**
80+
* constructs a tracer object
81+
*
82+
* @param name basename of the trace file(s)
83+
* @param tx_type type of trace file for transactions
84+
* @param sig_type type of trace file for signals
85+
* @param default_enable value of parameter enableTracing if not defined by module or CCIs
86+
*/
87+
configurable_tracer(std::string const&& name, file_type tx_type, file_type sig_type, bool default_enable = false,
88+
sc_core::sc_object* top = nullptr);
89+
configurable_tracer(std::string const& name, file_type tx_type, file_type sig_type, bool default_enable = false,
90+
sc_core::sc_object* top = nullptr)
91+
: configurable_tracer(std::string(name), tx_type, sig_type, default_enable, top) {}
7992
/**
8093
* constructs a tracer object
8194
*

src/sysc/scc/trace/vcd_trace.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ inline void vcdEmitValueChange64(FPTR os, std::string const& handle, unsigned bi
4949

5050
template<typename T>
5151
inline void vcdEmitValueChangeReal(FPTR os, std::string const& handle, unsigned bits, T val){
52-
auto buf = fmt::format("r{:.16g} {}\n", val, handle);
52+
auto buf = fmt::format("r{:.16g} {}\n", static_cast<double>(val), handle);
5353
FWRITE(buf.c_str(), 1, buf.size(), os);
5454
}
5555

0 commit comments

Comments
 (0)