1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-04-30 05:34:53 +00:00

refactor: ArcBounds -> BoundingBox

Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
gatecat
2022-12-07 10:00:53 +01:00
parent cd3b76e3f7
commit e260ac33ab
26 changed files with 57 additions and 57 deletions

View File

@@ -377,10 +377,10 @@ template <typename R> struct BaseArch : ArchAPI<R>
// Cluster methods
virtual CellInfo *getClusterRootCell(ClusterId cluster) const override { return get_cluster_root(this, cluster); }
virtual ArcBounds getClusterBounds(ClusterId cluster) const override
virtual BoundingBox getClusterBounds(ClusterId cluster) const override
{
return if_using_basecluster<ArcBounds>(get_cluster_root(this, cluster), [](const BaseClusterInfo *cluster) {
ArcBounds bounds(0, 0, 0, 0);
return if_using_basecluster<BoundingBox>(get_cluster_root(this, cluster), [](const BaseClusterInfo *cluster) {
BoundingBox bounds(0, 0, 0, 0);
for (auto child : cluster->constr_children) {
if_using_basecluster<void>(child, [&](const BaseClusterInfo *child) {
bounds.x0 = std::min(bounds.x0, child->constr_x);