Skip to content

Commit 8a315e7

Browse files
RMorales25ErickOF
authored andcommitted
Add router to global tb
1 parent ebd6ed1 commit 8a315e7

File tree

3 files changed

+63
-58
lines changed

3 files changed

+63
-58
lines changed

modules/router/src/img_initiator.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ struct img_initiator: sc_module
149149
}
150150

151151
//Wait for response transaction
152-
if (transaction->get_command() == tlm::TLM_READ_COMMAND) {
153-
wait(transaction_received_e);
154-
}
152+
// if (transaction->get_command() == tlm::TLM_READ_COMMAND) {
153+
wait(transaction_received_e);
154+
// }
155155
//-----------DEBUG-----------
156156
dbgmodprint("[DEBUG1] Reading at Initiator: ");
157157
for (int i = 0; i < transaction->get_data_length()/sizeof(int); ++i){

modules/router/src/img_router.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,7 @@ struct img_router: sc_module
115115
}
116116

117117
// To/From Memory Valid addresses
118-
case IMG_INPUT:
119-
case IMG_INPROCESS_A:
120-
case IMG_INPROCESS_B:
121-
case IMG_INPROCESS_C:
122-
case IMG_INPROCESS_D:
123-
case IMG_COMPRESSED: {
118+
case MEM_START ... MEM_FINISH : {
124119
dbgmodprint("Decoded address %08X corresponds to Memory.", address);
125120
return IMG_MEMORY_INITIATOR_ID;
126121
}

0 commit comments

Comments
 (0)