Remove getBelsByType() API
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
parent
bfa1137fe0
commit
90fe002a36
14
ecp5/arch.h
14
ecp5/arch.h
@ -482,20 +482,6 @@ struct Arch : BaseCtx
|
||||
return range;
|
||||
}
|
||||
|
||||
BelRange getBelsByType(BelType type) const
|
||||
{
|
||||
BelRange range;
|
||||
// FIXME
|
||||
#if 0
|
||||
if (type == "TYPE_A") {
|
||||
range.b.cursor = bels_type_a_begin;
|
||||
range.e.cursor = bels_type_a_end;
|
||||
}
|
||||
...
|
||||
#endif
|
||||
return range;
|
||||
}
|
||||
|
||||
BelRange getBelsAtSameTile(BelId bel) const;
|
||||
|
||||
BelType getBelType(BelId bel) const
|
||||
|
@ -75,8 +75,6 @@ void Arch::addBel(IdString name, IdString type, Loc loc, bool gb)
|
||||
bi.gb = gb;
|
||||
|
||||
bel_ids.push_back(name);
|
||||
bel_ids_by_type[type].push_back(name);
|
||||
|
||||
bel_by_loc[loc] = name;
|
||||
|
||||
if (bels_by_tile.size() <= loc.x)
|
||||
@ -225,14 +223,6 @@ IdString Arch::getConflictingBelCell(BelId bel) const { return bels.at(bel).boun
|
||||
|
||||
const std::vector<BelId> &Arch::getBels() const { return bel_ids; }
|
||||
|
||||
const std::vector<BelId> &Arch::getBelsByType(BelType type) const
|
||||
{
|
||||
static std::vector<BelId> empty_list;
|
||||
if (bel_ids_by_type.count(type))
|
||||
return bel_ids_by_type.at(type);
|
||||
return empty_list;
|
||||
}
|
||||
|
||||
BelType Arch::getBelType(BelId bel) const { return bels.at(bel).type; }
|
||||
|
||||
WireId Arch::getBelPinWire(BelId bel, PortPin pin) const { return bels.at(bel).pins.at(pin).wire; }
|
||||
|
@ -84,7 +84,6 @@ struct Arch : BaseCtx
|
||||
std::unordered_map<GroupId, GroupInfo> groups;
|
||||
|
||||
std::vector<IdString> bel_ids, wire_ids, pip_ids;
|
||||
std::unordered_map<IdString, std::vector<IdString>> bel_ids_by_type;
|
||||
|
||||
std::unordered_map<Loc, BelId> bel_by_loc;
|
||||
std::vector<std::vector<std::vector<BelId>>> bels_by_tile;
|
||||
@ -151,7 +150,6 @@ struct Arch : BaseCtx
|
||||
IdString getBoundBelCell(BelId bel) const;
|
||||
IdString getConflictingBelCell(BelId bel) const;
|
||||
const std::vector<BelId> &getBels() const;
|
||||
const std::vector<BelId> &getBelsByType(BelType type) const;
|
||||
BelType getBelType(BelId bel) const;
|
||||
WireId getBelPinWire(BelId bel, PortPin pin) const;
|
||||
PortType getBelPinType(BelId bel, PortPin pin) const;
|
||||
|
14
ice40/arch.h
14
ice40/arch.h
@ -439,20 +439,6 @@ struct Arch : BaseCtx
|
||||
return range;
|
||||
}
|
||||
|
||||
BelRange getBelsByType(BelType type) const
|
||||
{
|
||||
BelRange range;
|
||||
// FIXME
|
||||
#if 0
|
||||
if (type == "TYPE_A") {
|
||||
range.b.cursor = bels_type_a_begin;
|
||||
range.e.cursor = bels_type_a_end;
|
||||
}
|
||||
...
|
||||
#endif
|
||||
return range;
|
||||
}
|
||||
|
||||
Loc getBelLocation(BelId bel) const
|
||||
{
|
||||
Loc loc;
|
||||
|
Loading…
Reference in New Issue
Block a user