From af43fb6276f1bc74939d16934fe1469b90c0cafe Mon Sep 17 00:00:00 2001 From: Michael Timothy Grimes Date: Wed, 15 Aug 2018 02:19:36 -0700 Subject: [PATCH] called bitcell function before reading the height of the bitcell because pbitcell's dynamic height can only be determined after the module is called --- compiler/pgates/pnand3.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/pgates/pnand3.py b/compiler/pgates/pnand3.py index b95cee3c..4a1587ad 100644 --- a/compiler/pgates/pnand3.py +++ b/compiler/pgates/pnand3.py @@ -14,7 +14,8 @@ class pnand3(pgate.pgate): from importlib import reload c = reload(__import__(OPTS.bitcell)) - bitcell = getattr(c, OPTS.bitcell) + mod_bitcell = getattr(c, OPTS.bitcell) + bitcell = mod_bitcell() unique_id = 1