Add updators to modify cell sizes on the fly in Coloquinte.

This commit is contained in:
Jean-Paul Chaput 2021-01-13 19:10:31 +01:00
parent 79e47d1ef2
commit 78cbb662e6
1 changed files with 7 additions and 0 deletions

View File

@ -159,6 +159,13 @@ class netlist{
index_t get_cell_ind(index_t external_ind) const{ return cell_internal_mapping_[external_ind]; }
index_t get_net_ind(index_t external_ind) const{ return net_internal_mapping_[external_ind]; }
point<int_t> get_cell_size(index_t external_ind){
return cell_sizes_[ cell_internal_mapping_[external_ind] ];
}
void set_cell_size(index_t external_ind,point<int_t> cell_size){
cell_sizes_[cell_internal_mapping_[external_ind]] = cell_size;
}
};
inline netlist::netlist(std::vector<temporary_cell> cells, std::vector<temporary_net> nets, std::vector<temporary_pin> all_pins){