diff --git a/common/place.cc b/common/place.cc index e27a46be..172001a6 100644 --- a/common/place.cc +++ b/common/place.cc @@ -47,7 +47,7 @@ void place_design(Design *design) { } bel_type = belTypeFromId(cell->type); - if (bel_type == TYPE_NIL) { + if (bel_type == BelType()) { log_error("No Bel of type \'%s\' defined for " "this chip\n", cell->type.c_str()); } @@ -56,9 +56,9 @@ void place_design(Design *design) { } for(auto bel_type_name : types_used) { - BelRange blist = design->chip.getBels(); + auto blist = design->chip.getBels(); BelType bel_type = belTypeFromId(bel_type_name); - BelIterator bi = blist.begin(); + auto bi = blist.begin(); for(auto cell_entry : design->cells) { CellInfo *cell = cell_entry.second; diff --git a/dummy/chip.cc b/dummy/chip.cc index 642984ca..51246344 100644 --- a/dummy/chip.cc +++ b/dummy/chip.cc @@ -20,3 +20,14 @@ #include "chip.h" Chip::Chip(ChipArgs) {} + +const vector &Chip::getBels() const +{ + static vector ret; + return ret; +} + +BelType Chip::getBelType(BelId bel) const +{ + return BelType(); +}