diff --git a/coloquinte/src/coloquinte/netlist.hxx b/coloquinte/src/coloquinte/netlist.hxx index cdf45448..cf030ad4 100644 --- a/coloquinte/src/coloquinte/netlist.hxx +++ b/coloquinte/src/coloquinte/netlist.hxx @@ -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 get_cell_size(index_t external_ind){ + return cell_sizes_[ cell_internal_mapping_[external_ind] ]; + } + + void set_cell_size(index_t external_ind,point cell_size){ + cell_sizes_[cell_internal_mapping_[external_ind]] = cell_size; + } }; inline netlist::netlist(std::vector cells, std::vector nets, std::vector all_pins){