Skip to content

Commit ad77d46

Browse files
ram: changed cell initialization
Co-authored-by: Austin Rovinski <[email protected]> Signed-off-by: Brayden Louie <[email protected]>
1 parent 86d3880 commit ad77d46

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/ram/src/layout.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,8 @@ void Cell::addInst(dbInst* inst)
3434

3535
void Cell::cellInit()
3636
{
37-
if (width_ > 0 || height_ > 0) {
38-
width_ = 0;
39-
height_ = 0;
40-
}
37+
width_ = 0;
38+
height_ = 0;
4139
for (auto& inst : insts_) {
4240
Rect inst_box = inst->getBBox()->getBox();
4341
width_ += inst_box.dx();

0 commit comments

Comments
 (0)