mirror of https://github.com/YosysHQ/nextpnr.git
Add ArchNetInfo and ArchCellInfo
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
parent
3ef85b30b4
commit
ddfc535df7
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue