Exemplo n.º 1
0
def refs(conf):
    """Generate val and ref labels."""
    out = []
    x = conf["pitch"] / 2 + conf["pad_shape"][0] / 2 + ctyd_gap + font_halfheight
    out.append(fp_text("reference", "REF**", (-x, 0, 90), "F.Fab", font_size, font_thickness))
    out.append(fp_text("value", conf["name"], (x, 0, 90), "F.Fab", font_size, font_thickness))
    return out
Exemplo n.º 2
0
def refs(conf):
    """Generate val and ref labels."""
    out = []
    x = conf['pitch']/2 + conf['pad_shape'][0]/2 + ctyd_gap + font_halfheight
    out.append(fp_text("reference", "REF**", (-x, 0, 90), "F.Fab",
                       font_size, font_thickness))
    out.append(fp_text("value", conf['name'], (x, 0, 90), "F.Fab",
                       font_size, font_thickness))
    return out
Exemplo n.º 3
0
def side_smd_refs(name):
    out = []
    ctyd_h = 3.0 + 7.8 + 2*ctyd_gap
    y = ctyd_h / 2.0 + font_halfheight
    out.append(fp_text("reference", "REF**", (0, -y-2.55),
               "F.Fab", font_size, font_thickness))
    out.append(fp_text("value", name, (0, y-2.55),
               "F.Fab", font_size, font_thickness))
    return out
Exemplo n.º 4
0
def top_pth_refs(name):
    out = []
    ctyd_h = 5.3 + 2*ctyd_gap
    y = ctyd_h / 2.0 + font_halfheight
    out.append(fp_text("reference", "REF**", (0, -y),
               "F.Fab", font_size, font_thickness))
    out.append(fp_text("value", name, (0, y),
               "F.Fab", font_size, font_thickness))
    return out
Exemplo n.º 5
0
def refs(name):
    out = []
    ctyd_h = 6.35 + 2 * ctyd_gap
    y = ctyd_h / 2.0 + font_halfheight
    out.append(fp_text("reference", "REF**", (0, -y),
               "F.Fab", font_size, font_thickness))
    out.append(fp_text("value", name, (0, y),
               "F.Fab", font_size, font_thickness))
    return out
Exemplo n.º 6
0
def top_smd_refs(name):
    out = []
    ctyd_h = 3.0 + 0.6 + 1.3 + 2*ctyd_gap
    ctyd_y = ctyd_h/2 - 1.3/2 - ctyd_gap
    y = ctyd_h / 2.0 + font_halfheight
    out.append(fp_text("reference", "REF**", (0, -y+ctyd_y),
                       "F.Fab", font_size, font_thickness))
    out.append(fp_text("value", name, (0, y+ctyd_y),
                       "F.Fab", font_size, font_thickness))
    return out
Exemplo n.º 7
0
def side_smd_refs(name):
    out = []
    ctyd_h = 3.0 + 7.8 + 2 * ctyd_gap
    y = ctyd_h / 2.0 + font_halfheight
    out.append(
        fp_text("reference", "REF**", (0, -y - 2.55), "F.Fab", font_size,
                font_thickness))
    out.append(
        fp_text("value", name, (0, y - 2.55), "F.Fab", font_size,
                font_thickness))
    return out
Exemplo n.º 8
0
def refs(conf):
    """Generate val and ref labels."""
    out = []

    if conf["rows"] == 2:
        ctyd_h = conf["chip_shape"][1] + 2 * ctyd_gap
    elif conf["rows"] == 4:
        ctyd_h = conf["row_pitch"] + conf["pad_shape"][0] + 2 * ctyd_gap

    y = ctyd_h / 2.0 + font_halfheight

    out.append(fp_text("reference", "REF**", (0, -y), "F.Fab", font_size, font_thickness))
    out.append(fp_text("value", conf["name"], (0, y), "F.Fab", font_size, font_thickness))

    return out
Exemplo n.º 9
0
def refs(conf):
    """Generate val and ref labels."""
    out = []

    if conf['rows'] == 2:
        ctyd_h = conf['chip_shape'][1] + 2 * ctyd_gap
    elif conf['rows'] == 4:
        ctyd_h = conf['row_pitch'] + conf['pad_shape'][0] + 2 * ctyd_gap

    y = ctyd_h / 2.0 + font_halfheight

    out.append(
        fp_text("reference", "REF**", (0, -y), "F.Fab", font_size,
                font_thickness))
    out.append(
        fp_text("value", conf['name'], (0, y), "F.Fab", font_size,
                font_thickness))

    return out
Exemplo n.º 10
0
def refs(conf):
    """Generate val and ref labels."""
    out = []

    if conf['rows'] == 2:
        ctyd_h = conf['chip_shape'][1] + 2 * ctyd_gap
    elif conf['rows'] == 4:
        # Handle non-square chips differently
        if isinstance(conf['row_pitch'], float):
            ctyd_h = conf['row_pitch'] + conf['pad_shape'][0] + 2 * ctyd_gap
        else:
            ctyd_h = conf['row_pitch'][1] + conf['pad_shape'][0] + 2 * ctyd_gap

    y = ctyd_h/2.0 + font_halfheight

    out.append(fp_text("reference", "REF**", (0, -y),
               "F.Fab", font_size, font_thickness))
    out.append(fp_text("value", conf['name'], (0, y),
               "F.Fab", font_size, font_thickness))

    return out
Exemplo n.º 11
0
def refs(conf):
    """Generate val and ref labels."""
    out = []

    if conf['rows'] == 2 or 'cols' in conf:
        ctyd_h = conf['chip_shape'][1] + 2 * ctyd_gap
    elif conf['rows'] == 4:
        # Handle non-square chips differently
        if isinstance(conf['row_pitch'], float):
            ctyd_h = conf['row_pitch'] + conf['pad_shape'][0] + 2 * ctyd_gap
        else:
            ctyd_h = conf['row_pitch'][1] + conf['pad_shape'][0] + 2 * ctyd_gap

    y = ctyd_h / 2.0 + font_halfheight

    out.append(
        fp_text("reference", "REF**", (0, -y), "F.Fab", font_size,
                font_thickness))
    out.append(
        fp_text("value", conf['name'], (0, y), "F.Fab", font_size,
                font_thickness))

    return out