From 2e5d60ae87c02dd5ae9cfa671fb8f9220dcd4e41 Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Mon, 9 Jul 2018 14:45:27 -0700 Subject: [PATCH] Fix input height error for input rail pins --- compiler/modules/hierarchical_decoder.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/modules/hierarchical_decoder.py b/compiler/modules/hierarchical_decoder.py index 557e4af6..0398b9a6 100644 --- a/compiler/modules/hierarchical_decoder.py +++ b/compiler/modules/hierarchical_decoder.py @@ -122,7 +122,7 @@ class hierarchical_decoder(design.design): # input bus width plus a spacing track input_width = (self.num_inputs+1) * self.m2_pitch # inputs should be as high as the decoders - input_height = self.no_of_pre2x4*self.pre2_4.height + self.no_of_pre2x4*self.pre3_8.height + input_height = self.no_of_pre2x4*self.pre2_4.height + self.no_of_pre3x8*self.pre3_8.height # Find the left-most predecoder min_x = 0 @@ -137,6 +137,7 @@ class hierarchical_decoder(design.design): self.add_layout_pin(text="A[{0}]".format(i), layer="metal2", offset=vector(x_offset,0), + width=self.m2_width, height=input_height) self.connect_input_to_predecodes()