Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 760 t_type_ptr find_most_common_block_type(const DeviceGrid& grid) {
- 761 auto& device_ctx = g_vpr_ctx.device();
- 762
- 763 t_type_ptr max_type = nullptr;
- 764 size_t max_count = 0;
- 765 for (int itype = 0; itype < device_ctx.num_block_types; ++itype) {
- 766 t_type_ptr type = &device_ctx.block_types[itype];
- 767
- 768 size_t inst_cnt = grid.num_instances(type);
- 769 if (max_count < inst_cnt) {
- 770 max_count = inst_cnt;
- 771 max_type = type;
- 772 }
- 773 }
- 774
- 775 VTR_ASSERT(max_type);
- 776 return max_type;
- 777 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement