openfpga/src/utils/fabric_bitstream_utils.cpp
/********************************************************************
 * Find the longest bitstream size of a fabric bitstream
 *******************************************************************/
Find the longest bitstream size of a fabric bitstream
Find the longest bitstream size of a fabric bitstream
size_t find_fabric_regional_bitstream_max_size(const FabricBitstream& fabric_bitstream) {
  size_t regional_bitstream_max_size = 0;
  for (const auto& region : fabric_bitstream.regions()) {
    if (regional_bitstream_max_size < fabric_bitstream.region_bits(region).size()) {
      regional_bitstream_max_size = fabric_bitstream.region_bits(region).size();
    }
  }
  return regional_bitstream_max_size;
}
size_t find_fabric_regional_bitstream_max_size ( const FabricBitstream & fabric_bitstream ) { size_t regional_bitstream_max_size = 0 ; for ( const auto & region : fabric_bitstream . regions ( ) ) { if ( regional_bitstream_max_size < fabric_bitstream . region_bits ( region ) . size ( ) ) { regional_bitstream_max_size = fabric_bitstream . region_bits ( region ) . size ( ) ; } } return regional_bitstream_max_size ; }
Find the longest bitstream size of a fabric bitstream
Find the longest bitstream size of a fabric bitstream
/* Find the longest regional bitstream */