Extended tracing in units and python
This commit is contained in:
@ -18,6 +18,6 @@ ClkGen::~ClkGen() {
|
||||
// TODO Auto-generated destructor stub
|
||||
}
|
||||
|
||||
void ClkGen::end_of_elabortation() {
|
||||
void ClkGen::end_of_elaboration() {
|
||||
clk_o.write(10_ns);
|
||||
}
|
||||
|
@ -17,7 +17,7 @@ public:
|
||||
ClkGen(const sc_core::sc_module_name&);
|
||||
virtual ~ClkGen();
|
||||
protected:
|
||||
void end_of_elabortation();
|
||||
void end_of_elaboration() override;
|
||||
};
|
||||
|
||||
#endif /* COMPONENTS_CLKGEN_H_ */
|
||||
|
@ -8,7 +8,7 @@ using namespace std;
|
||||
|
||||
#include "tlm.h"
|
||||
#include "tlm_utils/simple_initiator_socket.h"
|
||||
|
||||
#include <scc/utilities.h>
|
||||
|
||||
// Initiator module generating generic payload transactions
|
||||
|
||||
@ -34,6 +34,10 @@ struct Initiator: sc_module
|
||||
|
||||
bool dmi_ptr_valid;
|
||||
tlm::tlm_dmi dmi_data;
|
||||
|
||||
void trace(sc_core::sc_trace_file* trf) const override {
|
||||
TRACE_VAR(trf, dmi_ptr_valid);
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user