, ioSpec[5].format(bit)
, ioSpec[6].format(bit) ))
else:
- raise ErrorMessage( 1, [ 'doIoPinVector(): Argument "ioSpec" must have between 5 and 7 fields ({})'.format(len(ioSpec))
+ raise ErrorMessage( 1, [ 'doIoPinVector(): Argument "ioSpec" ' \
+ 'must have between 5 and 7 ' \
+ 'fields ({})'.format(len(ioSpec))
, '(ioSpec={})'.format(ioSpec)
] )
return v
cell, editor = plugins.kwParseMain( **kw )
cell = af.getCell( 'ls180', CRL.Catalog.State.Logical )
if cell is None:
- print( ErrorMessage( 2, 'doDesign.scriptMain(): Unable to load cell "{}".' \
+ print( ErrorMessage( 2, 'doDesign.scriptMain(): ' \
+ 'Unable to load cell "{}".' \
.format('ls180') ))
sys.exit(1)
if editor: editor.setCell( cell )
]
sram = DataBase.getDB().getCell( 'SPBlock_512W64B8W' )
if not sram:
- raise ErrorMessage( 1, 'SRAM instance "{}" not found.'.format(sramPaths[i]) )
+ raise ErrorMessage( 1, 'SRAM instance "{}" ' \
+ 'not found.'.format(sramPaths[i]) )
sramAb = sram.getAbutmentBox()
coreAb = cell.getAbutmentBox()
sliceHeight = chipBuilder.conf.sliceHeight
originX = coreAb.getXMin() + 2*chipBuilder.conf.sliceStep
for i in range(4):
sram = rgetInstance( cell, sramPaths[i] )
- chipBuilder.placeMacro \
- ( sramPaths[i]
- , Transformation( originX
- , coreAb.getYMax() - sramAb.getHeight() - 2*sliceHeight
- , Transformation.Orientation.ID )
- )
+ y = coreAb.getYMax() - sramAb.getHeight() - 2*sliceHeight
+ t = Transformation(originX, y, Transformation.Orientation.ID)
+ chipBuilder.placeMacro ( sramPaths[i], t )
originX += sramAb.getWidth () + 3*sliceHeight
pll = addPllPlaceHolder( cell )
pllAb = pll.getAbutmentBox()
- pll.setTransformation( Transformation( coreAb.getXMax() - pllAb.getWidth()
- , coreAb.getYMax() - pllAb.getHeight()
- , Transformation.Orientation.ID ) )
+ t = Transformation( coreAb.getXMax() - pllAb.getWidth()
+ , coreAb.getYMax() - pllAb.getHeight()
+ , Transformation.Orientation.ID )
+ pll.setTransformation(t)
pll.setPlacementStatus( Instance.PlacementStatus.FIXED )
#ls180Conf.placeArea = Box( coreAb.getXMin()
# , coreAb.getYMin()