Skip to content

Commit

Permalink
[core] code format
Browse files Browse the repository at this point in the history
  • Loading branch information
tangxifan committed Aug 17, 2023
1 parent 414f737 commit 399f087
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions openfpga/src/annotation/fabric_tile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,8 @@ bool FabricTile::register_tile_in_lookup(const FabricTileId& tile_id,
}
/* Throw error if this coord is already registered! */
if (tile_coord2id_lookup_[coord.x()][coord.y()]) {
VTR_LOG_ERROR("Tile at [%lu][%lu] has already been registered!\n", coord.x(), coord.y());
VTR_LOG_ERROR("Tile at [%lu][%lu] has already been registered!\n",
coord.x(), coord.y());
return false;
}
tile_coord2id_lookup_[coord.x()][coord.y()] = tile_id;
Expand All @@ -401,7 +402,8 @@ bool FabricTile::register_pb_in_lookup(const FabricTileId& tile_id,
/* Throw error if this coord is already registered! */
if (pb_coord2id_lookup_[coord.x()][coord.y()]) {
VTR_LOG_ERROR(
"Programmable block at [%lu][%lu] has already been registered!\n", coord.x(), coord.y());
"Programmable block at [%lu][%lu] has already been registered!\n",
coord.x(), coord.y());
return false;
}
pb_coord2id_lookup_[coord.x()][coord.y()] = tile_id;
Expand Down Expand Up @@ -429,7 +431,8 @@ bool FabricTile::register_cbx_in_lookup(const FabricTileId& tile_id,
if (cbx_coord2id_lookup_[coord.x()][coord.y()]) {
VTR_LOG_ERROR(
"X-direction connection block at [%lu][%lu] has already been "
"registered!\n", coord.x(), coord.y());
"registered!\n",
coord.x(), coord.y());
return false;
}
cbx_coord2id_lookup_[coord.x()][coord.y()] = tile_id;
Expand Down Expand Up @@ -457,7 +460,8 @@ bool FabricTile::register_cby_in_lookup(const FabricTileId& tile_id,
if (cby_coord2id_lookup_[coord.x()][coord.y()]) {
VTR_LOG_ERROR(
"Y-direction connection block at [%lu][%lu] has already been "
"registered!\n", coord.x(), coord.y());
"registered!\n",
coord.x(), coord.y());
return false;
}
cby_coord2id_lookup_[coord.x()][coord.y()] = tile_id;
Expand All @@ -483,7 +487,8 @@ bool FabricTile::register_sb_in_lookup(const FabricTileId& tile_id,
}
/* Throw error if this coord is already registered! */
if (sb_coord2id_lookup_[coord.x()][coord.y()]) {
VTR_LOG_ERROR("Switch block at [%lu][%lu] has already been registered!\n", coord.x(), coord.y());
VTR_LOG_ERROR("Switch block at [%lu][%lu] has already been registered!\n",
coord.x(), coord.y());
return false;
}
sb_coord2id_lookup_[coord.x()][coord.y()] = tile_id;
Expand Down

0 comments on commit 399f087

Please sign in to comment.