Modified the "flatten" command to allow class "module" to be

flattened.  This is marginally useful---since the "module" class
is a black box, it is essentially the same as using the "ignore"
command.
This commit is contained in:
Tim Edwards 2021-03-19 13:57:11 -04:00
parent 330b34139c
commit 0a2adeb593
1 changed files with 1 additions and 1 deletions

View File

@ -319,7 +319,7 @@ int flattenInstancesOf(char *name, int fnum, char *instance)
Printf(" Flattening instance: %s, primitive = %s\n",
ParentParams->instance.name, (ChildCell->class ==
CLASS_SUBCKT) ? "no" : "yes");
if (ChildCell->class != CLASS_SUBCKT) {
if ((ChildCell->class != CLASS_SUBCKT) && (ChildCell->class != CLASS_MODULE)) {
LastObj = ParentParams;
continue;
}