File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,10 @@ struct img_initiator: sc_module
4343 // Delay
4444 sc_time write_delay;
4545 sc_time read_delay;
46+
47+ // DEBUG
48+ unsigned int transaction_sent_id = 0 ;
49+ unsigned int transaction_received_id = 0 ;
4650
4751 // Constructor
4852 SC_CTOR (img_initiator)
@@ -127,6 +131,9 @@ struct img_initiator: sc_module
127131 phase = tlm::BEGIN_REQ;
128132 transaction->get_extension (img_ext);
129133 cur_command = transaction->get_command ();
134+
135+ this ->transaction_sent_id = img_ext->transaction_number ;
136+
130137 dbgmodprint (" BEGIN_REQ SENT TRANS ID %0d" , img_ext->transaction_number );
131138 status = socket->nb_transport_fw (*transaction, phase, ((cur_command == tlm::TLM_WRITE_COMMAND) ? this ->write_delay : this ->read_delay )); // Non-blocking transport call
132139
@@ -151,6 +158,7 @@ struct img_initiator: sc_module
151158 // Wait for response transaction
152159 // if (transaction->get_command() == tlm::TLM_READ_COMMAND) {
153160 wait (transaction_received_e);
161+ this ->transaction_received_id = img_ext->transaction_number ;
154162 // }
155163 // -----------DEBUG-----------
156164 dbgmodprint (" [DEBUG1] Reading at Initiator: " );
You can’t perform that action at this time.
0 commit comments