From e1c1a0a64e4478fb82c8f35f82d46e1c6b301ed0 Mon Sep 17 00:00:00 2001 From: Fredrik Thulin Date: Mon, 7 May 2018 20:53:32 +0200 Subject: lots of label fixes --- fix-labels.py | 846 +++++++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 607 insertions(+), 239 deletions(-) diff --git a/fix-labels.py b/fix-labels.py index 511982f..298c37a 100755 --- a/fix-labels.py +++ b/fix-labels.py @@ -13,186 +13,440 @@ from copy import copy import pcbnew labels = { - 'rev02_01.sch': { - 'FPGA_ENTROPY_DISABLE': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5450, 'y': 3550, 'ori': 0},], - }, - 'rev02_02.sch': { - 'AMPLIFIED': [#{'t': 'GLabel', 'dir': 'UnSpc', 'x': 10300, 'y': 5000, 'ori': 0}, - {'t': 'GLabel', 'dir': 'UnSpc', 'x': 9650, 'y': 5000, 'ori': 0, 'x_pos': 400}], - 'DIGITIZED_NOISE': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13400, 'y': 4800, 'ori': 0},], - #'NOISE_IN': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 3950, 'y': 5400, 'ori': 0},], - #'NOISE_OUT': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 4500, 'y': 6000, 'ori': 0},], - 'RAW_NOISE': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6000, 'y': 5400, 'ori': 0, 'x_pos': 400},], - #{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6750, 'y': 5400, 'ori': 0},], - }, - 'rev02_03.sch': { - 'NRST': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 12760, 'y': 4230, 'ori': 0}, - {'t': 'GLabel', 'dir': 'UnSpc', 'x': 9400, 'y': 4600, 'ori': 0},], - 'OSC_IN': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2700, 'y': 5800, 'ori': 1}, - {'t': 'GLabel', 'dir': 'UnSpc', 'x': 6420, 'y': 4900, 'ori': 0},], - 'OSC_OUT': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 3700, 'y': 5800, 'ori': 1}, - {'t': 'GLabel', 'dir': 'UnSpc', 'x': 6420, 'y': 5000, 'ori': 0},], - 'SWDCLK': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 12760, 'y': 3930, 'ori': 0}, - {'t': 'GLabel', 'dir': 'UnSpc', 'x': 9400, 'y': 4700, 'ori': 0},], - 'SWDIO': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 12760, 'y': 4130, 'ori': 0}, - {'t': 'GLabel', 'dir': 'UnSpc', 'x': 9400, 'y': 4800, 'ori': 0},], - }, - 'rev02_05.sch': { - 'ARM_FPGA_CFG_CS_N': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 4100, 'ori': 0},], - 'ARM_FPGA_CFG_MISO': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 4300, 'ori': 0},], - 'ARM_FPGA_CFG_MOSI': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 4400, 'ori': 0},], - 'ARM_FPGA_CFG_SCLK': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 4200, 'ori': 0},], - 'FMC_CLK': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9990, 'y': 7100, 'ori': 0},], - 'FMC_NL': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9990, 'y': 6800, 'ori': 0},], - 'FMC_NOE': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9990, 'y': 7200, 'ori': 0},], - 'FMC_NWAIT': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9990, 'y': 7400, 'ori': 0},], - 'FMC_NWE': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9990, 'y': 7300, 'ori': 0},], - 'FMC_SDCLK': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 6800, 'ori': 0},], - 'FMC_SDNCAS': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13110, 'y': 7700, 'ori': 0},], - 'FMC_SDNRAS': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13110, 'y': 7800, 'ori': 0},], - 'FMC_SDNWE': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 6900, 'ori': 0},], - 'FPGA_CFG_CTRL_ARM_ENA': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6400, 'y': 2700, 'ori': 0},], - 'FPGA_CFG_CTRL_FPGA_DIS': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6400, 'y': 5100, 'ori': 0},], - 'FPGA_DONE': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6400, 'y': 7000, 'ori': 0},], - 'FPGA_INIT_B': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6400, 'y': 6200, 'ori': 0},], - 'FPGA_PROGRAM_B': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6400, 'y': 6300, 'ori': 0},], - 'FT_CTS': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 3000, 'ori': 0},], - 'FT_DTR': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 2700, 'ori': 0},], - 'FT_MGMT_CTS': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 3700, 'ori': 0},], - 'FT_MGMT_DTR': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 3400, 'ori': 0},], - 'FT_MGMT_RTS': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 3800, 'ori': 0},], - 'FT_MGMT_RXD': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 3500, 'ori': 0},], - 'FT_MGMT_TXD': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 3600, 'ori': 0},], - 'FT_RTS': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 3100, 'ori': 0},], - 'FT_RXD': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 2800, 'ori': 0},], - 'FT_TXD': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 2900, 'ori': 0},], - 'KSM_PROM_CS_N': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 4700, 'ori': 0},], - 'KSM_PROM_MISO': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 4900, 'ori': 0},], - 'KSM_PROM_MOSI': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 5000, 'ori': 0},], - 'KSM_PROM_SCLK': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 4800, 'ori': 0},], - 'RTC_MFP': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 6300, 'ori': 0},], - 'RTC_SCL': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 6200, 'ori': 0},], - 'RTC_SDA': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 6100, 'ori': 0},], - }, - 'rev02_06.sch': { - 'FMC_SDCLK': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2700, 'y': 5000, 'ori': 0}, - {'t': 'GLabel', 'dir': 'UnSpc', 'x': 9700, 'y': 5100, 'ori': 0},], - 'FMC_SDNCAS': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2700, 'y': 4400, 'ori': 0}, - {'t': 'GLabel', 'dir': 'UnSpc', 'x': 9700, 'y': 4500, 'ori': 0},], - 'FMC_SDNRAS': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2700, 'y': 4500, 'ori': 0}, - {'t': 'GLabel', 'dir': 'UnSpc', 'x': 9700, 'y': 4600, 'ori': 0},], - 'FMC_SDNWE': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2700, 'y': 6500, 'ori': 0}, - {'t': 'GLabel', 'dir': 'UnSpc', 'x': 9700, 'y': 6600, 'ori': 0},], - }, - 'rev02_07.sch': { - 'KSM_PROM_CS_N': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6270, 'y': 5500, 'ori': 0},], - 'KSM_PROM_MISO': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6270, 'y': 5600, 'ori': 0},], - 'KSM_PROM_MOSI': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 8600, 'y': 5800, 'ori': 0},], - 'KSM_PROM_SCLK': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 8600, 'y': 5700, 'ori': 0},], - }, - 'rev02_08.sch': { - 'RTC_MFP': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9500, 'y': 5500, 'ori': 0},], - 'RTC_SCL': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9500, 'y': 5600, 'ori': 0},], - 'RTC_SDA': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9500, 'y': 5700, 'ori': 0},], - }, - 'rev02_09.sch': { - 'DIFFPAIR': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2300, 'y': 3600, 'ori': 0, 'dim': 70}, - {'t': 'GLabel', 'dir': 'UnSpc', 'x': 2270, 'y': 3400, 'ori': 0, 'dim': 70}, - {'t': 'GLabel', 'dir': 'UnSpc', 'x': 3660, 'y': 3600, 'ori': 0, 'dim': 70}, - {'t': 'GLabel', 'dir': 'UnSpc', 'x': 3660, 'y': 3400, 'ori': 0, 'dim': 70},], - 'FT_CTS': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9700, 'y': 3700, 'ori': 0},], - 'FT_DTR': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9700, 'y': 3800, 'ori': 0},], - 'FT_REF': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6930, 'y': 4500, 'ori': 0},], - 'FT_RESET': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6970, 'y': 4300, 'ori': 0},], - 'FT_RTS': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9700, 'y': 3600, 'ori': 0},], - 'FT_RXD': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 11200, 'y': 3500, 'ori': 0},], - 'FT_TXD': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 11200, 'y': 3400, 'ori': 0},], - 'FT_VCCA': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6200, 'y': 3800, 'ori': 0},], - 'FT_VCCORE': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6000, 'y': 3700, 'ori': 0},], - 'FT_VPHY': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 7550, 'y': 2800, 'ori': 0},], - 'FT_VPLL': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 7550, 'y': 2600, 'ori': 0},], - 'FT_VREGIN': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6000, 'y': 3400, 'ori': 0},], - 'USB_N': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 4050, 'y': 3600, 'ori': 0}, - {'t': 'GLabel', 'dir': 'UnSpc', 'x': 7090, 'y': 4000, 'ori': 0}, - {'t': 'GLabel', 'dir': 'UnSpc', 'x': 13200, 'y': 6100, 'ori': 0},], - 'USB_P': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 4050, 'y': 3400, 'ori': 0}, - {'t': 'GLabel', 'dir': 'UnSpc', 'x': 7090, 'y': 4100, 'ori': 0}, - {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12400, 'y': 6100, 'ori': 0},], - }, - 'rev02_10.sch': { - 'DIFFPAIR': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2400, 'y': 3700, 'ori': 0, 'dim': 70}, - {'t': 'GLabel', 'dir': 'UnSpc', 'x': 2370, 'y': 3500, 'ori': 0, 'dim': 70}, - {'t': 'GLabel', 'dir': 'UnSpc', 'x': 3760, 'y': 3500, 'ori': 0, 'dim': 70}, - {'t': 'GLabel', 'dir': 'UnSpc', 'x': 3760, 'y': 3700, 'ori': 0, 'dim': 70},], - 'DM_N': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2100, 'y': 3600, 'ori': 0, 'dim': 60},], - 'DM_P': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2100, 'y': 3500, 'ori': 0, 'dim': 60},], - 'FT_MGMT_CTS': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9800, 'y': 3800, 'ori': 0},], - 'FT_MGMT_DTR': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9800, 'y': 3900, 'ori': 0},], - 'FT_MGMT_RTS': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9800, 'y': 3700, 'ori': 0},], - 'FT_MGMT_RXD': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 11300, 'y': 3600, 'ori': 0},], - 'FT_MGMT_TXD': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 11300, 'y': 3500, 'ori': 0},], - 'FT_MGMT_VPHY': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 7650, 'y': 2900, 'ori': 0},], - 'FT_MGMT_VPLL': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 7650, 'y': 2700, 'ori': 0},], - 'FT_MGMT_VREGIN': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6100, 'y': 3500, 'ori': 0},], - 'USB_MGMT_N': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 4150, 'y': 3700, 'ori': 0}, - {'t': 'GLabel', 'dir': 'UnSpc', 'x': 6980, 'y': 4100, 'ori': 0}, - {'t': 'GLabel', 'dir': 'UnSpc', 'x': 13300, 'y': 6200, 'ori': 0},], - 'USB_MGMT_P': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 4150, 'y': 3500, 'ori': 0}, - {'t': 'GLabel', 'dir': 'UnSpc', 'x': 6980, 'y': 4200, 'ori': 0}, - {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12050, 'y': 6200, 'ori': 0},], - }, - 'rev02_11.sch': { - 'AVR_PANIC': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 12500, 'y': 5100, 'ori': 0}, - {'t': 'GLabel', 'dir': 'UnSpc', 'x': 3170, 'y': 4800, 'ori': 0},], - 'AVR_RESET': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9600, 'y': 5700, 'ori': 0},], - 'MKM_AVR_CS_N': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 3070, 'y': 4900, 'ori': 0},], - 'MKM_AVR_MISO': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 8440, 'y': 5100, 'ori': 0},], - 'MKM_AVR_MOSI': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 8440, 'y': 5000, 'ori': 0},], - 'MKM_AVR_SCK': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 8440, 'y': 5300, 'ori': 0},], - 'MKM_CONTROL_AVR_ENA': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 3070, 'y': 5000, 'ori': 0},], - 'MKM_CONTROL_FPGA_DIS': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 3070, 'y': 5100, 'ori': 0},], - }, - 'rev02_12.sch': { - 'MKM_AVR_CS_N': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 4800, 'y': 5200, 'ori': 0},], - 'MKM_AVR_MISO': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 7800, 'y': 5500, 'ori': 0},], - 'MKM_AVR_MOSI': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 4800, 'y': 5400, 'ori': 0},], - 'MKM_AVR_SCK': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 4800, 'y': 5300, 'ori': 0},], - 'MKM_CONTROL_AVR_ENA': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 4550, 'y': 5700, 'ori': 0},], - 'MKM_CONTROL_FPGA_DIS': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 4480, 'y': 6800, 'ori': 0},], - 'MKM_CS_N': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 10140, 'y': 5400, 'ori': 0}, - {'t': 'GLabel', 'dir': 'UnSpc', 'x': 7000, 'y': 5200, 'ori': 0},], - 'MKM_FPGA_CS_N': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 4610, 'y': 6300, 'ori': 0},], - 'MKM_FPGA_MISO': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6500, 'y': 6600, 'ori': 0},], - 'MKM_FPGA_MOSI': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 4610, 'y': 6500, 'ori': 0},], - 'MKM_FPGA_SCK': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 4610, 'y': 6400, 'ori': 0},], - 'MKM_MISO': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 12800, 'y': 5200, 'ori': 0}, - {'t': 'GLabel', 'dir': 'UnSpc', 'x': 4800, 'y': 5500, 'ori': 0},], - 'MKM_MOSI': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 10100, 'y': 5500, 'ori': 0}, - {'t': 'GLabel', 'dir': 'UnSpc', 'x': 7000, 'y': 5400, 'ori': 0},], - 'MKM_SCK': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 10100, 'y': 5600, 'ori': 0}, - {'t': 'GLabel', 'dir': 'UnSpc', 'x': 7000, 'y': 5300, 'ori': 0},], - }, - 'rev02_13.sch': { - 'FPGA_CFG_SCLK': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 3340, 'y': 5400, 'ori': 0},], - 'FPGA_DONE': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5400, 'y': 9500, 'ori': 0},], - #'FPGA_DONE_INT': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2900, 'y': 5100, 'ori': 0}, - # {'t': 'GLabel', 'dir': 'UnSpc', 'x': 3700, 'y': 9500, 'ori': 0},], - 'FPGA_INIT_B': [{'t': 'GLabel', 'dir': 'Input', 'x': 7130, 'y': 5600, 'ori': 2},], - #'FPGA_INIT_B_INT': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 4800, 'y': 5400, 'ori': 0}, - # {'t': 'GLabel', 'dir': 'UnSpc', 'x': 3340, 'y': 5200, 'ori': 0},], - #'FPGA_JTAG_TCK': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2900, 'y': 5800, 'ori': 0}, - # {'t': 'GLabel', 'dir': 'UnSpc', 'x': 8430, 'y': 8500, 'ori': 0},], - #'FPGA_JTAG_TDI': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2900, 'y': 5900, 'ori': 0}, - # {'t': 'GLabel', 'dir': 'UnSpc', 'x': 8430, 'y': 8700, 'ori': 0},], - #'FPGA_JTAG_TDO': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2900, 'y': 6000, 'ori': 0}, - # {'t': 'GLabel', 'dir': 'UnSpc', 'x': 8430, 'y': 8800, 'ori': 0},], - #'FPGA_JTAG_TMS': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2900, 'y': 6100, 'ori': 0}, - # {'t': 'GLabel', 'dir': 'UnSpc', 'x': 8430, 'y': 8600, 'ori': 0},], - #'FPGA_PROGRAM_B': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 7010, 'y': 5100, 'ori': 0}, - # {'t': 'GLabel', 'dir': 'UnSpc', 'x': 3340, 'y': 5300, 'ori': 0},], - }, - - 'rev02_15.sch': { + 'rev02_01.sch': { + '15V_LDO_ENABLE': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9000, 'y': 3100, 'ori': 0},], + 'FPGA_ENTROPY_DISABLE': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5450, 'y': 3550, 'ori': 0},], + 'VCC_5V0': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 11800, 'y': 6600, 'ori': 0},], + }, + 'rev02_02.sch': { + 'AMPLIFIED': [#{'t': 'GLabel', 'dir': 'UnSpc', 'x': 10300, 'y': 5000, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 9650, 'y': 5000, 'ori': 0, 'new_x': 10050}], + 'DIGITIZED_NOISE': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13400, 'y': 4800, 'ori': 0},], + #'NOISE_IN': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 3950, 'y': 5400, 'ori': 0},], + #'NOISE_OUT': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 4500, 'y': 6000, 'ori': 0},], + 'RAW_NOISE': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6000, 'y': 5400, 'ori': 0, 'new_x': 6400},], + #{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6750, 'y': 5400, 'ori': 0},], + }, + 'rev02_03.sch': { + 'ARM_LED1': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 11960, 'y': 6500, 'ori': 0},], + 'ARM_LED2': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 11960, 'y': 6600, 'ori': 0},], + 'ARM_LED3': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 11950, 'y': 6700, 'ori': 0},], + 'ARM_LED4': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 11950, 'y': 6800, 'ori': 0},], + 'BOOT0': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6440, 'y': 5600, 'ori': 0},], + 'NRST': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 12760, 'y': 4230, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 9400, 'y': 4600, 'ori': 0},], + 'OSC_IN': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2700, 'y': 5800, 'ori': 1}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 6420, 'y': 4900, 'ori': 0},], + 'OSC_OUT': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 3700, 'y': 5800, 'ori': 1}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 6420, 'y': 5000, 'ori': 0},], + 'SWDCLK': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 12760, 'y': 3930, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 9400, 'y': 4700, 'ori': 0},], + 'SWDIO': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 12760, 'y': 4130, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 9400, 'y': 4800, 'ori': 0},], + }, + 'rev02_04.sch': { + 'VCAP1': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 7200, 'y': 5300, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 3100, 'y': 3700, 'ori': 0},], + 'VCAP2': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5900, 'y': 5300, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 3500, 'y': 3700, 'ori': 0},], + }, + 'rev02_05.sch': { + 'ARM_FPGA_CFG_CS_N': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 4100, 'ori': 0},], + 'ARM_FPGA_CFG_MISO': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 4300, 'ori': 0},], + 'ARM_FPGA_CFG_MOSI': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 4400, 'ori': 0},], + 'ARM_FPGA_CFG_SCLK': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 4200, 'ori': 0},], + 'ARM_LED1': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6400, 'y': 7700, 'ori': 0},], + 'ARM_LED2': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6400, 'y': 7800, 'ori': 0},], + 'ARM_LED3': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6400, 'y': 7900, 'ori': 0},], + 'ARM_LED4': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6400, 'y': 8000, 'ori': 0},], + 'AVR_GPIO_ARM_0': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6400, 'y': 4400, 'ori': 0},], + 'AVR_GPIO_ARM_1': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6400, 'y': 4300, 'ori': 0},], + 'AVR_GPIO_ARM_2': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 7300, 'ori': 0},], + 'AVR_GPIO_ARM_3': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 7200, 'ori': 0},], + 'FMC_A0': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 10160, 'y': 3400, 'ori': 0},], + 'FMC_A1': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 10160, 'y': 3500, 'ori': 0},], + 'FMC_A10': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 10160, 'y': 4400, 'ori': 0},], + 'FMC_A11': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 10160, 'y': 4500, 'ori': 0},], + 'FMC_A12': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 10160, 'y': 4600, 'ori': 0},], + 'FMC_A13': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 10160, 'y': 4700, 'ori': 0},], + 'FMC_A14': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 10160, 'y': 4800, 'ori': 0},], + 'FMC_A15': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 10160, 'y': 4900, 'ori': 0},], + 'FMC_A16': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 10160, 'y': 5000, 'ori': 0},], + 'FMC_A17': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 10160, 'y': 5100, 'ori': 0},], + 'FMC_A18': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 10160, 'y': 5200, 'ori': 0},], + 'FMC_A19': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 10160, 'y': 5300, 'ori': 0},], + 'FMC_A2': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 10160, 'y': 3600, 'ori': 0},], + 'FMC_A20': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 10160, 'y': 5400, 'ori': 0},], + 'FMC_A21': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 10160, 'y': 5500, 'ori': 0},], + 'FMC_A22': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 10160, 'y': 5600, 'ori': 0},], + 'FMC_A23': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 10160, 'y': 5700, 'ori': 0},], + 'FMC_A24': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 10160, 'y': 5800, 'ori': 0},], + 'FMC_A25': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 10160, 'y': 5900, 'ori': 0},], + 'FMC_A3': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 10160, 'y': 3700, 'ori': 0},], + 'FMC_A4': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 10160, 'y': 3800, 'ori': 0},], + 'FMC_A5': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 10160, 'y': 3900, 'ori': 0},], + 'FMC_A6': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 10160, 'y': 4000, 'ori': 0},], + 'FMC_A7': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 10160, 'y': 4100, 'ori': 0},], + 'FMC_A8': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 10160, 'y': 4200, 'ori': 0},], + 'FMC_A9': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 10160, 'y': 4300, 'ori': 0},], + 'FMC_CLK': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9990, 'y': 7100, 'ori': 0},], + 'FMC_D0': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 3400, 'ori': 0},], + 'FMC_D1': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 3500, 'ori': 0},], + 'FMC_D10': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 4400, 'ori': 0},], + 'FMC_D11': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 4500, 'ori': 0},], + 'FMC_D12': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 4600, 'ori': 0},], + 'FMC_D13': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 4700, 'ori': 0},], + 'FMC_D14': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 4800, 'ori': 0},], + 'FMC_D15': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 4900, 'ori': 0},], + 'FMC_D16': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 5000, 'ori': 0},], + 'FMC_D17': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 5100, 'ori': 0},], + 'FMC_D18': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 5200, 'ori': 0},], + 'FMC_D19': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 5300, 'ori': 0},], + 'FMC_D2': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 3600, 'ori': 0},], + 'FMC_D20': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 5400, 'ori': 0},], + 'FMC_D21': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 5500, 'ori': 0},], + 'FMC_D22': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 5600, 'ori': 0},], + 'FMC_D23': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 5700, 'ori': 0},], + 'FMC_D24': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 5800, 'ori': 0},], + 'FMC_D25': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 5900, 'ori': 0},], + 'FMC_D26': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 6000, 'ori': 0},], + 'FMC_D27': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 6100, 'ori': 0},], + 'FMC_D28': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 6200, 'ori': 0},], + 'FMC_D29': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 6300, 'ori': 0},], + 'FMC_D3': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 3700, 'ori': 0},], + 'FMC_D30': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 6400, 'ori': 0},], + 'FMC_D31': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 6500, 'ori': 0},], + 'FMC_D4': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 3800, 'ori': 0},], + 'FMC_D5': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 3900, 'ori': 0},], + 'FMC_D6': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 4000, 'ori': 0},], + 'FMC_D7': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 4100, 'ori': 0},], + 'FMC_D8': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 4200, 'ori': 0},], + 'FMC_D9': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 4300, 'ori': 0},], + 'FMC_NBL0': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9990, 'y': 6200, 'ori': 0},], + 'FMC_NBL1': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9990, 'y': 6300, 'ori': 0},], + 'FMC_NBL2': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9990, 'y': 6400, 'ori': 0},], + 'FMC_NBL3': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9990, 'y': 6500, 'ori': 0},], + 'FMC_NE1': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9990, 'y': 7500, 'ori': 0},], + 'FMC_NL': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9990, 'y': 6800, 'ori': 0},], + 'FMC_NOE': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9990, 'y': 7200, 'ori': 0},], + 'FMC_NWAIT': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9990, 'y': 7400, 'ori': 0},], + 'FMC_NWE': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9990, 'y': 7300, 'ori': 0},], + 'FMC_SDCKE0': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13110, 'y': 7400, 'ori': 0},], + 'FMC_SDCKE1': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13110, 'y': 7500, 'ori': 0},], + 'FMC_SDCLK': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 6800, 'ori': 0},], + 'FMC_SDNCAS': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13110, 'y': 7700, 'ori': 0},], + 'FMC_SDNE0': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 7100, 'ori': 0},], + 'FMC_SDNE1': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 7200, 'ori': 0},], + 'FMC_SDNRAS': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13110, 'y': 7800, 'ori': 0},], + 'FMC_SDNWE': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 13120, 'y': 6900, 'ori': 0},], + 'FPGA_CFG_CTRL_ARM_ENA': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6400, 'y': 2700, 'ori': 0},], + 'FPGA_CFG_CTRL_FPGA_DIS': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6400, 'y': 5100, 'ori': 0},], + 'FPGA_DONE': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6400, 'y': 7000, 'ori': 0},], + 'FPGA_INIT_B': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6400, 'y': 6200, 'ori': 0},], + 'FPGA_IRQ_N_0': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6400, 'y': 6500, 'ori': 0},], + 'FPGA_IRQ_N_1': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6400, 'y': 6600, 'ori': 0},], + 'FPGA_IRQ_N_2': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6400, 'y': 6700, 'ori': 0},], + 'FPGA_IRQ_N_3': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6400, 'y': 6800, 'ori': 0},], + 'FPGA_PROGRAM_B': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6400, 'y': 6300, 'ori': 0},], + 'FT_CTS': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 3000, 'ori': 0},], + 'FT_DTR': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 2700, 'ori': 0},], + 'FT_MGMT_CTS': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 3700, 'ori': 0},], + 'FT_MGMT_DTR': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 3400, 'ori': 0},], + 'FT_MGMT_RTS': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 3800, 'ori': 0},], + 'FT_MGMT_RXD': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 3500, 'ori': 0},], + 'FT_MGMT_TXD': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 3600, 'ori': 0},], + 'FT_RTS': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 3100, 'ori': 0},], + 'FT_RXD': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 2800, 'ori': 0},], + 'FT_TXD': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 2900, 'ori': 0},], + 'KSM_PROM_CS_N': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 4700, 'ori': 0},], + 'KSM_PROM_MISO': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 4900, 'ori': 0},], + 'KSM_PROM_MOSI': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 5000, 'ori': 0},], + 'KSM_PROM_SCLK': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 4800, 'ori': 0},], + 'RTC_MFP': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 6300, 'ori': 0},], + 'RTC_SCL': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 6200, 'ori': 0},], + 'RTC_SDA': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2250, 'y': 6100, 'ori': 0},], + }, + 'rev02_06.sch': { + 'FMC_A0': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2810, 'y': 2600, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 9800, 'y': 2700, 'ori': 0},], + 'FMC_A1': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2810, 'y': 2700, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 9800, 'y': 2800, 'ori': 0},], + 'FMC_A10': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2810, 'y': 3600, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 9800, 'y': 3700, 'ori': 0},], + 'FMC_A11': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2810, 'y': 3700, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 9800, 'y': 3800, 'ori': 0},], + 'FMC_A12': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2810, 'y': 3800, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 9800, 'y': 3900, 'ori': 0},], + 'FMC_A14': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2800, 'y': 4100, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 9800, 'y': 4200, 'ori': 0},], + 'FMC_A15': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2800, 'y': 4200, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 9800, 'y': 4300, 'ori': 0},], + 'FMC_A2': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2810, 'y': 2800, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 9800, 'y': 2900, 'ori': 0},], + 'FMC_A3': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2810, 'y': 2900, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 9800, 'y': 3000, 'ori': 0},], + 'FMC_A4': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2810, 'y': 3000, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 9800, 'y': 3100, 'ori': 0},], + 'FMC_A5': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2810, 'y': 3100, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 9800, 'y': 3200, 'ori': 0},], + 'FMC_A6': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2810, 'y': 3200, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 9800, 'y': 3300, 'ori': 0},], + 'FMC_A7': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2810, 'y': 3300, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 9800, 'y': 3400, 'ori': 0},], + 'FMC_A8': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2810, 'y': 3400, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 9800, 'y': 3500, 'ori': 0},], + 'FMC_A9': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2810, 'y': 3500, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 9800, 'y': 3600, 'ori': 0},], + 'FMC_D0': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5970, 'y': 2600, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12970, 'y': 2700, 'ori': 0},], + 'FMC_D1': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5970, 'y': 2700, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12970, 'y': 2800, 'ori': 0},], + 'FMC_D10': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5970, 'y': 3600, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12970, 'y': 3700, 'ori': 0},], + 'FMC_D11': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5970, 'y': 3700, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12970, 'y': 3800, 'ori': 0},], + 'FMC_D12': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5970, 'y': 3800, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12970, 'y': 3900, 'ori': 0},], + 'FMC_D13': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5970, 'y': 3900, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12970, 'y': 4000, 'ori': 0},], + 'FMC_D14': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5970, 'y': 4000, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12970, 'y': 4100, 'ori': 0},], + 'FMC_D15': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5970, 'y': 4100, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12970, 'y': 4200, 'ori': 0},], + 'FMC_D16': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5970, 'y': 4200, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12970, 'y': 4300, 'ori': 0},], + 'FMC_D17': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5970, 'y': 4300, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12970, 'y': 4400, 'ori': 0},], + 'FMC_D18': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5970, 'y': 4400, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12970, 'y': 4500, 'ori': 0},], + 'FMC_D19': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5970, 'y': 4500, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12970, 'y': 4600, 'ori': 0},], + 'FMC_D2': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5970, 'y': 2800, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12970, 'y': 2900, 'ori': 0},], + 'FMC_D20': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5970, 'y': 4600, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12970, 'y': 4700, 'ori': 0},], + 'FMC_D21': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5970, 'y': 4700, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12970, 'y': 4800, 'ori': 0},], + 'FMC_D22': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5970, 'y': 4800, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12970, 'y': 4900, 'ori': 0},], + 'FMC_D23': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5970, 'y': 4900, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12970, 'y': 5000, 'ori': 0},], + 'FMC_D24': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5970, 'y': 5000, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12970, 'y': 5100, 'ori': 0},], + 'FMC_D25': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5970, 'y': 5100, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12970, 'y': 5200, 'ori': 0},], + 'FMC_D26': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5970, 'y': 5200, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12970, 'y': 5300, 'ori': 0},], + 'FMC_D27': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5970, 'y': 5300, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12970, 'y': 5400, 'ori': 0},], + 'FMC_D28': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5970, 'y': 5400, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12970, 'y': 5500, 'ori': 0},], + 'FMC_D29': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5970, 'y': 5500, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12970, 'y': 5600, 'ori': 0},], + 'FMC_D3': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5970, 'y': 2900, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12970, 'y': 3000, 'ori': 0},], + 'FMC_D30': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5970, 'y': 5600, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12970, 'y': 5700, 'ori': 0},], + 'FMC_D31': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5970, 'y': 5700, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12970, 'y': 5800, 'ori': 0},], + 'FMC_D4': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5970, 'y': 3000, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12970, 'y': 3100, 'ori': 0},], + 'FMC_D5': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5970, 'y': 3100, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12970, 'y': 3200, 'ori': 0},], + 'FMC_D6': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5970, 'y': 3200, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12970, 'y': 3300, 'ori': 0},], + 'FMC_D7': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5970, 'y': 3300, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12970, 'y': 3400, 'ori': 0},], + 'FMC_D8': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5970, 'y': 3400, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12970, 'y': 3500, 'ori': 0},], + 'FMC_D9': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5970, 'y': 3500, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12970, 'y': 3600, 'ori': 0},], + 'FMC_NBL0': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5960, 'y': 5900, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12980, 'y': 6000, 'ori': 0},], + 'FMC_NBL1': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5960, 'y': 6000, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12980, 'y': 6100, 'ori': 0},], + 'FMC_NBL2': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5960, 'y': 6100, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12980, 'y': 6200, 'ori': 0},], + 'FMC_NBL3': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5960, 'y': 6200, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12980, 'y': 6300, 'ori': 0},], + 'FMC_SDCKE0': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2700, 'y': 5500, 'ori': 0},], + 'FMC_SDCKE1': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9700, 'y': 5600, 'ori': 0},], + 'FMC_SDCLK': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2700, 'y': 5000, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 9700, 'y': 5100, 'ori': 0},], + 'FMC_SDNCAS': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2700, 'y': 4400, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 9700, 'y': 4500, 'ori': 0},], + 'FMC_SDNE0': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2700, 'y': 6000, 'ori': 0},], + 'FMC_SDNE1': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9700, 'y': 6100, 'ori': 0},], + 'FMC_SDNRAS': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2700, 'y': 4500, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 9700, 'y': 4600, 'ori': 0},], + 'FMC_SDNWE': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2700, 'y': 6500, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 9700, 'y': 6600, 'ori': 0},], + }, + 'rev02_07.sch': { + 'KSM_PROM_CS_N': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6270, 'y': 5500, 'ori': 0},], + 'KSM_PROM_MISO': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6270, 'y': 5600, 'ori': 0},], + 'KSM_PROM_MOSI': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 8600, 'y': 5800, 'ori': 0},], + 'KSM_PROM_SCLK': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 8600, 'y': 5700, 'ori': 0},], + }, + 'rev02_08.sch': { + 'RTC_MFP': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9500, 'y': 5500, 'ori': 0},], + 'RTC_SCL': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9500, 'y': 5600, 'ori': 0},], + 'RTC_SDA': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9500, 'y': 5700, 'ori': 0},], + }, + 'rev02_09.sch': { + 'D1_N': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2050, 'y': 3500, 'ori': 0, 'dim': 60},], + 'D1_P': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2050, 'y': 3400, 'ori': 0, 'dim': 60},], + 'DIFFPAIR': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2300, 'y': 3600, 'ori': 0, 'dim': 70}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 2270, 'y': 3400, 'ori': 0, 'dim': 70}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 3660, 'y': 3600, 'ori': 0, 'dim': 70}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 3660, 'y': 3400, 'ori': 0, 'dim': 70},], + 'FT_CTS': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9700, 'y': 3700, 'ori': 0},], + 'FT_DTR': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9700, 'y': 3800, 'ori': 0},], + 'FT_REF': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6930, 'y': 4500, 'ori': 0},], + 'FT_RESET': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6970, 'y': 4300, 'ori': 0},], + 'FT_RTS': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9700, 'y': 3600, 'ori': 0},], + 'FT_RXD': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 11200, 'y': 3500, 'ori': 0},], + 'FT_RXD1': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9800, 'y': 3500, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12400, 'y': 6200, 'ori': 0},], + 'FT_TXD': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 11200, 'y': 3400, 'ori': 0},], + 'FT_TXD1': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9800, 'y': 3400, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 13200, 'y': 6200, 'ori': 0},], + 'FT_VCC3V3': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6000, 'y': 3600, 'ori': 0},], + 'FT_VCCA': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6200, 'y': 3800, 'ori': 0},], + 'FT_VCCORE': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6000, 'y': 3700, 'ori': 0},], + 'FT_VPHY': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 7550, 'y': 2800, 'ori': 0},], + 'FT_VPLL': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 7550, 'y': 2600, 'ori': 0},], + 'FT_VREGIN': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6000, 'y': 3400, 'ori': 0},], + 'USB_N': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 4050, 'y': 3600, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 7090, 'y': 4000, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 13200, 'y': 6100, 'ori': 0},], + 'USB_P': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 4050, 'y': 3400, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 7090, 'y': 4100, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12400, 'y': 6100, 'ori': 0},], + }, + 'rev02_10.sch': { + 'DIFFPAIR': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2400, 'y': 3700, 'ori': 0, 'dim': 70}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 2370, 'y': 3500, 'ori': 0, 'dim': 70}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 3760, 'y': 3500, 'ori': 0, 'dim': 70}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 3760, 'y': 3700, 'ori': 0, 'dim': 70},], + 'DM_N': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2100, 'y': 3600, 'ori': 0, 'dim': 60},], + 'DM_P': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2100, 'y': 3500, 'ori': 0, 'dim': 60},], + 'FT_MGMT_CTS': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9800, 'y': 3800, 'ori': 0},], + 'FT_MGMT_DTR': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9800, 'y': 3900, 'ori': 0},], + 'FT_MGMT_RTS': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9800, 'y': 3700, 'ori': 0},], + 'FT_MGMT_RXD': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 11300, 'y': 3600, 'ori': 0},], + 'FT_MGMT_RXD1': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9900, 'y': 3600, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12050, 'y': 6300, 'ori': 0},], + 'FT_MGMT_TXD': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 11300, 'y': 3500, 'ori': 0},], + 'FT_MGMT_TXD1': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9900, 'y': 3500, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 13300, 'y': 6300, 'ori': 0},], + 'FT_MGMT_VCC3V3': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6100, 'y': 3700, 'ori': 0},], + 'FT_MGMT_VPHY': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 7650, 'y': 2900, 'ori': 0},], + 'FT_MGMT_VPLL': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 7650, 'y': 2700, 'ori': 0},], + 'FT_MGMT_VREGIN': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6100, 'y': 3500, 'ori': 0},], + 'FT_REF1': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 7150, 'y': 4600, 'ori': 0},], + 'FT_RESET1': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 7040, 'y': 4400, 'ori': 0},], + 'FT_VCCA1': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6670, 'y': 3900, 'ori': 0},], + 'FT_VCCORE1': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6100, 'y': 3800, 'ori': 0},], + 'USB_MGMT_N': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 4150, 'y': 3700, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 6980, 'y': 4100, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 13300, 'y': 6200, 'ori': 0},], + 'USB_MGMT_P': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 4150, 'y': 3500, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 6980, 'y': 4200, 'ori': 0}, + {'t': 'GLabel', 'dir': 'UnSpc', 'x': 12050, 'y': 6200, 'ori': 0},], + }, + 'rev02_11.sch': { + 'AVR_GPIO_0': [{'t': 'Label', 'dir': 'UnSpc', 'x': 13500, 'y': 6600, 'ori': 2},], + #{'t': 'GLabel', 'dir': 'UnSpc', 'x': 8500, 'y': 4100, 'ori': 0},], + 'AVR_GPIO_1': [{'t': 'Label', 'dir': 'UnSpc', 'x': 13500, 'y': 6700, 'ori': 2},], + #{'t': 'GLabel', 'dir': 'UnSpc', 'x': 8500, 'y': 4200, 'ori': 0},], + 'AVR_GPIO_2': [{'t': 'Label', 'dir': 'UnSpc', 'x': 13500, 'y': 6800, 'ori': 2},], + #{'t': 'GLabel', 'dir': 'UnSpc', 'x': 8500, 'y': 4300, 'ori': 0},], + 'AVR_GPIO_3': [{'t': 'Label', 'dir': 'UnSpc', 'x': 13500, 'y': 6900, 'ori': 2},], + #{'t': 'GLabel', 'dir': 'UnSpc', 'x': 8500, 'y': 4400, 'ori': 0},], + 'AVR_GPIO_4': [{'t': 'Label', 'dir': 'UnSpc', 'x': 13500, 'y': 7000, 'ori': 2},], + #{'t': 'GLabel', 'dir': 'UnSpc', 'x': 8500, 'y': 4500, 'ori': 0},], + 'AVR_GPIO_5': [{'t': 'Label', 'dir': 'UnSpc', 'x': 13500, 'y': 7100, 'ori': 2},], + #{'t': 'GLabel', 'dir': 'UnSpc', 'x': 8500, 'y': 4600, 'ori': 0},], + 'AVR_GPIO_6': [{'t': 'Label', 'dir': 'UnSpc', 'x': 13500, 'y': 7200, 'ori': 2},], + #{'t': 'GLabel', 'dir': 'UnSpc', 'x': 8500, 'y': 4700, 'ori': 0},], + 'AVR_GPIO_7': [{'t': 'Label', 'dir': 'UnSpc', 'x': 13500, 'y': 7300, 'ori': 2},], + #{'t': 'GLabel', 'dir': 'UnSpc', 'x': 8500, 'y': 4800, 'ori': 0},], + 'AVR_GPIO_ARM_0': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 3170, 'y': 5300, 'ori': 0},], + 'AVR_GPIO_ARM_1': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 3170, 'y': 5400, 'ori': 0},], + 'AVR_GPIO_ARM_2': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 3170, 'y': 5500, 'ori': 0},], + 'AVR_GPIO_ARM_3': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 3170, 'y': 5600, 'ori': 0},], + 'AVR_GPIO_FPGA_0': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 3170, 'y': 5700, 'ori': 0},], + 'AVR_GPIO_FPGA_1': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 3170, 'y': 5800, 'ori': 0},], + 'AVR_GPIO_FPGA_2': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 3170, 'y': 5900, 'ori': 0},], + 'AVR_GPIO_FPGA_3': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 3170, 'y': 6000, 'ori': 0},], + #'AVR_LED1': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 12610, 'y': 8700, 'ori': 0}, + # {'t': 'GLabel', 'dir': 'UnSpc', 'x': 3170, 'y': 4400, 'ori': 0},], + #'AVR_LED2': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 12610, 'y': 8800, 'ori': 0}, + # {'t': 'GLabel', 'dir': 'UnSpc', 'x': 3170, 'y': 4500, 'ori': 0},], + #'AVR_LED3': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 12610, 'y': 8900, 'ori': 0}, + # {'t': 'GLabel', 'dir': 'UnSpc', 'x': 3180, 'y': 4600, 'ori': 0},], + #'AVR_LED4': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 12610, 'y': 9000, 'ori': 0}, + # {'t': 'GLabel', 'dir': 'UnSpc', 'x': 3170, 'y': 4700, 'ori': 0},], + #'AVR_PANIC': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 12500, 'y': 5100, 'ori': 0}, + # {'t': 'GLabel', 'dir': 'UnSpc', 'x': 3170, 'y': 4800, 'ori': 0},], + #'AVR_RESET': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 9600, 'y': 5700, 'ori': 0},], + 'MKM_AVR_CS_N': [{'t': 'GLabel', 'dir': 'Output', 'x': 3070, 'y': 4900, 'ori': 0},], + #'MKM_AVR_MISO': [{'t': 'GLabel', 'dir': 'Input', 'x': 8440, 'y': 5100, 'ori': 0},], + #'MKM_AVR_MOSI': [{'t': 'GLabel', 'dir': 'Output', 'x': 8440, 'y': 5000, 'ori': 0},], + #'MKM_AVR_SCK': [{'t': 'GLabel', 'dir': 'Output', 'x': 8440, 'y': 5300, 'ori': 0},], + 'MKM_CONTROL_AVR_ENA': [{'t': 'GLabel', 'dir': 'Output', 'x': 3070, 'y': 5000, 'ori': 0},], + 'MKM_CONTROL_FPGA_DIS': [{'t': 'GLabel', 'dir': 'Output', 'x': 3070, 'y': 5100, 'ori': 0},], + }, + 'rev02_12.sch': { + 'MKM_AVR_CS_N': [{'t': 'GLabel', 'dir': 'Input', 'x': 4800, 'y': 5200, 'ori': 0},], + 'MKM_AVR_MISO': [{'t': 'GLabel', 'dir': 'Output', 'x': 7800, 'y': 5500, 'ori': 2},], + 'MKM_AVR_MOSI': [{'t': 'GLabel', 'dir': 'Input', 'x': 4800, 'y': 5400, 'ori': 0},], + 'MKM_AVR_SCK': [{'t': 'GLabel', 'dir': 'Input', 'x': 4800, 'y': 5300, 'ori': 0},], + 'MKM_CONTROL_AVR_ENA': [{'t': 'GLabel', 'dir': 'Input', 'x': 4550, 'y': 5700, 'ori': 0},], + 'MKM_CONTROL_FPGA_DIS': [{'t': 'GLabel', 'dir': 'Input', 'x': 4480, 'y': 6800, 'ori': 0},], + #'MKM_CS_N': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 10140, 'y': 5400, 'ori': 0}, + # {'t': 'GLabel', 'dir': 'UnSpc', 'x': 7000, 'y': 5200, 'ori': 0},], + 'MKM_FPGA_CS_N': [{'t': 'GLabel', 'dir': 'Input', 'x': 4610, 'y': 6300, 'ori': 0},], + 'MKM_FPGA_MISO': [{'t': 'GLabel', 'dir': 'Output', 'x': 6500, 'y': 6600, 'ori': 2},], + 'MKM_FPGA_MOSI': [{'t': 'GLabel', 'dir': 'Input', 'x': 4610, 'y': 6500, 'ori': 0},], + 'MKM_FPGA_SCK': [{'t': 'GLabel', 'dir': 'Input', 'x': 4610, 'y': 6400, 'ori': 0},], + 'MKM_MISO': [{'t': 'Label', 'x': 12800, 'y': 5200, 'ori': 2, 'new_x': 13150},], + #{'t': 'GLabel', 'dir': 'UnSpc', 'x': 4800, 'y': 5500, 'ori': 0},], + #'MKM_MOSI': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 10100, 'y': 5500, 'ori': 0}, + # {'t': 'GLabel', 'dir': 'UnSpc', 'x': 7000, 'y': 5400, 'ori': 0},], + #'MKM_SCK': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 10100, 'y': 5600, 'ori': 0}, + # {'t': 'GLabel', 'dir': 'UnSpc', 'x': 7000, 'y': 5300, 'ori': 0},], + }, + 'rev02_13.sch': { + 'FPGA_CFG_SCLK': [{'t': 'GLabel', 'dir': 'Output', 'x': 3340, 'y': 5400, 'ori': 2, 'new_x': 3940},], + 'FPGA_CFG_SCLK1': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2220, 'y': 5400, 'ori': 0},], + 'FPGA_DONE': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5400, 'y': 9500, 'ori': 0},], + #'FPGA_DONE_INT': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2900, 'y': 5100, 'ori': 0}, + # {'t': 'GLabel', 'dir': 'UnSpc', 'x': 3700, 'y': 9500, 'ori': 0},], + 'FPGA_INIT_B': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 7130, 'y': 5600, 'ori': 2, 'new_x': 7600},], + #'FPGA_INIT_B_INT': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 4800, 'y': 5400, 'ori': 0}, + # {'t': 'GLabel', 'dir': 'UnSpc', 'x': 3340, 'y': 5200, 'ori': 0},], + #'FPGA_INIT_B_INT1': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2220, 'y': 5200, 'ori': 0},], + #'FPGA_JTAG_TCK': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2900, 'y': 5800, 'ori': 0}, + # {'t': 'GLabel', 'dir': 'UnSpc', 'x': 8430, 'y': 8500, 'ori': 0},], + #'FPGA_JTAG_TDI': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2900, 'y': 5900, 'ori': 0}, + # {'t': 'GLabel', 'dir': 'UnSpc', 'x': 8430, 'y': 8700, 'ori': 0},], + #'FPGA_JTAG_TDO': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2900, 'y': 6000, 'ori': 0}, + # {'t': 'GLabel', 'dir': 'UnSpc', 'x': 8430, 'y': 8800, 'ori': 0},], + #'FPGA_JTAG_TMS': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2900, 'y': 6100, 'ori': 0}, + # {'t': 'GLabel', 'dir': 'UnSpc', 'x': 8430, 'y': 8600, 'ori': 0},], + #'FPGA_M0': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2900, 'y': 5500, 'ori': 0}, + # {'t': 'GLabel', 'dir': 'UnSpc', 'x': 2600, 'y': 9000, 'ori': 0},], + #'FPGA_M1': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2900, 'y': 5600, 'ori': 0}, + # {'t': 'GLabel', 'dir': 'UnSpc', 'x': 1750, 'y': 9000, 'ori': 0},], + #'FPGA_M2': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2900, 'y': 5700, 'ori': 0}, + # {'t': 'GLabel', 'dir': 'UnSpc', 'x': 1000, 'y': 9000, 'ori': 0},], + 'FPGA_PROGRAM_B': [{'t': 'GLabel', 'dir': 'Input', 'x': 7010, 'y': 5100, 'ori': 2, 'new_x': 7600}, + {'t': 'GLabel', 'dir': 'Input', 'x': 3340, 'y': 5300, 'ori': 2, 'new_x': 3940},], + #'FPGA_PROGRAM_B1': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2220, 'y': 5300, 'ori': 0},], + }, + 'rev02_15.sch': { 'ARM_FPGA_CFG_CS_N': [{'t': 'GLabel', 'dir': 'Input', 'x': 2980, 'y': 5630, 'ori': 0},], 'ARM_FPGA_CFG_MISO': [{'t': 'GLabel', 'dir': 'Output', 'x': 5160, 'y': 5930, 'ori': 2},], 'ARM_FPGA_CFG_MOSI': [{'t': 'GLabel', 'dir': 'Input', 'x': 2980, 'y': 5830, 'ori': 0},], @@ -216,50 +470,163 @@ labels = { # {'t': 'GLabel', 'dir': 'UnSpc', 'x': 420, 'y': 6830, 'ori': 0},], #'SPI_A_TRISTATE': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 3360, 'y': 5510, 'ori': 1},], #'SPI_B_TRISTATE': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 3060, 'y': 7230, 'ori': 0},], - }, - 'rev02_17.sch': { - 'FMC_CLK': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 7200, 'y': 7800, 'ori': 0},], - 'FMC_NOE': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 7200, 'y': 8700, 'ori': 0},], - 'FMC_NWAIT': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2220, 'y': 8700, 'ori': 0},], - 'FMC_NWE': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2220, 'y': 8800, 'ori': 0},], - 'MKM_FPGA_CS_N': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2230, 'y': 5900, 'ori': 0},], - 'MKM_FPGA_MISO': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2230, 'y': 6200, 'ori': 0},], - 'MKM_FPGA_MOSI': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2230, 'y': 6100, 'ori': 0},], - 'MKM_FPGA_SCK': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2230, 'y': 6400, 'ori': 0},], - }, - 'rev02_18.sch': { - 'POK_VCCAUX': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 4000, 'y': 6200, 'ori': 3},], - 'POK_VCCO': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 4000, 'y': 9700, 'ori': 0},], - 'PWR_ENA_VCCAUX': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 1900, 'y': 4740, 'ori': 1},], - 'PWR_ENA_VCCO': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 1400, 'y': 7500, 'ori': 0},], - }, - 'rev02_19.sch': { - 'FPGA_ENTROPY_DISABLE': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2100, 'y': 7200, 'ori': 0},], - 'FPGA_GCLK': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2100, 'y': 7300, 'ori': 0},], - }, - 'rev02_20.sch': { - 'DIGITIZED_NOISE': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2460, 'y': 7400, 'ori': 0},], - 'FMC_NL': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2460, 'y': 8300, 'ori': 0},], - 'FPGA_CFG_CS_N': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 3600, 'y': 6200, 'ori': 0},], - 'FPGA_CFG_MISO': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 3600, 'y': 5300, 'ori': 0},], - 'FPGA_CFG_MOSI': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 3600, 'y': 5200, 'ori': 0},], - }, - 'rev02_24.sch': { - 'POK_VCCINT': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5350, 'y': 9100, 'ori': 0},], - 'PWR_ENA_VCCINT': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2700, 'y': 5900, 'ori': 0},], - }, - 'rev02_25.sch': { - 'POK_VCCAUX': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 1540, 'y': 8700, 'ori': 0},], - 'POK_VCCINT': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5100, 'y': 5300, 'ori': 0},], - 'POK_VCCO': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6110, 'y': 8700, 'ori': 0},], - 'PWR_ENA_VCCAUX': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 7250, 'y': 5300, 'ori': 0},], - 'PWR_ENA_VCCINT': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2660, 'y': 5300, 'ori': 0},], - 'PWR_ENA_VCCO': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 3690, 'y': 8700, 'ori': 0},], - }, + }, + 'rev02_17.sch': { + 'FMC_A0': [{'t': 'GLabel', 'dir': 'Output', 'x': 7200, 'y': 5500, 'ori': 2, 'new_x': 7900},], + 'FMC_A1': [{'t': 'GLabel', 'dir': 'Output', 'x': 7200, 'y': 5800, 'ori': 2, 'new_x': 7900},], + 'FMC_A10': [{'t': 'GLabel', 'dir': 'Output', 'x': 7200, 'y': 6500, 'ori': 2, 'new_x': 7900},], + 'FMC_A11': [{'t': 'GLabel', 'dir': 'Output', 'x': 7200, 'y': 6700, 'ori': 2, 'new_x': 7900},], + 'FMC_A12': [{'t': 'GLabel', 'dir': 'Output', 'x': 7200, 'y': 7100, 'ori': 2, 'new_x': 7900},], + 'FMC_A13': [{'t': 'GLabel', 'dir': 'Output', 'x': 2220, 'y': 5600, 'ori': 2, 'new_x': 2950},], + 'FMC_A14': [{'t': 'GLabel', 'dir': 'Output', 'x': 7200, 'y': 6900, 'ori': 2, 'new_x': 7900},], + 'FMC_A15': [{'t': 'GLabel', 'dir': 'Output', 'x': 2220, 'y': 9600, 'ori': 2, 'new_x': 2950},], + 'FMC_A16': [{'t': 'GLabel', 'dir': 'Output', 'x': 7200, 'y': 7000, 'ori': 2, 'new_x': 7900},], + 'FMC_A17': [{'t': 'GLabel', 'dir': 'Output', 'x': 2220, 'y': 9500, 'ori': 2, 'new_x': 2950},], + 'FMC_A18': [{'t': 'GLabel', 'dir': 'Output', 'x': 2220, 'y': 9800, 'ori': 2, 'new_x': 2950},], + 'FMC_A2': [{'t': 'GLabel', 'dir': 'Output', 'x': 7200, 'y': 5700, 'ori': 2, 'new_x': 7900},], + 'FMC_A3': [{'t': 'GLabel', 'dir': 'Output', 'x': 7200, 'y': 5600, 'ori': 2, 'new_x': 7900},], + 'FMC_A4': [{'t': 'GLabel', 'dir': 'Output', 'x': 7200, 'y': 5900, 'ori': 2, 'new_x': 7900},], + 'FMC_A5': [{'t': 'GLabel', 'dir': 'Output', 'x': 7200, 'y': 6000, 'ori': 2, 'new_x': 7900},], + 'FMC_A6': [{'t': 'GLabel', 'dir': 'Output', 'x': 7200, 'y': 6100, 'ori': 2, 'new_x': 7900},], + 'FMC_A7': [{'t': 'GLabel', 'dir': 'Output', 'x': 7200, 'y': 6200, 'ori': 2, 'new_x': 7900},], + 'FMC_A8': [{'t': 'GLabel', 'dir': 'Output', 'x': 7200, 'y': 6300, 'ori': 2, 'new_x': 7900},], + 'FMC_A9': [{'t': 'GLabel', 'dir': 'Output', 'x': 7200, 'y': 6400, 'ori': 2, 'new_x': 7900},], + 'FMC_CLK': [{'t': 'GLabel', 'dir': 'Output', 'x': 7200, 'y': 7800, 'ori': 2, 'new_x': 7890},], + 'FMC_D0': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2220, 'y': 9100, 'ori': 2, 'new_x': 2950},], + 'FMC_D1': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2220, 'y': 9200, 'ori': 2, 'new_x': 2950},], + 'FMC_D13': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2220, 'y': 6500, 'ori': 2, 'new_x': 2950},], + 'FMC_D14': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2220, 'y': 6600, 'ori': 2, 'new_x': 2950},], + 'FMC_D15': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2220, 'y': 6800, 'ori': 2, 'new_x': 2950},], + 'FMC_D16': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2220, 'y': 6700, 'ori': 2, 'new_x': 2950},], + 'FMC_D17': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2220, 'y': 6900, 'ori': 2, 'new_x': 2950},], + 'FMC_D18': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2220, 'y': 7000, 'ori': 2, 'new_x': 2950},], + 'FMC_D19': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2220, 'y': 7100, 'ori': 2, 'new_x': 2950},], + 'FMC_D2': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2220, 'y': 5400, 'ori': 2, 'new_x': 2950},], + 'FMC_D20': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2220, 'y': 7200, 'ori': 2, 'new_x': 2950},], + 'FMC_D21': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2220, 'y': 7300, 'ori': 2, 'new_x': 2950},], + 'FMC_D22': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2220, 'y': 7400, 'ori': 2, 'new_x': 2950},], + 'FMC_D23': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2220, 'y': 7500, 'ori': 2, 'new_x': 2950},], + 'FMC_D24': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 7200, 'y': 7500, 'ori': 2, 'new_x': 7900},], + 'FMC_D25': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2220, 'y': 7700, 'ori': 2, 'new_x': 2950},], + 'FMC_D26': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 7200, 'y': 7900, 'ori': 2, 'new_x': 7900},], + 'FMC_D27': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 7200, 'y': 6600, 'ori': 2, 'new_x': 7900},], + 'FMC_D3': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2220, 'y': 5500, 'ori': 2, 'new_x': 2950},], + 'FMC_D4': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 7200, 'y': 6800, 'ori': 2, 'new_x': 7900},], + 'FMC_D5': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 7200, 'y': 7300, 'ori': 2, 'new_x': 7900},], + 'FMC_D6': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 7200, 'y': 7600, 'ori': 2, 'new_x': 7900},], + 'FMC_D7': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 7200, 'y': 7700, 'ori': 2, 'new_x': 7900},], + 'FMC_NE1': [{'t': 'GLabel', 'dir': 'Output', 'x': 2220, 'y': 8400, 'ori': 2, 'new_x': 2950},], + 'FMC_NOE': [{'t': 'GLabel', 'dir': 'Output', 'x': 7200, 'y': 8700, 'ori': 2, 'new_x': 7900},], + 'FMC_NWAIT': [{'t': 'GLabel', 'dir': 'Output', 'x': 2220, 'y': 8700, 'ori': 2, 'new_x': 2950},], + 'FMC_NWE': [{'t': 'GLabel', 'dir': 'Output', 'x': 2220, 'y': 8800, 'ori': 2, 'new_x': 2950},], + 'FPGA_GPIO_LED_0': [{'t': 'GLabel', 'dir': 'Output', 'x': 2220, 'y': 6300, 'ori': 2, 'new_x': 2950},], + 'FPGA_GPIO_LED_1': [{'t': 'GLabel', 'dir': 'Output', 'x': 2230, 'y': 5300, 'ori': 2, 'new_x': 2950},], + 'MKM_FPGA_CS_N': [{'t': 'GLabel', 'dir': 'Output', 'x': 2230, 'y': 5900, 'ori': 2, 'new_x': 2950},], + 'MKM_FPGA_MISO': [{'t': 'GLabel', 'dir': 'Input', 'x': 2230, 'y': 6200, 'ori': 2, 'new_x': 2950},], + 'MKM_FPGA_MOSI': [{'t': 'GLabel', 'dir': 'Output', 'x': 2230, 'y': 6100, 'ori': 2, 'new_x': 2950},], + 'MKM_FPGA_SCK': [{'t': 'GLabel', 'dir': 'Output', 'x': 2230, 'y': 6400, 'ori': 2, 'new_x': 2950},], + }, + 'rev02_18.sch': { + 'FPGA_VCCAUX_1V8': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6100, 'y': 4800, 'ori': 0},], + 'POK_VCCAUX': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 4000, 'y': 6200, 'ori': 3},], + 'POK_VCCO': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 4000, 'y': 9700, 'ori': 0},], + 'PWR_ENA_VCCAUX': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 1900, 'y': 4740, 'ori': 1},], + 'PWR_ENA_VCCO': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 1400, 'y': 7500, 'ori': 0},], + 'VCCO_3V3': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6100, 'y': 8000, 'ori': 0},], + }, + 'rev02_19.sch': { + 'AVR_GPIO_FPGA_0': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2100, 'y': 8100, 'ori': 2, 'new_x': 3100},], + 'AVR_GPIO_FPGA_1': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2100, 'y': 8200, 'ori': 2, 'new_x': 3100},], + 'AVR_GPIO_FPGA_2': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2100, 'y': 8300, 'ori': 2, 'new_x': 3100},], + 'AVR_GPIO_FPGA_3': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2100, 'y': 8400, 'ori': 2, 'new_x': 3100},], + 'FPGA_ENTROPY_DISABLE': [{'t': 'GLabel', 'dir': 'Output', 'x': 2100, 'y': 7200, 'ori': 2, 'new_x': 3100},], + 'FPGA_GCLK': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2100, 'y': 7300, 'ori': 2, 'new_x': 3100},], + 'FPGA_GPIO_A_0': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2100, 'y': 5800, 'ori': 2, 'new_x': 3100}, + {'t': 'GLabel', 'dir': 'BiDi', 'x': 7600, 'y': 5000, 'ori': 0},], + 'FPGA_GPIO_A_1': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2100, 'y': 5700, 'ori': 2, 'new_x': 3100}, + {'t': 'GLabel', 'dir': 'BiDi', 'x': 9300, 'y': 5000, 'ori': 2, 'new_x': 10000},], + 'FPGA_GPIO_A_2': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2100, 'y': 6900, 'ori': 2, 'new_x': 3100}, + {'t': 'GLabel', 'dir': 'BiDi', 'x': 7600, 'y': 5100, 'ori': 0},], + 'FPGA_GPIO_A_3': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2100, 'y': 7000, 'ori': 2, 'new_x': 3100}, + {'t': 'GLabel', 'dir': 'BiDi', 'x': 9300, 'y': 5100, 'ori': 2, 'new_x': 10000},], + 'FPGA_GPIO_A_4': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2100, 'y': 6500, 'ori': 2, 'new_x': 3100}, + {'t': 'GLabel', 'dir': 'BiDi', 'x': 7600, 'y': 5300, 'ori': 0},], + 'FPGA_GPIO_A_5': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2100, 'y': 6600, 'ori': 2, 'new_x': 3100}, + {'t': 'GLabel', 'dir': 'BiDi', 'x': 9300, 'y': 5300, 'ori': 2, 'new_x': 10000},], + 'FPGA_GPIO_A_6': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2110, 'y': 6700, 'ori': 2, 'new_x': 3100}, + {'t': 'GLabel', 'dir': 'BiDi', 'x': 7600, 'y': 5400, 'ori': 0},], + 'FPGA_GPIO_A_7': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2100, 'y': 6300, 'ori': 2, 'new_x': 3100}, + {'t': 'GLabel', 'dir': 'BiDi', 'x': 9300, 'y': 5400, 'ori': 2, 'new_x': 10000},], + 'FPGA_GPIO_B_0': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2110, 'y': 6800, 'ori': 2, 'new_x': 3100}, + {'t': 'GLabel', 'dir': 'BiDi', 'x': 7600, 'y': 6900, 'ori': 0},], + 'FPGA_GPIO_B_1': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2100, 'y': 5600, 'ori': 2, 'new_x': 3100}, + {'t': 'GLabel', 'dir': 'BiDi', 'x': 9300, 'y': 6900, 'ori': 2, 'new_x': 10000},], + 'FPGA_GPIO_B_2': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2100, 'y': 6400, 'ori': 2, 'new_x': 3100}, + {'t': 'GLabel', 'dir': 'BiDi', 'x': 7600, 'y': 7000, 'ori': 0},], + 'FPGA_GPIO_B_3': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2110, 'y': 6100, 'ori': 2, 'new_x': 3100}, + {'t': 'GLabel', 'dir': 'BiDi', 'x': 9300, 'y': 7000, 'ori': 2, 'new_x': 10000},], + 'FPGA_GPIO_B_4': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2100, 'y': 7500, 'ori': 2, 'new_x': 3100}, + {'t': 'GLabel', 'dir': 'BiDi', 'x': 7600, 'y': 7200, 'ori': 0},], + 'FPGA_GPIO_B_5': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2100, 'y': 9200, 'ori': 2, 'new_x': 3100}, + {'t': 'GLabel', 'dir': 'BiDi', 'x': 9300, 'y': 7200, 'ori': 2, 'new_x': 10000},], + 'FPGA_GPIO_B_6': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2100, 'y': 8800, 'ori': 2, 'new_x': 3100}, + {'t': 'GLabel', 'dir': 'BiDi', 'x': 7600, 'y': 7300, 'ori': 0},], + 'FPGA_GPIO_B_7': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2100, 'y': 8900, 'ori': 2, 'new_x': 3100}, + {'t': 'GLabel', 'dir': 'BiDi', 'x': 9300, 'y': 7300, 'ori': 2, 'new_x': 10000},], + 'FPGA_GPIO_LED_0': [{'t': 'GLabel', 'dir': 'Input', 'x': 7300, 'y': 8900, 'ori': 0},], + 'FPGA_GPIO_LED_1': [{'t': 'GLabel', 'dir': 'Input', 'x': 7300, 'y': 8800, 'ori': 0},], + 'FPGA_GPIO_LED_2': [{'t': 'GLabel', 'dir': 'Input', 'x': 7300, 'y': 8700, 'ori': 0},], + 'FPGA_GPIO_LED_3': [{'t': 'GLabel', 'dir': 'Input', 'x': 7300, 'y': 8600, 'ori': 0},], + 'FPGA_IRQ_N_0': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2100, 'y': 5200, 'ori': 2, 'new_x': 3100},], + 'FPGA_IRQ_N_1': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2100, 'y': 5300, 'ori': 2, 'new_x': 3100},], + 'FPGA_IRQ_N_2': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2100, 'y': 5400, 'ori': 2, 'new_x': 3100},], + 'FPGA_IRQ_N_3': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2100, 'y': 5500, 'ori': 2, 'new_x': 3100},], + }, + 'rev02_20.sch': { + 'DIGITIZED_NOISE': [{'t': 'GLabel', 'dir': 'Input', 'x': 2460, 'y': 7400, 'ori': 2, 'new_x': 3600},], + 'FMC_A19': [{'t': 'GLabel', 'dir': 'Output', 'x': 2460, 'y': 7000, 'ori': 2, 'new_x': 3600},], + 'FMC_A20': [{'t': 'GLabel', 'dir': 'Output', 'x': 2460, 'y': 7100, 'ori': 2, 'new_x': 3600},], + 'FMC_A21': [{'t': 'GLabel', 'dir': 'Output', 'x': 2460, 'y': 8100, 'ori': 2, 'new_x': 3610},], + 'FMC_A22': [{'t': 'GLabel', 'dir': 'Output', 'x': 2460, 'y': 6800, 'ori': 2, 'new_x': 3600},], + 'FMC_A23': [{'t': 'GLabel', 'dir': 'Output', 'x': 2460, 'y': 6900, 'ori': 2, 'new_x': 3600},], + 'FMC_A24': [{'t': 'GLabel', 'dir': 'Output', 'x': 2460, 'y': 8500, 'ori': 2, 'new_x': 3600},], + 'FMC_A25': [{'t': 'GLabel', 'dir': 'Output', 'x': 2460, 'y': 8000, 'ori': 2, 'new_x': 3600},], + 'FMC_D10': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2460, 'y': 7500, 'ori': 2, 'new_x': 3600},], + 'FMC_D11': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2450, 'y': 10000, 'ori': 2, 'new_x': 3600},], + 'FMC_D12': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2460, 'y': 7200, 'ori': 2, 'new_x': 3600},], + 'FMC_D28': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2460, 'y': 7300, 'ori': 2, 'new_x': 3600},], + 'FMC_D29': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2460, 'y': 7800, 'ori': 2, 'new_x': 3600},], + 'FMC_D30': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2460, 'y': 5500, 'ori': 2, 'new_x': 3100},], + 'FMC_D31': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2460, 'y': 5400, 'ori': 2, 'new_x': 3100},], + 'FMC_D8': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2460, 'y': 7600, 'ori': 2, 'new_x': 3600},], + 'FMC_D9': [{'t': 'GLabel', 'dir': 'BiDi', 'x': 2460, 'y': 6700, 'ori': 2, 'new_x': 3600},], + 'FMC_NL': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2460, 'y': 8300, 'ori': 2, 'new_x': 3600},], + 'FPGA_CFG_CS_N': [{'t': 'GLabel', 'dir': 'Output', 'x': 3600, 'y': 6200, 'ori': 2},], + 'FPGA_CFG_CS_N1': [{'t': 'Label', 'x': 2460, 'y': 6200, 'ori': 2},], + 'FPGA_CFG_MISO': [{'t': 'GLabel', 'dir': 'Input', 'x': 3600, 'y': 5300, 'ori': 2},], + 'FPGA_CFG_MISO1': [{'t': 'Label', 'x': 2460, 'y': 5300, 'ori': 2},], + 'FPGA_CFG_MOSI': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 3600, 'y': 5200, 'ori': 2},], + 'FPGA_CFG_MOSI1': [{'t': 'Label', 'x': 2460, 'y': 5200, 'ori': 2},], + 'FPGA_GPIO_LED_2': [{'t': 'GLabel', 'dir': 'Output', 'x': 2470, 'y': 6500, 'ori': 2, 'new_x': 3600},], + 'FPGA_GPIO_LED_3': [{'t': 'GLabel', 'dir': 'Output', 'x': 2470, 'y': 6600, 'ori': 2, 'new_x': 3600},], + }, + 'rev02_24.sch': { + 'FPGA_VCCINT_1V0': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 8300, 'y': 6400, 'ori': 0},], + 'POK_VCCINT': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5350, 'y': 9100, 'ori': 0},], + 'PWR_ENA_VCCINT': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2700, 'y': 5900, 'ori': 0},], + }, + 'rev02_25.sch': { + 'POK_VCCAUX': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 1540, 'y': 8700, 'ori': 0},], + 'POK_VCCINT': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 5100, 'y': 5300, 'ori': 0},], + 'POK_VCCO': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 6110, 'y': 8700, 'ori': 0},], + 'PWR_ENA_VCCAUX': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 7250, 'y': 5300, 'ori': 0},], + 'PWR_ENA_VCCINT': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 2660, 'y': 5300, 'ori': 0},], + 'PWR_ENA_VCCO': [{'t': 'GLabel', 'dir': 'UnSpc', 'x': 3690, 'y': 8700, 'ori': 0},], + }, } -def update_text_line(prev, entrys): +def update_text_line(text, prev, entrys): m = re.match('^Text Label (\d+) +(\d+) +(\d+) +(\d+) +~', prev) x, y, orient, dim = m.groups() x = int(x) @@ -268,14 +635,14 @@ def update_text_line(prev, entrys): dim = int(dim) for this in entrys: - if this['x'] != x and this['y'] != y: - #sys.stderr.write("Wrong X {} or Y {}: {!r}\n".format(this['x'], this['y'], this)) + if this['x'] != x or this['y'] != y: + sys.stderr.write("Label: {} Wrong X {!r} or Y {!r}: {!r}\n".format(text, x, y, this)) continue new = copy(this) if 'dim' not in new: new['dim'] = 48 - if 'x_pos' in new: - new['x'] = new['x'] + new['x_pos'] + if 'new_x' in new: + new['x'] = new.pop('new_x') if this['t'] == 'GLabel': return 'Text GLabel {x:} {y:} {ori:} {dim:} {shape:} ~ 0'.format( x = new['x'], @@ -297,24 +664,26 @@ def fix_labels(fn_in, fn_out, file_labels): in_ = open(fn_in) out = open(fn_out, 'w') prev = None - print('Changing net labels to GLabel in {}'.format(fn_in)) + print('Fixing labels in {}'.format(fn_in)) for line in in_.readlines(): #print('R: {!r}'.format(line)) if prev is not None: while prev.endswith('\n'): prev = prev[:-1] text = line[:-1] - if re.match('^[A-Z_]+', text): - #m = re.match('^Text Label (.+) ~', prev) - #prev = 'Text GLabel {} UnSpc ~ 0'.format(m.groups()[0]) + #print('CHECK: {!r} + {!r}'.format(prev, text)) + if re.match('^[A-Z0-9_]+', text): if text in file_labels: - new = update_text_line(prev, file_labels[text]) + new = update_text_line(text, prev, file_labels[text]) if new != prev: print("Label: {!r} OLD {!r}, NEW : {!r}".format(text, prev, new)) - prev = new + out.write(new + '\n') else: print("Label: {!r} UNCHANGED : {}".format(text, prev)) - out.write(prev + '\n') + out.write(prev + '\n') + else: + print("Unknown label: {!r} (not in {})".format(text, file_labels.keys())) + out.write(prev + '\n') prev = None elif line.startswith('Text Label '): prev = line @@ -322,14 +691,13 @@ def fix_labels(fn_in, fn_out, file_labels): out.write(line) return True -def main(schemas): +def main(schemas, labels): for this in schemas: fn = os.path.basename(this) - file_labels = [] - global labels - if fn in labels: - file_labels = labels[fn] - if fix_labels(this, this + '.tmp', file_labels): + if fn not in labels: + print('Skipping file {}'.format(fn)) + continue + if fix_labels(this, this + '.tmp', labels[fn]): os.rename(this + '.tmp', this) return True @@ -341,7 +709,7 @@ if __name__ == '__main__': sys.stderr.write('Syntax: fix-labels.py *.sch\n') sys.exit(1) schemas = [x for x in sys.argv if x.endswith('.sch')] - res = main(schemas) + res = main(schemas, labels) if res: sys.exit(0) sys.exit(1) -- cgit v1.2.3