Fix placer build for dummy arch
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
parent
c13c15bada
commit
37d2fc65b1
@ -47,7 +47,7 @@ void place_design(Design *design) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bel_type = belTypeFromId(cell->type);
|
bel_type = belTypeFromId(cell->type);
|
||||||
if (bel_type == TYPE_NIL) {
|
if (bel_type == BelType()) {
|
||||||
log_error("No Bel of type \'%s\' defined for "
|
log_error("No Bel of type \'%s\' defined for "
|
||||||
"this chip\n", cell->type.c_str());
|
"this chip\n", cell->type.c_str());
|
||||||
}
|
}
|
||||||
@ -56,9 +56,9 @@ void place_design(Design *design) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for(auto bel_type_name : types_used) {
|
for(auto bel_type_name : types_used) {
|
||||||
BelRange blist = design->chip.getBels();
|
auto blist = design->chip.getBels();
|
||||||
BelType bel_type = belTypeFromId(bel_type_name);
|
BelType bel_type = belTypeFromId(bel_type_name);
|
||||||
BelIterator bi = blist.begin();
|
auto bi = blist.begin();
|
||||||
|
|
||||||
for(auto cell_entry : design->cells) {
|
for(auto cell_entry : design->cells) {
|
||||||
CellInfo *cell = cell_entry.second;
|
CellInfo *cell = cell_entry.second;
|
||||||
|
@ -20,3 +20,14 @@
|
|||||||
#include "chip.h"
|
#include "chip.h"
|
||||||
|
|
||||||
Chip::Chip(ChipArgs) {}
|
Chip::Chip(ChipArgs) {}
|
||||||
|
|
||||||
|
const vector<BelId> &Chip::getBels() const
|
||||||
|
{
|
||||||
|
static vector<BelId> ret;
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
BelType Chip::getBelType(BelId bel) const
|
||||||
|
{
|
||||||
|
return BelType();
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user