diff options
author | gatecat <gatecat@ds0.me> | 2021-03-12 22:25:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-12 22:25:24 +0000 |
commit | 035b797ec230aa3d686d9013e0e15d79cd2982c3 (patch) | |
tree | abf9fa20adc3d2e0a171cef68cd82d9d03068809 /common/nextpnr.h | |
parent | bffaad477a541459e072339c28edf0087437c254 (diff) | |
parent | a342ae56e08c9aaaa907cf18c60d4b4772c575aa (diff) | |
download | nextpnr-035b797ec230aa3d686d9013e0e15d79cd2982c3.tar.gz nextpnr-035b797ec230aa3d686d9013e0e15d79cd2982c3.tar.bz2 nextpnr-035b797ec230aa3d686d9013e0e15d79cd2982c3.zip |
Merge pull request #620 from litghost/handle_partial_routed
Add support for partially routed nets from the placer in router2.
Diffstat (limited to 'common/nextpnr.h')
-rw-r--r-- | common/nextpnr.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/common/nextpnr.h b/common/nextpnr.h index 404900c4..90c3ed6d 100644 --- a/common/nextpnr.h +++ b/common/nextpnr.h @@ -370,6 +370,8 @@ struct ArcBounds dist += loc.y - y1; return dist; }; + + bool contains(int x, int y) const { return x >= x0 && y >= y0 && x <= x1 && y <= y1; } }; NEXTPNR_NAMESPACE_END @@ -426,9 +428,10 @@ enum PlaceStrength STRENGTH_NONE = 0, STRENGTH_WEAK = 1, STRENGTH_STRONG = 2, - STRENGTH_FIXED = 3, - STRENGTH_LOCKED = 4, - STRENGTH_USER = 5 + STRENGTH_PLACER = 3, + STRENGTH_FIXED = 4, + STRENGTH_LOCKED = 5, + STRENGTH_USER = 6 }; struct PortRef |