Skip to content

Commit f53cad4

Browse files
committed
moved noc router connection list print to arch.echo file
1 parent 1098c02 commit f53cad4

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

libs/libarchfpga/src/echo_arch.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,21 @@ void PrintArchInfo(FILE* Echo, const t_arch* arch) {
322322
}
323323
fprintf(Echo, "*************************************************\n\n");
324324

325+
//Router Connection List
326+
if(arch->noc != nullptr){
327+
fprintf(Echo, "*************************************************\n");
328+
fprintf(Echo, "NoC Router Connection List:\n");
329+
330+
for(auto noc_router : arch->noc->router_list){
331+
fprintf(Echo, "NoC router %d is connected to:\t",noc_router.id);
332+
for(auto noc_conn_id : noc_router.connection_list){
333+
fprintf(Echo, "%d\t", noc_conn_id);
334+
}
335+
fprintf(Echo,"\n");
336+
}
337+
fprintf(Echo, "*************************************************\n\n");
338+
}
339+
325340
//Architecture Power
326341
fprintf(Echo, "*************************************************\n");
327342
fprintf(Echo, "Power:\n");

libs/libarchfpga/src/read_xml_arch_file.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4682,16 +4682,6 @@ static void ProcessNoc(pugi::xml_node noc_tag, t_arch* arch, const pugiutil::loc
46824682

46834683
if (noc_mesh_topology) {
46844684
processMeshTopology(noc_mesh_topology, loc_data, noc_ref);
4685-
4686-
for (auto i = noc_ref->router_list.begin(); i != noc_ref->router_list.end(); i++) {
4687-
std::cout << "router " << i->id << ": ";
4688-
4689-
for (auto j = i->connection_list.begin(); j != i->connection_list.end(); j++) {
4690-
std::cout << *j << ",";
4691-
}
4692-
4693-
std::cout << "\n";
4694-
}
46954685
} else {
46964686
noc_topology = pugiutil::get_single_child(noc_tag, "topology", loc_data, pugiutil::REQUIRED);
46974687

0 commit comments

Comments
 (0)