Skip to content

Commit add4cec

Browse files
committed
equivalent: skip empty tile
Signed-off-by: Alessandro Comodi <[email protected]>
1 parent 4e0fcb9 commit add4cec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vpr/src/base/vpr_api.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,10 @@ void vpr_create_device_grid(const t_vpr_setup& vpr_setup, const t_arch& Arch) {
434434
float device_utilization = calculate_device_utilization(device_ctx.grid, num_type_instances);
435435
VTR_LOG("Device Utilization: %.2f (target %.2f)\n", device_utilization, target_device_utilization);
436436
for (const auto& type : device_ctx.physical_tile_types) {
437+
if (is_empty_type(&type)) {
438+
continue;
439+
}
440+
437441
float util = 0.;
438442
if (device_ctx.grid.num_instances(&type) != 0) {
439443
util = float(num_type_instances[logical_block_type(&type)]) / device_ctx.grid.num_instances(&type);

0 commit comments

Comments
 (0)