Skip to content

Commit

Permalink
Remove routing - topology verification
Browse files Browse the repository at this point in the history
  • Loading branch information
edualvss committed Dec 1, 2016
1 parent cfa8a8c commit aa2a2fc
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 44 deletions.
13 changes: 0 additions & 13 deletions SoCIN/SoCIN.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,6 @@ SoCINfp_VC::SoCINfp_VC(sc_module_name mn)
w_Y_RETURN_TO_NORTH("w_Y_RETURN_TO_NORTH"),
w_Y_VC_SELECTOR_TO_NORTH("w_Y_VC_SELECTOR_TO_NORTH")
{
IRouting* tester = PLUGIN_MANAGER->routingInstance("Tester",0,5);
if(tester != NULL) {
if( tester->supportedTopology() != this->topologyType() ) {
throw std::runtime_error("[SoCINfp_VC] Routing incompatible with the topology");
}
}

// Allocating the number of routers needed
u_ROUTER.resize( (X_SIZE*Y_SIZE) , NULL);
unsigned short numberOfXWires = (X_SIZE-1) * Y_SIZE;
Expand Down Expand Up @@ -386,12 +379,6 @@ SoCINfp::SoCINfp(sc_module_name mn)
w_Y_VALID_TO_NORTH("w_Y_VALID_OUT"),
w_Y_RETURN_TO_NORTH("w_Y_RETURN_OUT")
{
IRouting* tester = PLUGIN_MANAGER->routingInstance("Tester",0,5);
if(tester != NULL) {
if( tester->supportedTopology() != this->topologyType() ) {
throw std::runtime_error("[SoCINfp] Routing incompatible with the topology");
}
}
// Allocating the number of routers needed
u_ROUTER.resize( (X_SIZE*Y_SIZE) , NULL);

Expand Down
7 changes: 0 additions & 7 deletions SoCIN_3D/SoCIN_3D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,6 @@ SoCIN_3D::SoCIN_3D(sc_module_name mn)
throw std::runtime_error("[SoCIN-3D]Number of interfaces is 0, verify Z size.");
}

IRouting* tester = PLUGIN_MANAGER->routingInstance("Tester",0,5);
if(tester != NULL) {
if( tester->supportedTopology() != this->topologyType() ) {
throw std::runtime_error("[SoCINfp-3D] Routing incompatible with the topology");
}
}

unsigned short i; // Loop iterator

// Allocating the number of routers needed
Expand Down
13 changes: 7 additions & 6 deletions SoCIN_Ring/SoCIN_Ring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ SoCIN_Ring::SoCIN_Ring(sc_module_name mn)
w_RETURN_TO_RIGHT("w_X_RETURN_TO_RIGHT"),
w_VC_SELECTOR_TO_RIGHT("w_X_VC_SELECTOR_TO_RIGHT")
{
IRouting* tester = PLUGIN_MANAGER->routingInstance("Tester",0,5);
if(tester != NULL) {
if( tester->supportedTopology() != this->topologyType() ) {
throw std::runtime_error("[SoCIN_Ring] Routing incompatible with the topology");
}
}
// IRouting* tester = PLUGIN_MANAGER->routingInstance("Tester",0,5);
// if(tester != NULL) {
// if( tester->supportedTopology() != this->topologyType() ) {
// throw std::runtime_error("[SoCIN_Ring] Routing incompatible with the topology");
// }
// PLUGIN_MANAGER->destroyRouting(tester);
// }

unsigned short numberOfElements = numInterfaces;

Expand Down
6 changes: 0 additions & 6 deletions SoCIN_Spider/SoCIN_Spider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ SoCIN_Spider::SoCIN_Spider(sc_module_name mn)
w_RETURN_ACROSS("w_X_RETURN_TO_ACROSS"),
w_VC_SELECTOR_ACROSS("w_X_VC_SELECTOR_TO_ACROSS")
{
IRouting* tester = PLUGIN_MANAGER->routingInstance("Tester",0,5);
if(tester != NULL) {
if( tester->supportedTopology() != this->topologyType() ) {
throw std::runtime_error("[SoCIN_Spider] Routing incompatible with the topology");
}
}
unsigned short numberOfElements = numInterfaces;

// Allocate the number of routers needed
Expand Down
6 changes: 0 additions & 6 deletions SoCIN_Torus/SoCIN_Torus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ SoCIN_Torus::SoCIN_Torus(sc_module_name mn)
w_Y_RETURN_TO_NORTH("w_Y_RETURN_TO_NORTH"),
w_Y_VC_SELECTOR_TO_NORTH("w_Y_VC_SELECTOR_TO_NORTH")
{
IRouting* tester = PLUGIN_MANAGER->routingInstance("Tester",0,5);
if(tester != NULL) {
if( tester->supportedTopology() != this->topologyType() ) {
throw std::runtime_error("[SoCIN_Torus] Routing incompatible with the topology");
}
}
// Allocating the number of routers needed
u_ROUTER.resize(numInterfaces,NULL);

Expand Down
6 changes: 0 additions & 6 deletions SoCIN_single_unit/SoCIN_Unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@
SoCIN_Unit::SoCIN_Unit(sc_module_name mn)
: INoC_VC( mn, (X_SIZE*Y_SIZE) , NUM_VC)
{
IRouting* tester = PLUGIN_MANAGER->routingInstance("Tester",0,5);
if(tester != NULL) {
if( tester->supportedTopology() != this->topologyType() ) {
throw std::runtime_error("[SoCIN_Unit] Routing incompatible with the topology");
}
}
// Allocating the number of routers needed
u_ROUTER.resize(1,NULL);

Expand Down

0 comments on commit aa2a2fc

Please sign in to comment.