Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ppl: add static cast to ensure rounding up the tracks offset #6576

Merged
merged 9 commits into from
Jan 23, 2025
3 changes: 2 additions & 1 deletion src/ppl/src/IOPlacer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,8 @@ void IOPlacer::findSlots(const std::set<int>& layers, Edge edge)

half_width *= thickness_multiplier;

int num_tracks_offset = std::ceil(corner_avoidance_ / min_dst_pins);
int num_tracks_offset
= std::ceil(static_cast<double>(corner_avoidance_) / min_dst_pins);

start_idx
= std::max(0.0,
Expand Down
Loading