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
43
43
// Delay
44
44
sc_time write_delay;
45
45
sc_time read_delay;
46
+
47
+ // DEBUG
48
+ unsigned int transaction_sent_id = 0 ;
49
+ unsigned int transaction_received_id = 0 ;
46
50
47
51
// Constructor
48
52
SC_CTOR (img_initiator)
@@ -127,6 +131,9 @@ struct img_initiator: sc_module
127
131
phase = tlm::BEGIN_REQ;
128
132
transaction->get_extension (img_ext);
129
133
cur_command = transaction->get_command ();
134
+
135
+ this ->transaction_sent_id = img_ext->transaction_number ;
136
+
130
137
dbgmodprint (" BEGIN_REQ SENT TRANS ID %0d" , img_ext->transaction_number );
131
138
status = socket->nb_transport_fw (*transaction, phase, ((cur_command == tlm::TLM_WRITE_COMMAND) ? this ->write_delay : this ->read_delay )); // Non-blocking transport call
132
139
@@ -151,6 +158,7 @@ struct img_initiator: sc_module
151
158
// Wait for response transaction
152
159
// if (transaction->get_command() == tlm::TLM_READ_COMMAND) {
153
160
wait (transaction_received_e);
161
+ this ->transaction_received_id = img_ext->transaction_number ;
154
162
// }
155
163
// -----------DEBUG-----------
156
164
dbgmodprint (" [DEBUG1] Reading at Initiator: " );
You can’t perform that action at this time.
0 commit comments