From 78cbb662e64625948a80f8f63c465ca0830245a5 Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Wed, 13 Jan 2021 19:10:31 +0100 Subject: [PATCH] Add updators to modify cell sizes on the fly in Coloquinte. --- coloquinte/src/coloquinte/netlist.hxx | 7 +++++++ 1 file changed, 7 insertions(+) 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){