Add ArchNetInfo and ArchCellInfo

Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
Clifford Wolf 2018-07-17 20:04:49 +02:00
parent 3ef85b30b4
commit ddfc535df7
4 changed files with 11 additions and 3 deletions

View File

@ -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;

View File

@ -129,6 +129,9 @@ struct DecalId
}
};
struct ArchNetInfo { };
struct ArchCellInfo { };
NEXTPNR_NAMESPACE_END
namespace std {

View File

@ -52,4 +52,7 @@ typedef IdString PipId;
typedef IdString GroupId;
typedef IdString DecalId;
struct ArchNetInfo { };
struct ArchCellInfo { };
NEXTPNR_NAMESPACE_END

View File

@ -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