@@ -10,10 +10,6 @@ static vtr::vector<NocTrafficFlowId, double> traffic_flow_aggregate_bandwidth_co
10
10
static std::vector<NocTrafficFlowId> affected_traffic_flows;
11
11
/* ********************************************************** *****************************/
12
12
13
- /* ********** NoC Placement Stats ***********/
14
- static NocPlaceStats noc_place_stats;
15
- /* ******************************************/
16
-
17
13
void initial_noc_placement (void ) {
18
14
// need to get placement information about where the router cluster blocks are palced on the device
19
15
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
545
541
return create_move;
546
542
}
547
543
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
-
560
544
void update_noc_placement_stats (int move_type) {
561
545
noc_place_stats.number_of_noc_router_moves ++;
562
546
noc_place_stats.number_of_noc_router_moves_per_move_type [move_type]++;
563
547
564
548
return ;
565
549
}
566
550
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
-
588
551
void write_noc_placement_file (std::string file_name) {
589
552
// we need the clustered netlist to get the names of all the NoC router cluster blocks
590
553
auto & cluster_ctx = g_vpr_ctx.clustering ();
0 commit comments