Finish implementing new generic APIs.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
This commit is contained in:
parent
8d9390fc46
commit
310f9f7b84
@ -272,11 +272,17 @@ struct Arch : BaseCtx
|
|||||||
bool route();
|
bool route();
|
||||||
|
|
||||||
std::vector<IdString> getCellTypes() const {
|
std::vector<IdString> getCellTypes() const {
|
||||||
return {};
|
std::vector<IdString> cell_types;
|
||||||
|
cell_types.reserve(bels.size());
|
||||||
|
for(auto bel : bels) {
|
||||||
|
cell_types.push_back(bel.first);
|
||||||
|
}
|
||||||
|
|
||||||
|
return cell_types;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<PartitionId> getPartitions() const {
|
std::vector<PartitionId> getPartitions() const {
|
||||||
return {};
|
return getCellTypes();
|
||||||
}
|
}
|
||||||
|
|
||||||
IdString getPartitionName(PartitionId partition) const {
|
IdString getPartitionName(PartitionId partition) const {
|
||||||
@ -296,7 +302,13 @@ struct Arch : BaseCtx
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::vector<BelId> getBelsForPartition(PartitionId partition) const {
|
std::vector<BelId> getBelsForPartition(PartitionId partition) const {
|
||||||
return {};
|
std::vector<BelId> bels;
|
||||||
|
for(BelId bel : getBels()) {
|
||||||
|
if(partition == getPartitionForBel(bel)) {
|
||||||
|
bels.push_back(bel);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return bels;
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::vector<GraphicElement> &getDecalGraphics(DecalId decal) const;
|
const std::vector<GraphicElement> &getDecalGraphics(DecalId decal) const;
|
||||||
|
Loading…
Reference in New Issue
Block a user