From: Luke Kenneth Casson Leighton Date: Fri, 11 Jun 2021 15:33:41 +0000 (+0100) Subject: add C4M Logo to ls180 X-Git-Url: https://git.libre-soc.org/?p=pinmux.git;a=commitdiff_plain;h=11b35175427efb1b9a8d7057d06b9df82829f402 add C4M Logo to ls180 --- diff --git a/src/spec/c4mlogo.png b/src/spec/c4mlogo.png new file mode 100644 index 0000000..936b44b Binary files /dev/null and b/src/spec/c4mlogo.png differ diff --git a/src/spec/ifaceprint.py b/src/spec/ifaceprint.py index bdb7134..810ed6b 100644 --- a/src/spec/ifaceprint.py +++ b/src/spec/ifaceprint.py @@ -9,6 +9,7 @@ import base64 cwd = os.path.split(os.path.abspath(__file__))[0] lead_drawing = cwd + "/greatek_qfp_128L.png" pack_drawing = cwd + "/greatek_qfp_128_fp.png" +c4m_drawing = cwd + "/c4mlogo.png" def bond_int_to_ext(pin, bank): """ note that internal numbering is 0-31 whereas the DISPLAY internal @@ -308,6 +309,15 @@ def create_sv(fname, pins): insert=(woffs+width/2-scale*5, woffs+height/2-scale*2), fill='black')) + # add C4M Logo + image_data = open(c4m_drawing, "rb").read() + encoded = base64.b64encode(image_data).decode() + data = 'data:image/png;base64,{}'.format(encoded) + pos=(woffs+scale*0.0, hoffs+height-scale*1.5) + leads = svgwrite.image.Image(data, pos, + size=(50,50)) + dwg.add(leads) + # add attribution dwg.add(dwg.text("Libre-SOC ls180 QFP-128", insert=(woffs+width/2-scale*5, woffs+height/2), @@ -321,6 +331,9 @@ def create_sv(fname, pins): dwg.add(dwg.text("IMEC TSMC 180nm", insert=(woffs+width/2-scale*5, woffs+height/2+scale*3), fill='black')) + dwg.add(dwg.text("RED Semiconductor", + insert=(woffs+width/2-scale*5, woffs+height/2+scale*4), + fill='black')) # add package marking circles pos = (owoffs-outerscale*0, ohoffs+len(wepads)*outerscale+outerscale*2.5)