From 24cc7d0c942f117c17619c21be6a8d165b4d3063 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Sun, 18 Jun 2017 22:47:51 -0400 Subject: [PATCH] Update to add "property parallel none" command option. --- base/netgen.c | 3 ++- base/netgen.h | 1 + tcltk/tclnetgen.c | 18 +++++++++++++++++- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/base/netgen.c b/base/netgen.c index e998873..3946b48 100644 --- a/base/netgen.c +++ b/base/netgen.c @@ -49,6 +49,7 @@ int NextNode; int Composition = NONE; int QuickSearch = 0; +int GlobalParallelNone = FALSE; int AddToExistingDefinition = 0; /* default: overwrite cell when reopened */ @@ -1192,7 +1193,7 @@ void CellDef(char *name, int fnum) np = InstallInCellHashTable(name, fnum); CurrentCell = LookupCellFile(name, fnum); CurrentCell->class = CLASS_SUBCKT; /* default */ - CurrentCell->flags = 0; + CurrentCell->flags = (GlobalParallelNone) ? COMB_NO_PARALLEL : 0; LastPlaced = NULL; CurrentTail = NULL; diff --git a/base/netgen.h b/base/netgen.h index d8af108..4d46375 100644 --- a/base/netgen.h +++ b/base/netgen.h @@ -132,6 +132,7 @@ extern int IgnoreRC; /* set this to 1 to ignore capacitance and resistance */ extern int NoOutput; /* set this to 1 to disable stdout output */ extern int Composition; /* direction of composition */ extern int UnixWildcards; /* TRUE if *,?,{},[] only; false if full REGEXP */ +extern int GlobalParallelNone; /* If TRUE, don't parallel combine any cells */ /* magic internal flag to restrict searches to recently placed cells */ extern int QuickSearch; /* does re"CellDef"ing a cell add to it or overwrite it??? */ diff --git a/tcltk/tclnetgen.c b/tcltk/tclnetgen.c index ae8e556..f99bc98 100644 --- a/tcltk/tclnetgen.c +++ b/tcltk/tclnetgen.c @@ -3093,8 +3093,12 @@ _netcmp_equate(ClientData clientData, /* netgen::property |