blob: b10db93730a687b7bc97c7379501870860d0cdec [file] [log] [blame]
#include "clock_modeling.h"
#include "globals.h"
#include "vtr_assert.h"
void ClockModeling::treat_clock_pins_as_non_globals() {
auto& device_ctx = g_vpr_ctx.device();
for (int type_idx = 0; type_idx < device_ctx.num_block_types; type_idx++) {
auto type = device_ctx.block_types[type_idx];
if(type.pb_type) {
for(auto clock_pin_idx : type.get_clock_pins_indices()) {
// clock pins should be originally considered as global when reading the architecture
VTR_ASSERT(type.is_global_pin[clock_pin_idx]);
type.is_global_pin[clock_pin_idx] = false;
}
}
}
}