@@ -37,11 +37,11 @@ void ShowSetup(const t_vpr_setup& vpr_setup) {
3737 }
3838 VTR_LOG (" \n " );
3939
40- VTR_LOG (" Packer: %s\n " , (vpr_setup.PackerOpts .doPacking ? " ENABLED " : " DISABLED " ));
41- VTR_LOG (" Placer: %s\n " , (vpr_setup.PlacerOpts .doPlacement ? " ENABLED " : " DISABLED " ));
42- VTR_LOG (" Analytical Placer: %s\n " , (vpr_setup.APOpts .doAP ? " ENABLED " : " DISABLED " ));
43- VTR_LOG (" Router: %s\n " , (vpr_setup.RouterOpts .doRouting ? " ENABLED " : " DISABLED " ));
44- VTR_LOG (" Analysis: %s\n " , (vpr_setup.AnalysisOpts .doAnalysis ? " ENABLED " : " DISABLED " ));
40+ VTR_LOG (" Packer: %s\n " , stage_action_to_string (vpr_setup.PackerOpts .doPacking ). c_str ( ));
41+ VTR_LOG (" Placer: %s\n " , stage_action_to_string (vpr_setup.PlacerOpts .doPlacement ). c_str ( ));
42+ VTR_LOG (" Analytical Placer: %s\n " , stage_action_to_string (vpr_setup.APOpts .doAP ). c_str ( ));
43+ VTR_LOG (" Router: %s\n " , stage_action_to_string (vpr_setup.RouterOpts .doRouting ). c_str ( ));
44+ VTR_LOG (" Analysis: %s\n " , stage_action_to_string (vpr_setup.AnalysisOpts .doAnalysis ). c_str ( ));
4545 VTR_LOG (" \n " );
4646
4747 VTR_LOG (" VPR was run with the following options:\n\n " );
@@ -68,6 +68,21 @@ void ShowSetup(const t_vpr_setup& vpr_setup) {
6868 }
6969}
7070
71+ std::string stage_action_to_string (e_stage_action action) {
72+ switch (action) {
73+ case STAGE_SKIP:
74+ return " DISABLED" ;
75+ case STAGE_LOAD:
76+ return " LOAD" ;
77+ case STAGE_DO:
78+ return " ENABLED" ;
79+ case STAGE_AUTO:
80+ return " AUTO" ;
81+ default :
82+ VPR_FATAL_ERROR (VPR_ERROR_UNKNOWN, " Invalid e_stage_action.\n " );
83+ }
84+ }
85+
7186void ClusteredNetlistStats::writeHuman (std::ostream& output) const {
7287 output << " Cluster level netlist and block usage statistics\n " ;
7388 output << " Netlist num_nets: " << num_nets << " \n " ;
0 commit comments