59 r.
w -= r.
x; r.
h -= r.
y;
187 for(c=0; c<
p->m_numMembers; c++)
188 if (
p->m_members[c] == cell) {
240 if (!pa && !pb)
return 0;
241 else if (!pa)
return -1;
242 else if (!pb)
return 1;
244 if (ba.
x < bb.
x)
return -1;
245 if (ba.
x > bb.
x)
return 1;
254 if (!pa && !pb)
return 0;
255 else if (!pa)
return -1;
256 else if (!pb)
return 1;
258 if (ba.
x + ba.
w < bb.
x + bb.
w)
return -1;
259 if (ba.
x + ba.
w > bb.
x + bb.
w)
return 1;
268 if (!pa && !pb)
return 0;
269 else if (!pa)
return -1;
270 else if (!pb)
return 1;
272 if (ba.
y + ba.
h < bb.
y + bb.
h)
return -1;
273 if (ba.
y + ba.
h > bb.
y + bb.
h)
return 1;
282 if (!pa && !pb)
return 0;
283 else if (!pa)
return -1;
284 else if (!pb)
return 1;
286 if (ba.
y < bb.
y)
return -1;
287 if (ba.
y > bb.
y)
return 1;
295 if (!pa && !pb)
return 0;
296 else if (!pa)
return -1;
297 else if (!pb)
return 1;
318 if (!pa && !pb)
return 0;
319 else if (!pa)
return -1;
320 else if (!pb)
return 1;
321 if (pa->
m_x < pb->
m_x)
return -1;
322 if (pa->
m_x > pb->
m_x)
return 1;
330 if (!pa && !pb)
return 0;
331 else if (!pa)
return -1;
332 else if (!pb)
return 1;
333 if (pa->
m_y < pb->
m_y)
return -1;
334 if (pa->
m_y > pb->
m_y)
return 1;
342 if (!pa && !pb)
return 0;
343 else if (!pa)
return -1;
344 else if (!pb)
return 1;
#define ABC_NAMESPACE_IMPL_START
#define ABC_NAMESPACE_IMPL_END
float getTotalWirelength()
Returns the total HPWL of all nets.
ConcreteCell ** g_place_concreteCells
Rect getNetBBox(const ConcreteNet *net)
Returns the bounding box of a net.
ConcreteNet ** g_place_concreteNets
int netSortByB(const void *a, const void *b)
int netSortByR(const void *a, const void *b)
float getNetWirelength(const ConcreteNet *net)
Returns the half-perimeter wirelength of a net.
int g_place_concreteNetsSize
int cellSortByID(const void *a, const void *b)
int g_place_concreteCellsSize
void delConcreteCell(ConcreteCell *cell)
Removes a cell from the placement database.
float getCellArea(const ConcreteCell *cell)
void addConcreteNet(ConcreteNet *net)
Adds a net to the placement database.
int cellSortByY(const void *a, const void *b)
int netSortByID(const void *a, const void *b)
void delCellFromPartition(ConcreteCell *cell, Partition *p)
ABC_NAMESPACE_IMPL_START int g_place_numCells
int netSortByT(const void *a, const void *b)
int netSortByL(const void *a, const void *b)
Sorts nets by position of one of its corners.
void delConcreteNet(ConcreteNet *net)
Does not deallocate memory.
void addConcreteCell(ConcreteCell *cell)
int cellSortByX(const void *a, const void *b)
Sorts cells by either position coordinate.
Partition * g_place_rootPartition