From cc815f4c334ee6ed0071e2ee9d61e0e5c0a630b8 Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Fri, 29 Jun 2018 15:30:17 -0700 Subject: [PATCH] Fix sense amp spacing after modifying index to be increment by one. --- compiler/modules/sense_amp_array.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/modules/sense_amp_array.py b/compiler/modules/sense_amp_array.py index b4c6342c..5d16b323 100644 --- a/compiler/modules/sense_amp_array.py +++ b/compiler/modules/sense_amp_array.py @@ -54,10 +54,11 @@ class sense_amp_array(design.design): br_pin = self.amp.get_pin("br") dout_pin = self.amp.get_pin("dout") + amp_spacing = self.amp.width * self.words_per_row for i in range(0,self.word_size): name = "sa_d{0}".format(i) - amp_position = vector(self.amp.width * i, 0) + amp_position = vector(amp_spacing * i, 0) bl_offset = amp_position + bl_pin.ll().scale(1,0) br_offset = amp_position + br_pin.ll().scale(1,0)