[core] code format

This commit is contained in:
tangxifan 2023-08-17 13:54:31 -07:00
parent 414f7379c6
commit 399f087c50
1 changed files with 10 additions and 5 deletions

View File

@ -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;
@ -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;
@ -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;
@ -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;
@ -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;