Skip to content
Snippets Groups Projects
Commit dca89ce5 authored by apvrille's avatar apvrille
Browse files

Update bon events for router tasks

parent cbcfb593
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
......@@ -214,7 +214,7 @@ public class TMAP2Network<E> {
// Check for no more CPU than gridsize
// Put a random place to non placed CPU
// All CPU must be placed
// All CPUs must be placed
if (nbOfHwExecutionNode > (nocSize * nocSize)) {
return "Too many processors for the NoC size";
}
......
......@@ -88,6 +88,8 @@ public class TranslatedRouter<E> {
TMLEvent [][] evtOutVCs; // position, vc
TMLEvent [][] evtSelectVC; // position, vc
// Between OUT and IN
TMLEvent [] evtOutVCstoIN;
public TranslatedRouter(TMAP2Network<?> main, TMLMapping<?> tmlmap, HwNoC noc, List<TMLChannel> channelsViaNoc, int nbOfVCs, int xPos, int yPos) {
this.main = main;
......@@ -270,12 +272,12 @@ public class TranslatedRouter<E> {
}
// TO DO: Adding PARAMS to events
public void makeOutputEventsChannels() {
TMLModeling tmlm = tmlmap.getTMLModeling();
// Internal events and channels
// Between IN and INVC
......@@ -329,6 +331,20 @@ public class TranslatedRouter<E> {
// Interconnection with routers depending on position
// Between out_x and in_y
// We create events only when necessary
evtOutVCstoIN = new TMLEvent[TMAP2Network.DOMAIN+1];
for(int i=0; i<TMAP2Network.DOMAIN+1; i++) {
// must check if the i router is valid
if (i==TMAP2Network.DOMAIN || TMAP2Network.hasRouterAt(xPos, yPos, i, noc.size)) {
evtOutVCstoIN[i] = new TMLEvent("evt_pkt_out" + i + "_" + i + "_" + xPos + "_" + yPos,
null, 8, true);
tmlm.addEvent(evtOutVCstoIN[i]);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment