vpr7_x2p/vpr/SRC/fpga_x2p/module_builder/build_top_module_utils.cpp
/********************************************************************
 * Find the cb_type of a GSB in the top-level module 
 * depending on the side of SB
 * TOP/BOTTOM side: CHANY
 * RIGHT/LEFT side: CHANX
 *******************************************************************/
Find the cb_type of a GSB in the top-level module
depending on the side of SB
TOP/BOTTOM side: CHANY
RIGHT/LEFT side: CHANX
Find the cb_type of a GSB in the top - level module depending on the side of SB TOP / BOTTOM side : CHANY RIGHT / LEFT side : CHANX
t_rr_type find_top_module_cb_type_by_sb_side(const e_side& sb_side) {
  VTR_ASSERT(NUM_SIDES != sb_side);
  if ((TOP == sb_side) || (BOTTOM == sb_side)) {
    return CHANY;
  }
  VTR_ASSERT((RIGHT == sb_side) || (LEFT == sb_side));
  return CHANX;
}
t_rr_type find_top_module_cb_type_by_sb_side ( const e_side & sb_side ) { VTR_ASSERT ( NUM_SIDES != sb_side ) ; if ( ( TOP == sb_side ) || ( BOTTOM == sb_side ) ) { return CHANY ; } VTR_ASSERT ( ( RIGHT == sb_side ) || ( LEFT == sb_side ) ) ; return CHANX ; }
Find the cb_type of a GSB in the top-level module
 depending on the side of SB
 TOP/BOTTOM side: CHANY
 RIGHT/LEFT side: CHANX
Find the cb_type of a GSB in the top - level module depending on the side of SB TOP / BOTTOM side : CHANY RIGHT / LEFT side : CHANX