Skip to content

Commit 1232d6f

Browse files
Merge pull request verilog-to-routing#3068 from AlexandreSinger/feature-include-cleanup
[Infra] Cleaned Up Includes in Analysis, Power, and Util Dirs
2 parents 0391d48 + 90c70e0 commit 1232d6f

18 files changed

Lines changed: 15 additions & 61 deletions

vpr/src/analysis/timing_reports.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
#include "timing_reports.h"
22

33
#include <fstream>
4-
#include <sstream>
54

65
#include "timing_reports.h"
7-
#include "rr_graph.h"
86

97
#include "tatum/TimingReporter.hpp"
108

11-
#include "vtr_version.h"
129
#include "vpr_types.h"
1310
#include "globals.h"
1411

vpr/src/analysis/timing_reports.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#ifndef VPR_TIMING_REPORTS_H
2-
#define VPR_TIMING_REPORTS_H
1+
#pragma once
32

43
#include "timing_info_fwd.h"
54
#include "AnalysisDelayCalculator.h"
@@ -45,5 +44,3 @@ void generate_hold_timing_stats(const std::string& prefix,
4544
void generate_net_timing_report(const std::string& prefix,
4645
const SetupHoldTimingInfo& timing_info,
4746
const AnalysisDelayCalculator& delay_calc);
48-
49-
#endif

vpr/src/power/PowerSpicedComponent.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
*
1616
********************************************************************/
1717

18-
#ifndef __POWER_POWERSPICEDCOMPONENT_NMOS_H__
19-
#define __POWER_POWERSPICEDCOMPONENT_NMOS_H__
18+
#pragma once
2019

2120
#include <vector>
2221
#include <string>
@@ -85,5 +84,3 @@ class PowerSpicedComponent {
8584
bool is_done_callibration();
8685
void print(FILE* fp);
8786
};
88-
89-
#endif

vpr/src/power/power.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
*/
2323

2424
/************************* INCLUDES *********************************/
25-
#include <list>
26-
2725
#include "vpr_types.h"
2826
#include "PowerSpicedComponent.h"
2927

vpr/src/power/power_callibrate.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,11 @@
2020
*/
2121

2222
/************************* INCLUDES *********************************/
23-
#include <iostream>
24-
2523
#include "vtr_assert.h"
26-
#include "vtr_memory.h"
2724

2825
#include "power_callibrate.h"
2926
#include "power_components.h"
30-
#include "power_lowlevel.h"
3127
#include "power_util.h"
32-
#include "power_cmos_tech.h"
3328
#include "globals.h"
3429

3530
/************************* FUNCTION DECLARATIONS ********************/

vpr/src/power/power_callibrate.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@
2121

2222
#pragma once
2323

24-
/************************* INCLUDES *********************************/
25-
#include "power.h"
26-
2724
/************************* DEFINES **********************************/
2825
const float power_callib_period = 5e-9;
2926

vpr/src/power/power_cmos_tech.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,12 @@
2929
#include "pugixml.hpp"
3030
#include "pugixml_util.hpp"
3131

32-
#include "vtr_util.h"
33-
#include "vtr_memory.h"
34-
#include "vtr_math.h"
35-
3632
#include "vpr_error.h"
3733

3834
#include "globals.h"
3935
#include "power_cmos_tech.h"
4036
#include "power.h"
4137
#include "power_util.h"
42-
#include "read_xml_util.h"
4338
#include "PowerSpicedComponent.h"
4439
#include "power_callibrate.h"
4540

vpr/src/power/power_cmos_tech.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
* these data structures.
2323
*/
2424

25-
#ifndef __POWER_CMOS_TECH_H__
26-
#define __POWER_CMOS_TECH_H__
25+
#pragma once
2726

2827
/************************* INCLUDES *********************************/
2928
#include "power.h"
@@ -50,4 +49,3 @@ void power_find_buffer_sc_levr(t_power_buffer_sc_levr_inf** lower,
5049
t_power_buffer_sc_levr_inf** upper,
5150
t_power_buffer_strength_inf* buffer_sc,
5251
int input_mux_size);
53-
#endif

vpr/src/power/power_components.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727

2828
#include "vtr_math.h"
2929
#include "vtr_assert.h"
30-
#include "vtr_memory.h"
3130

3231
#include "power_components.h"
3332
#include "power_lowlevel.h"

vpr/src/power/power_components.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,11 @@
2020
* within the FPGA (flip-flops, LUTs, interconnect structures, etc).
2121
*/
2222

23-
#ifndef __POWER_COMPONENTS_H__
24-
#define __POWER_COMPONENTS_H__
23+
#pragma once
2524

2625
/************************* INCLUDES *********************************/
2726
#include <string>
2827
#include "power.h"
29-
#include "clustered_netlist.h"
3028

3129
/************************* Defines **********************************/
3230

@@ -93,5 +91,3 @@ void power_usage_mux_multilevel(t_power_usage* power_usage,
9391
bool output_level_restored,
9492
float period);
9593
void power_usage_buffer(t_power_usage* power_usage, float size, float in_prob, float in_dens, bool level_restored, float period);
96-
97-
#endif

0 commit comments

Comments
 (0)