@@ -10,10 +10,6 @@ static vtr::vector<NocTrafficFlowId, double> traffic_flow_aggregate_bandwidth_co
1010static std::vector<NocTrafficFlowId> affected_traffic_flows;
1111/* ********************************************************** *****************************/
1212
13- /* ********** NoC Placement Stats ***********/
14- static NocPlaceStats noc_place_stats;
15- /* ******************************************/
16-
1713void initial_noc_placement (void ) {
1814 // need to get placement information about where the router cluster blocks are palced on the device
1915 const auto & place_ctx = g_vpr_ctx.placement ();
@@ -545,46 +541,13 @@ e_create_move propose_router_swap(t_pl_blocks_to_be_moved& blocks_affected, floa
545541 return create_move;
546542}
547543
548- /* Below are functions related to modifying and printing the NoC placement
549- * statistical data */
550- void initialize_noc_placement_stats (const t_placer_opts& placer_opts) {
551- // initially there are no router blocks moved
552- noc_place_stats.number_of_noc_router_moves = 0 ;
553-
554- // allocate the space to keep track of how many of each move type caused a router block to move
555- noc_place_stats.number_of_noc_router_moves_per_move_type .resize (placer_opts.place_static_move_prob .size () + 1 , 0 );
556-
557- return ;
558- }
559-
560544void update_noc_placement_stats (int move_type) {
561545 noc_place_stats.number_of_noc_router_moves ++;
562546 noc_place_stats.number_of_noc_router_moves_per_move_type [move_type]++;
563547
564548 return ;
565549}
566550
567- void print_noc_placement_stats (void ) {
568- float moves;
569- std::string move_name;
570-
571- VTR_LOG (" \n\n Total number of NoC router block moves: %d\n " , noc_place_stats.number_of_noc_router_moves );
572- VTR_LOG (" \n Percentage of different move types that cause NoC router block moves:\n " );
573-
574- for (size_t i = 0 ; i < noc_place_stats.number_of_noc_router_moves_per_move_type .size (); i++) {
575- moves = noc_place_stats.number_of_noc_router_moves_per_move_type [i];
576- if (moves != 0 ) {
577- move_name = move_type_to_string (e_move_type (i));
578- VTR_LOG (
579- " \t %.17s move: %2.2f %%\n " ,
580- move_name.c_str (), 100 * moves / noc_place_stats.number_of_noc_router_moves );
581- }
582- }
583- VTR_LOG (" \n " );
584-
585- return ;
586- }
587-
588551void write_noc_placement_file (std::string file_name) {
589552 // we need the clustered netlist to get the names of all the NoC router cluster blocks
590553 auto & cluster_ctx = g_vpr_ctx.clustering ();
0 commit comments