From 70f322ab449ce6786f1daacdc6c78df14a2ff5f5 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sat, 9 Jun 2018 19:52:22 +0200 Subject: Renamed LOC attribute to BEL, fix ice40 IO bel names Signed-off-by: Clifford Wolf --- common/place.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common') diff --git a/common/place.cc b/common/place.cc index 8f174478..17b31c69 100644 --- a/common/place.cc +++ b/common/place.cc @@ -41,13 +41,13 @@ void place_design(Design *design) // Initial constraints placer for (auto cell_entry : design->cells) { CellInfo *cell = cell_entry.second; - auto loc = cell->attrs.find("LOC"); + auto loc = cell->attrs.find("BEL"); if (loc != cell->attrs.end()) { std::string loc_name = loc->second; BelId bel = design->chip.getBelByName(IdString(loc_name)); if (bel == BelId()) { log_error("No Bel named \'%s\' located for " - "this chip (processing LOC on \'%s\')\n", + "this chip (processing BEL attribute on \'%s\')\n", loc_name.c_str(), cell->name.c_str()); } @@ -112,7 +112,7 @@ void place_design(Design *design) design->chip.bindBel(cell->bel, cell->name); // Back annotate location - cell->attrs["LOC"] = design->chip.getBelName(cell->bel); + cell->attrs["BEL"] = design->chip.getBelName(cell->bel); } } } -- cgit v1.2.3