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;
|
PlaceStrength strength = STRENGTH_NONE;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct NetInfo
|
struct NetInfo : ArchNetInfo
|
||||||
{
|
{
|
||||||
IdString name;
|
IdString name;
|
||||||
PortRef driver;
|
PortRef driver;
|
||||||
@ -225,7 +225,7 @@ struct PortInfo
|
|||||||
PortType type;
|
PortType type;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct CellInfo
|
struct CellInfo : ArchCellInfo
|
||||||
{
|
{
|
||||||
IdString name, type;
|
IdString name, type;
|
||||||
std::unordered_map<IdString, PortInfo> ports;
|
std::unordered_map<IdString, PortInfo> ports;
|
||||||
|
@ -129,6 +129,9 @@ struct DecalId
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct ArchNetInfo { };
|
||||||
|
struct ArchCellInfo { };
|
||||||
|
|
||||||
NEXTPNR_NAMESPACE_END
|
NEXTPNR_NAMESPACE_END
|
||||||
|
|
||||||
namespace std {
|
namespace std {
|
||||||
|
@ -52,4 +52,7 @@ typedef IdString PipId;
|
|||||||
typedef IdString GroupId;
|
typedef IdString GroupId;
|
||||||
typedef IdString DecalId;
|
typedef IdString DecalId;
|
||||||
|
|
||||||
|
struct ArchNetInfo { };
|
||||||
|
struct ArchCellInfo { };
|
||||||
|
|
||||||
NEXTPNR_NAMESPACE_END
|
NEXTPNR_NAMESPACE_END
|
||||||
|
@ -150,6 +150,9 @@ struct DecalId
|
|||||||
bool operator!=(const DecalId &other) const { return (type != other.type) || (index != other.index); }
|
bool operator!=(const DecalId &other) const { return (type != other.type) || (index != other.index); }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct ArchNetInfo { };
|
||||||
|
struct ArchCellInfo { };
|
||||||
|
|
||||||
NEXTPNR_NAMESPACE_END
|
NEXTPNR_NAMESPACE_END
|
||||||
|
|
||||||
namespace std {
|
namespace std {
|
||||||
@ -201,5 +204,4 @@ template <> struct hash<NEXTPNR_NAMESPACE_PREFIX DecalId>
|
|||||||
return seed;
|
return seed;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace std
|
} // namespace std
|
||||||
|
Loading…
Reference in New Issue
Block a user