aboutsummaryrefslogtreecommitdiffstats
path: root/common/nextpnr.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/nextpnr.h')
-rw-r--r--common/nextpnr.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/common/nextpnr.h b/common/nextpnr.h
index 9c6c9d68..8cbead7d 100644
--- a/common/nextpnr.h
+++ b/common/nextpnr.h
@@ -211,6 +211,12 @@ struct PortRef
delay_t budget = 0;
};
+struct PipMap
+{
+ PipId pip = PipId();
+ PlaceStrength strength = STRENGTH_NONE;
+};
+
struct NetInfo
{
IdString name;
@@ -219,9 +225,7 @@ struct NetInfo
std::unordered_map<IdString, std::string> attrs;
// wire -> uphill_pip
- std::unordered_map<WireId, PipId> wires;
-
- std::unordered_map<PipId, PlaceStrength> pips;
+ std::unordered_map<WireId, PipMap> wires;
};
enum PortType
@@ -357,6 +361,7 @@ struct Context : Arch
}
uint32_t checksum() const;
+ void check() const;
};
NEXTPNR_NAMESPACE_END