bug with a verification: instances out of the abox ....
This commit is contained in:
parent
30cb8a1a90
commit
edab22ebfe
|
@ -355,7 +355,13 @@ PPlacement::Init(lofig* fig, int NbRows)
|
|||
{
|
||||
InitPlaceWithPrePlace();
|
||||
if (_nInsToPlace > 0)
|
||||
assert (_rows.begin() != _rows.end());
|
||||
{
|
||||
if (_rows.begin() == _rows.end())
|
||||
{
|
||||
cout << " o ERROR: No SPACE to place instances ....." << endl;
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
if (_nInsToPlace > 0)
|
||||
|
@ -1255,13 +1261,15 @@ PPlacement::InitPlaceWithPrePlace()
|
|||
|
||||
// VERIFICATION OF THE PREPLACEMENT
|
||||
// abutment box
|
||||
if (Width % PITCH != 0) {
|
||||
if (Width % PITCH != 0)
|
||||
{
|
||||
cerr << " o ERROR : abutment box's width must be a multiple of 5 lambdas"
|
||||
<< endl;
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if (Height % (PITCH * ROWHEIGHT) != 0) {
|
||||
if (Height % (PITCH * ROWHEIGHT) != 0)
|
||||
{
|
||||
cerr << " o ERROR : abutment box's height must be a multiple of 50 lambdas"
|
||||
<< endl;
|
||||
exit(1);
|
||||
|
@ -1349,7 +1357,7 @@ PPlacement::InitPlaceWithPrePlace()
|
|||
{
|
||||
for (int xit = xpos; xit < xpos + pinswidth; xit++)
|
||||
{
|
||||
if ( (xit > Width) || (yit > Height)
|
||||
if ( (xit > Width - 1) || (yit > Height - 1)
|
||||
|| (xit < 0 ) || (yit < 0 ) )
|
||||
{
|
||||
cerr << " o ERROR : " << pins->INSNAME
|
||||
|
|
Loading…
Reference in New Issue