aboutsummaryrefslogtreecommitdiffstats
path: root/fpga_interchange/cost_map.cc
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2022-12-07 10:00:53 +0100
committergatecat <gatecat@ds0.me>2022-12-07 10:00:53 +0100
commite260ac33abdd175f38ea5d8367c52a154b486648 (patch)
tree56ca8a3877a1270bcac51160067e1016abcb97cf /fpga_interchange/cost_map.cc
parentcd3b76e3f7ce9d9927087f6fdd38e04968688ee7 (diff)
downloadnextpnr-e260ac33abdd175f38ea5d8367c52a154b486648.tar.gz
nextpnr-e260ac33abdd175f38ea5d8367c52a154b486648.tar.bz2
nextpnr-e260ac33abdd175f38ea5d8367c52a154b486648.zip
refactor: ArcBounds -> BoundingBox
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'fpga_interchange/cost_map.cc')
-rw-r--r--fpga_interchange/cost_map.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/fpga_interchange/cost_map.cc b/fpga_interchange/cost_map.cc
index c20ba11b..d960c7cf 100644
--- a/fpga_interchange/cost_map.cc
+++ b/fpga_interchange/cost_map.cc
@@ -184,7 +184,7 @@ static void assign_min_entry(delay_t *dst, const delay_t &src)
}
std::pair<delay_t, int> CostMap::get_nearby_cost_entry(const boost::multi_array<delay_t, 2> &matrix, int cx, int cy,
- const ArcBounds &bounds)
+ const BoundingBox &bounds)
{
#ifdef DEBUG_FILL
log_info("Filling %d, %d within (%d, %d, %d, %d)\n", cx, cy, bounds.x0, bounds.y0, bounds.x1, bounds.y1);
@@ -249,7 +249,7 @@ void CostMap::fill_holes(const Context *ctx, const TypeWirePair &type_pair, boos
// find missing cost entries and fill them in by copying a nearby cost entry
std::vector<std::tuple<unsigned, unsigned, delay_t>> missing;
bool couldnt_fill = false;
- auto shifted_bounds = ArcBounds(0, 0, matrix.shape()[0] - 1, matrix.shape()[1] - 1);
+ auto shifted_bounds = BoundingBox(0, 0, matrix.shape()[0] - 1, matrix.shape()[1] - 1);
int max_fill = 0;
for (unsigned ix = 0; ix < matrix.shape()[0]; ix++) {
for (unsigned iy = 0; iy < matrix.shape()[1]; iy++) {