From 2288df6a33b6c5a57e9b5e5bd3c09eecc45c1e00 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 21 Apr 2020 14:35:44 +0000 Subject: [PATCH] whitespace tidyup --- experiments7/doAlu16.py | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/experiments7/doAlu16.py b/experiments7/doAlu16.py index d6fa746..7158d4c 100755 --- a/experiments7/doAlu16.py +++ b/experiments7/doAlu16.py @@ -123,7 +123,9 @@ class ALU16(Module): """ALU16.place(), manual placement overload.""" datapath_insts = [] for i in range(BIT_WIDTH): - datapath_insts.append([['nmx2', None], ['no2', None], ['sff1', None]]) + datapath_insts.append([['nmx2', None], + ['no2', None], + ['sff1', None]]) for inst in self.cell.getInstances(): if (ALU16.match_instance(datapath_insts, 'nmx2', 'i0', inst) or @@ -221,9 +223,12 @@ def scriptMain(editor=None, **kwargs): add = AddSub( 'add', editor, east_pins=[ - {'net': 'a({})', 'y': 15.0, 'delta': 50.0, 'repeat': BIT_WIDTH, 'layer': 'METAL2'}, - {'net': 'b({})', 'y': 20.0, 'delta': 50.0, 'repeat': BIT_WIDTH, 'layer': 'METAL2'}, - {'net': 'o({})', 'y': 25.0, 'delta': 50.0, 'repeat': BIT_WIDTH, 'layer': 'METAL2'}, + {'net': 'a({})', 'y': 15.0, 'delta': 50.0, + 'repeat': BIT_WIDTH, 'layer': 'METAL2'}, + {'net': 'b({})', 'y': 20.0, 'delta': 50.0, + 'repeat': BIT_WIDTH, 'layer': 'METAL2'}, + {'net': 'o({})', 'y': 25.0, 'delta': 50.0, + 'repeat': BIT_WIDTH, 'layer': 'METAL2'}, ], pads={ 'b({})'.format(BIT_WIDTH-1): ( @@ -236,9 +241,12 @@ def scriptMain(editor=None, **kwargs): sub = AddSub( 'sub', editor, west_pins=[ - {'net': 'a({})', 'y': 15.0, 'delta': 50.0, 'repeat': BIT_WIDTH, 'layer': 'METAL2'}, - {'net': 'b({})', 'y': 20.0, 'delta': 50.0, 'repeat': BIT_WIDTH, 'layer': 'METAL2'}, - {'net': 'o({})', 'y': 25.0, 'delta': 50.0, 'repeat': BIT_WIDTH, 'layer': 'METAL2'}, + {'net': 'a({})', 'y': 15.0, 'delta': 50.0, + 'repeat': BIT_WIDTH, 'layer': 'METAL2'}, + {'net': 'b({})', 'y': 20.0, 'delta': 50.0, + 'repeat': BIT_WIDTH, 'layer': 'METAL2'}, + {'net': 'o({})', 'y': 25.0, 'delta': 50.0, + 'repeat': BIT_WIDTH, 'layer': 'METAL2'}, ], pads={ 'b({})'.format(BIT_WIDTH-1): ( -- 2.30.2