From 0a2adeb5931f92697ab9f7451c7010b19c58ce92 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Fri, 19 Mar 2021 13:57:11 -0400 Subject: [PATCH] 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. --- base/flatten.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/flatten.c b/base/flatten.c index 1f278ba..f53e16e 100644 --- a/base/flatten.c +++ b/base/flatten.c @@ -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; }