[core] remove warnings

This commit is contained in:
tangxifan 2024-07-30 18:50:49 -07:00
parent ae95357991
commit ef6b6f8e40
4 changed files with 4 additions and 4 deletions

View File

@ -45,7 +45,7 @@ const RRGSB& DeviceRRGSB::get_gsb(const size_t& x, const size_t& y) const {
/* Get a rr switch block in the array with a coordinate */ /* Get a rr switch block in the array with a coordinate */
const RRGSB& DeviceRRGSB::get_gsb_by_cb_coordinate( const RRGSB& DeviceRRGSB::get_gsb_by_cb_coordinate(
const t_rr_type& cb_type, const vtr::Point<size_t>& coordinate) const { const vtr::Point<size_t>& coordinate) const {
vtr::Point<size_t> gsb_coord = coordinate; vtr::Point<size_t> gsb_coord = coordinate;
VTR_ASSERT(validate_coordinate(gsb_coord)); VTR_ASSERT(validate_coordinate(gsb_coord));

View File

@ -40,7 +40,7 @@ class DeviceRRGSB {
const; /* Get a rr switch block in the array with a coordinate */ const; /* Get a rr switch block in the array with a coordinate */
/* Get a gsb using its connection block coordinate */ /* Get a gsb using its connection block coordinate */
const RRGSB& get_gsb_by_cb_coordinate( const RRGSB& get_gsb_by_cb_coordinate(
const t_rr_type& cb_type, const vtr::Point<size_t>& coordinate) const; const vtr::Point<size_t>& coordinate) const;
size_t get_num_gsb_unique_module() size_t get_num_gsb_unique_module()
const; /* get the number of unique mirrors of GSB */ const; /* get the number of unique mirrors of GSB */
size_t get_num_sb_unique_module() size_t get_num_sb_unique_module()

View File

@ -1253,7 +1253,7 @@ static int build_top_module_global_net_from_tile_clock_arch_tree(
/* Get the tile module and instance at the entry point */ /* Get the tile module and instance at the entry point */
const RRGSB& rr_gsb = device_rr_gsb.get_gsb_by_cb_coordinate( const RRGSB& rr_gsb = device_rr_gsb.get_gsb_by_cb_coordinate(
entry_track_type, vtr::Point<size_t>(entry_point.x(), entry_point.y())); vtr::Point<size_t>(entry_point.x(), entry_point.y()));
vtr::Point<size_t> cb_coord_in_tile = rr_gsb.get_sb_coordinate(); vtr::Point<size_t> cb_coord_in_tile = rr_gsb.get_sb_coordinate();
FabricTileId curr_fabric_tile_id = fabric_tile.find_tile_by_cb_coordinate( FabricTileId curr_fabric_tile_id = fabric_tile.find_tile_by_cb_coordinate(
entry_track_type, cb_coord_in_tile); entry_track_type, cb_coord_in_tile);

View File

@ -1289,7 +1289,7 @@ static int build_top_module_global_net_from_clock_arch_tree(
/* Get the connection block module and instance at the entry point */ /* Get the connection block module and instance at the entry point */
vtr::Point<size_t> entry_cb_coord(entry_point.x(), entry_point.y()); vtr::Point<size_t> entry_cb_coord(entry_point.x(), entry_point.y());
const RRGSB& rr_gsb = device_rr_gsb.get_gsb_by_cb_coordinate( const RRGSB& rr_gsb = device_rr_gsb.get_gsb_by_cb_coordinate(
entry_track_type, entry_cb_coord); entry_cb_coord);
vtr::Point<size_t> entry_unique_cb_coord = vtr::Point<size_t> entry_unique_cb_coord =
device_rr_gsb.get_cb_unique_module(entry_track_type, entry_cb_coord) device_rr_gsb.get_cb_unique_module(entry_track_type, entry_cb_coord)
.get_cb_coordinate(entry_track_type); .get_cb_coordinate(entry_track_type);