From 3f45d107976a2b0cb051b6086761dee5fc7d0879 Mon Sep 17 00:00:00 2001 From: jcirimel Date: Tue, 25 Aug 2020 02:46:16 -0700 Subject: [PATCH] fix column decoder --- compiler/modules/hierarchical_predecode.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/compiler/modules/hierarchical_predecode.py b/compiler/modules/hierarchical_predecode.py index d72f30a1..eefa7563 100644 --- a/compiler/modules/hierarchical_predecode.py +++ b/compiler/modules/hierarchical_predecode.py @@ -21,14 +21,15 @@ class hierarchical_predecode(design.design): self.number_of_inputs = input_number b = factory.create(module_type="bitcell") + if not height: self.cell_height = b.height self.column_decoder = False else: self.cell_height = height - # If we are pitch matched to the bitcell, it's a predecoder - # otherwise it's a column decoder (out of pgates) - self.column_decoder = (height != b.height) + # If we are pitch matched to the bitcell, it's a predecoder + # otherwise it's a column decoder (out of pgates) + self.column_decoder = (height != b.height) self.number_of_outputs = int(math.pow(2, self.number_of_inputs)) super().__init__(name)