Skip to content

Commit

Permalink
Exit placement loop when there are no filler cells that fit the remai…
Browse files Browse the repository at this point in the history
…ning gap.
  • Loading branch information
Niels Moseley committed Dec 17, 2019
1 parent f6fbfb1 commit 77cd3c8
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,17 @@
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Changelog:
0.02b - first release.
0.02c - exit when space can't be filled by filler cells.
*/

#include <iostream>
#include <fstream>

#define __PGMVERSION__ "0.02b"
#define __PGMVERSION__ "0.02c"

#include "logging.h"

Expand Down Expand Up @@ -150,14 +155,14 @@ int main(int argc, char *argv[])
if (fillerHandler.getCellCount() == 0)
{
doLog(LOG_ERROR, "Cannot proceed without filler cells. Please use the --filler option to explicitly specify a filler cell prefix\n");
return 1;
exit(1);
}

// check die size
if ((padring.m_dieWidth < 1.0e-6) || (padring.m_dieHeight < 1.0e-6))
{
doLog(LOG_ERROR, "Die area was not specified! - aborting.\n");
return 1;
exit(1);
}

// generate report
Expand All @@ -183,7 +188,7 @@ int main(int argc, char *argv[])
if (!svgos.is_open())
{
doLog(LOG_ERROR, "Cannot open SVG file for writing!\n");
return 1;
exit(1);
}
}

Expand All @@ -196,7 +201,7 @@ int main(int argc, char *argv[])
if (!defos.is_open())
{
doLog(LOG_ERROR, "Cannot open DEF file for writing!\n");
return 1;
exit(1);
}
}

Expand Down Expand Up @@ -266,6 +271,7 @@ int main(int argc, char *argv[])
else
{
doLog(LOG_ERROR, "Cannot find filled cell that fits remaining width %f\n", space);
exit(1);
}
}
}
Expand Down Expand Up @@ -307,6 +313,7 @@ int main(int argc, char *argv[])
else
{
doLog(LOG_ERROR, "Cannot find filled cell that fits remaining width %f\n", space);
exit(1);
}
}
}
Expand Down Expand Up @@ -348,6 +355,7 @@ int main(int argc, char *argv[])
else
{
doLog(LOG_ERROR, "Cannot find filled cell that fits remaining width %f\n", space);
exit(1);
}
}
}
Expand Down Expand Up @@ -389,6 +397,7 @@ int main(int argc, char *argv[])
else
{
doLog(LOG_ERROR, "Cannot find filled cell that fits remaining width %f\n", space);
exit(1);
}
}
}
Expand Down

0 comments on commit 77cd3c8

Please sign in to comment.