mirror of
https://github.com/YosysHQ/nextpnr.git
synced 2026-10-07 18:33:45 +02:00
Add ArchNetInfo and ArchCellInfo
Signed-off-by: Clifford Wolf <[email protected]>
This commit is contained in:
+2
-2
@@ -200,7 +200,7 @@ struct PipMap
|
||||
PlaceStrength strength = STRENGTH_NONE;
|
||||
};
|
||||
|
||||
struct NetInfo
|
||||
struct NetInfo : ArchNetInfo
|
||||
{
|
||||
IdString name;
|
||||
PortRef driver;
|
||||
@@ -225,7 +225,7 @@ struct PortInfo
|
||||
PortType type;
|
||||
};
|
||||
|
||||
struct CellInfo
|
||||
struct CellInfo : ArchCellInfo
|
||||
{
|
||||
IdString name, type;
|
||||
std::unordered_map<IdString, PortInfo> ports;
|
||||
|
||||
@@ -129,6 +129,9 @@ struct DecalId
|
||||
}
|
||||
};
|
||||
|
||||
struct ArchNetInfo { };
|
||||
struct ArchCellInfo { };
|
||||
|
||||
NEXTPNR_NAMESPACE_END
|
||||
|
||||
namespace std {
|
||||
|
||||
@@ -52,4 +52,7 @@ typedef IdString PipId;
|
||||
typedef IdString GroupId;
|
||||
typedef IdString DecalId;
|
||||
|
||||
struct ArchNetInfo { };
|
||||
struct ArchCellInfo { };
|
||||
|
||||
NEXTPNR_NAMESPACE_END
|
||||
|
||||
+3
-1
@@ -150,6 +150,9 @@ struct DecalId
|
||||
bool operator!=(const DecalId &other) const { return (type != other.type) || (index != other.index); }
|
||||
};
|
||||
|
||||
struct ArchNetInfo { };
|
||||
struct ArchCellInfo { };
|
||||
|
||||
NEXTPNR_NAMESPACE_END
|
||||
|
||||
namespace std {
|
||||
@@ -201,5 +204,4 @@ template <> struct hash<NEXTPNR_NAMESPACE_PREFIX DecalId>
|
||||
return seed;
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace std
|
||||
|
||||
Reference in New Issue
Block a user