From: Luke Kenneth Casson Leighton Date: Thu, 10 Jun 2021 21:06:08 +0000 (+0100) Subject: add naming and pin-order reverse option X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=82c4c67776f87a04c639d290af7ea12e9b58ec24;p=pinmux.git add naming and pin-order reverse option --- diff --git a/src/spec/ifaceprint.py b/src/spec/ifaceprint.py index 7ac7a26..4a4104f 100644 --- a/src/spec/ifaceprint.py +++ b/src/spec/ifaceprint.py @@ -22,6 +22,17 @@ def create_sv(fname, pins): (woffs+width-scale*12, hoffs+height-scale*12), stroke=svgwrite.rgb(255, 255, 16, '%'), stroke_width=scale/10.0)) + + dwg.add(dwg.text("Libre-SOC ls180", + insert=(woffs+width/2-scale*5, woffs+height/2), + fill='white')) + dwg.add(dwg.text("In collaboration with LIP6.fr", + insert=(woffs+width/2-scale*5, woffs+height/2+scale), + fill='white')) + dwg.add(dwg.text("Cell Libraries by Chips4Makers", + insert=(woffs+width/2-scale*5, woffs+height/2+scale*2), + fill='white')) + for i, pin in enumerate(pins['pads.west']): ht = hoffs + height - (i * scale) + scale*0.5 dwg.add(dwg.line((woffs-scale*2, ht-scale*0.5), diff --git a/src/spec/interfaces.py b/src/spec/interfaces.py index f66e474..744f803 100644 --- a/src/spec/interfaces.py +++ b/src/spec/interfaces.py @@ -64,7 +64,8 @@ class PinGen(object): self.fname = fname def __call__(self, suffix, offs, mux, - start=None, limit=None, spec=None, origsuffix=None): + start=None, limit=None, spec=None, origsuffix=None, + rev=False): bank = offs[0] pf = self.pinfn(suffix, bank) print "pf", suffix, bank, pf @@ -80,6 +81,9 @@ class PinGen(object): sk = "%s:%s" % (self.fname, str(suffix)) print "pingroup pre", sk, pingroup pingroup = pingroup[start:limit] # see comment in spec.pinfunctions + if rev: + # reverse order of pingroup + pingroup.reverse() print "pingroup post", sk, pingroup if self.pinouts.byspec.has_key(sk): self.pinouts.byspec[sk] += pingroup