Skip to content

Commit c59356e

Browse files
committed
Fix compilation with ENABLE_CLASSIC_VPR_STA defined
1 parent 02f21e7 commit c59356e

File tree

6 files changed

+16
-11
lines changed

6 files changed

+16
-11
lines changed

vpr/SRC/base/place_and_route.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ static int binary_search_place_and_route(t_placer_opts placer_opts,
4949
t_router_opts router_opts,
5050
t_det_routing_arch *det_routing_arch, t_segment_inf * segment_inf,
5151
float** net_delay,
52+
const t_timing_inf& timing_inf,
5253
std::shared_ptr<SetupTimingInfo> timing_info);
5354

5455
static float comp_width(t_chan * chan, float x, float separation);
@@ -146,7 +147,11 @@ bool place_and_route(t_placer_opts placer_opts,
146147
arch,
147148
router_opts.verify_binary_search, router_opts.min_channel_width_hint,
148149
annealing_sched, router_opts,
149-
det_routing_arch, segment_inf, net_delay, timing_info);
150+
det_routing_arch, segment_inf, net_delay,
151+
#ifdef ENABLE_CLASSIC_VPR_STA
152+
timing_inf,
153+
#endif
154+
timing_info);
150155
success = (power_ctx.solution_inf.channel_width > 0 ? true : false);
151156
} else {
152157
//Route at the specified channel width
@@ -171,6 +176,7 @@ bool place_and_route(t_placer_opts placer_opts,
171176
segment_inf, net_delay,
172177
#ifdef ENABLE_CLASSIC_VPR_STA
173178
slacks,
179+
timing_inf,
174180
#endif
175181
timing_info,
176182
arch->Chans,
@@ -243,6 +249,7 @@ static int binary_search_place_and_route(t_placer_opts placer_opts,
243249
t_router_opts router_opts,
244250
t_det_routing_arch *det_routing_arch, t_segment_inf * segment_inf,
245251
float** net_delay,
252+
const t_timing_inf& timing_inf,
246253
std::shared_ptr<SetupTimingInfo> timing_info) {
247254

248255
/* This routine performs a binary search to find the minimum number of *
@@ -379,6 +386,7 @@ static int binary_search_place_and_route(t_placer_opts placer_opts,
379386
net_delay,
380387
#ifdef ENABLE_CLASSIC_VPR_STA
381388
slacks,
389+
timing_inf,
382390
#endif
383391
timing_info,
384392
arch->Chans,
@@ -496,6 +504,7 @@ static int binary_search_place_and_route(t_placer_opts placer_opts,
496504
segment_inf, net_delay,
497505
#ifdef ENABLE_CLASSIC_VPR_STA
498506
slacks,
507+
timing_inf,
499508
#endif
500509
timing_info,
501510
arch->Chans, clb_opins_used_locally, arch->Directs, arch->num_directs,

vpr/SRC/base/vpr_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ struct t_cluster_placement_stats {
295295

296296
//Enable the legacy STA engine to run along side the
297297
//new STA engine
298-
//#define ENABLE_CLASSIC_VPR_STA
298+
#define ENABLE_CLASSIC_VPR_STA
299299

300300
// #define PATH_COUNTING 'P'
301301
/* Uncomment this to turn on path counting. Its value determines how path criticality

vpr/SRC/route/route_common.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ bool try_route(int width_fac, t_router_opts router_opts,
269269
float **net_delay,
270270
#ifdef ENABLE_CLASSIC_VPR_STA
271271
t_slack * slacks,
272+
const t_timing_inf& timing_inf,
272273
#endif
273274
std::shared_ptr<SetupTimingInfo> timing_info,
274275
t_chan_width_dist chan_width_dist, t_clb_opins_used& clb_opins_used_locally,
@@ -352,11 +353,9 @@ bool try_route(int width_fac, t_router_opts router_opts,
352353
timing_info,
353354
#ifdef ENABLE_CLASSIC_VPR_STA
354355
slacks,
356+
timing_inf,
355357
#endif
356358
clb_opins_used_locally,
357-
#ifdef ENABLE_CLASSIC_VPR_STA
358-
, timing_inf
359-
#endif
360359
first_iteration_priority
361360
);
362361

vpr/SRC/route/route_export.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ bool try_route(int width_fac, t_router_opts router_opts,
1515
float **net_delay,
1616
#ifdef ENABLE_CLASSIC_VPR_STA
1717
t_slack * slacks,
18+
const t_timing_inf& timing_inf,
1819
#endif
1920
std::shared_ptr<SetupTimingInfo> timing_info,
2021
t_chan_width_dist chan_width_dist, t_clb_opins_used& clb_opins_used_locally,

vpr/SRC/route/route_timing.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,9 @@ bool try_timing_driven_route(t_router_opts router_opts,
126126
std::shared_ptr<SetupTimingInfo> timing_info,
127127
#ifdef ENABLE_CLASSIC_VPR_STA
128128
t_slack * slacks,
129+
const t_timing_inf &timing_inf,
129130
#endif
130131
t_clb_opins_used& clb_opins_used_locally,
131-
#ifdef ENABLE_CLASSIC_VPR_STA
132-
, const t_timing_inf &timing_inf
133-
#endif
134132
ScreenUpdatePriority first_iteration_priority) {
135133

136134
/* Timing-driven routing algorithm. The timing graph (includes slack) *

vpr/SRC/route/route_timing.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ bool try_timing_driven_route(t_router_opts router_opts,
1717
std::shared_ptr<SetupTimingInfo> timing_info,
1818
#ifdef ENABLE_CLASSIC_VPR_STA
1919
t_slack * slacks,
20+
const t_timing_inf &timing_inf,
2021
#endif
2122
t_clb_opins_used& clb_opins_used_locally,
22-
#ifdef ENABLE_CLASSIC_VPR_STA
23-
, const t_timing_inf &timing_inf
24-
#endif
2523
ScreenUpdatePriority first_iteration_priority
2624
);
2725
bool try_timing_driven_route_net(int inet, int itry, float pres_fac,

0 commit comments

Comments
 (0)