vpr/src/tileable_rr_graph/rr_graph_builder_utils.cpp
/************************************************************************
 * Correct number of routing channel width to be compatible to 
 * uni-directional routing architecture
 ***********************************************************************/
Correct number of routing channel width to be compatible to
uni-directional routing architecture
Correct number of routing channel width to be compatible to uni - directional routing architecture
size_t find_unidir_routing_channel_width(const size_t& chan_width) {
  size_t actual_chan_width = chan_width;
  if (0 != actual_chan_width % 2) {
    actual_chan_width++; 
  }
  VTR_ASSERT(0 == actual_chan_width % 2);
  return actual_chan_width;
}
size_t find_unidir_routing_channel_width ( const size_t & chan_width ) { size_t actual_chan_width = chan_width ; if ( 0 != actual_chan_width % 2 ) { actual_chan_width ++ ; } VTR_ASSERT ( 0 == actual_chan_width % 2 ) ; return actual_chan_width ; }
Correct number of routing channel width to be compatible to
 uni-directional routing architecture
Correct number of routing channel width to be compatible to uni - directional routing architecture
/* Correct the chan_width: it should be an even number */ /* increment it to be even */