<commit_before>from litex.build.generic_platform import *
from litex.build.xilinx import XilinxPlatform


_io = [
    ("clk100", 0, Pins("V10"), IOStandard("LVCMOS33")),
    ("clk12", 0, Pins("D9"), IOStandard("LVCMOS33")),

    ("serial", 0,
        Subsignal("tx", Pins("B8"), IOStandard("LVCMOS33"),
                  Misc("SLEW=FAST")),
        Subsignal("rx", Pins("A8"), IOStandard("LVCMOS33"),
                  Misc("SLEW=FAST"))),

    ("spiflash", 0,
        Subsignal("cs_n", Pins("V3")),
        Subsignal("clk", Pins("R15")),
        Subsignal("mosi", Pins("T13")),
        Subsignal("miso", Pins("R13"), Misc("PULLUP")),
        IOStandard("LVCMOS33"), Misc("SLEW=FAST")),

    ("ddram_clock", 0,
        Subsignal("p", Pins("G3")),
        Subsignal("n", Pins("G1")),
        IOStandard("MOBILE_DDR")),

    ("ddram", 0,
        Subsignal("a", Pins("J7 J6 H5 L7 F3 H4 H3 H6 D2 D1 F4 D3 G6")),
        Subsignal("ba", Pins("F2 F1")),
        Subsignal("cke", Pins("H7")),
        Subsignal("ras_n", Pins("L5")),
        Subsignal("cas_n", Pins("K5")),
        Subsignal("we_n", Pins("E3")),
        Subsignal(
            "dq", Pins("L2 L1 K2 K1 H2 H1 J3 J1 M3 M1 N2 N1 T2 T1 U2 U1")
        ),
        Subsignal("dqs", Pins("L4 P2")),
        Subsignal("dm", Pins("K3 K4")),
        IOStandard("MOBILE_DDR")),

    ("dipswitch", 0, Pins("C17"), IOStandard("LVCMOS33"), Misc("PULLUP")),
    ("dipswitch", 1, Pins("C18"), IOStandard("LVCMOS33"), Misc("PULLUP")),
    ("dipswitch", 2, Pins("D17"), IOStandard("LVCMOS33"), Misc("PULLUP")),
    ("dipswitch", 3, Pins("D18"), IOStandard("LVCMOS33"), Misc("PULLUP")),
    ("dipswitch", 4, Pins("E18"), IOStandard("LVCMOS33"), Misc("PULLUP")),
    ("dipswitch", 5, Pins("E16"), IOStandard("LVCMOS33"), Misc("PULLUP")),
    ("dipswitch", 6, Pins("F18"), IOStandard("LVCMOS33"), Misc("PULLUP")),
    ("dipswitch", 7, Pins("F17"), IOStandard("LVCMOS33"), Misc("PULLUP")),

    # sw1 (user_sw:0) through sw6 (user_sw:5)
    ("user_sw", 0, Pins("M18"), IOStandard("LVCMOS33"), Misc("PULLUP")),
    ("user_sw", 1, Pins("L18"), IOStandard("LVCMOS33"), Misc("PULLUP")),
    ("user_sw", 2, Pins("M16"), IOStandard("LVCMOS33"), Misc("PULLUP")),
    ("user_sw", 3, Pins("L17"), IOStandard("LVCMOS33"), Misc("PULLUP")),
    ("user_sw", 4, Pins("K17"), IOStandard("LVCMOS33"), Misc("PULLUP")),
    ("user_sw", 5, Pins("K18"), IOStandard("LVCMOS33"), Misc("PULLUP")),

    ("user_led", 0, Pins("T18"), IOStandard("LVCMOS33"), Drive(8)),
    ("user_led", 1, Pins("T17"), IOStandard("LVCMOS33"), Drive(8)),
    ("user_led", 2, Pins("U18"), IOStandard("LVCMOS33"), Drive(8)),
    ("user_led", 3, Pins("U17"), IOStandard("LVCMOS33"), Drive(8)),
    ("user_led", 4, Pins("N16"), IOStandard("LVCMOS33"), Drive(8)),
    ("user_led", 5, Pins("N15"), IOStandard("LVCMOS33"), Drive(8)),
    ("user_led", 6, Pins("P16"), IOStandard("LVCMOS33"), Drive(8)),
    ("user_led", 7, Pins("P15"), IOStandard("LVCMOS33"), Drive(8)),<commit_msg>Reorder the LEDs on MimasV2 to match silkscreen labels.<commit_after>from litex.build.generic_platform import *
from litex.build.xilinx import XilinxPlatform


_io = [
    ("clk100", 0, Pins("V10"), IOStandard("LVCMOS33")),
    ("clk12", 0, Pins("D9"), IOStandard("LVCMOS33")),

    ("serial", 0,
        Subsignal("tx", Pins("B8"), IOStandard("LVCMOS33"),
                  Misc("SLEW=FAST")),
        Subsignal("rx", Pins("A8"), IOStandard("LVCMOS33"),
                  Misc("SLEW=FAST"))),

    ("spiflash", 0,
        Subsignal("cs_n", Pins("V3")),
        Subsignal("clk", Pins("R15")),
        Subsignal("mosi", Pins("T13")),
        Subsignal("miso", Pins("R13"), Misc("PULLUP")),
        IOStandard("LVCMOS33"), Misc("SLEW=FAST")),

    ("ddram_clock", 0,
        Subsignal("p", Pins("G3")),
        Subsignal("n", Pins("G1")),
        IOStandard("MOBILE_DDR")),

    ("ddram", 0,
        Subsignal("a", Pins("J7 J6 H5 L7 F3 H4 H3 H6 D2 D1 F4 D3 G6")),
        Subsignal("ba", Pins("F2 F1")),
        Subsignal("cke", Pins("H7")),
        Subsignal("ras_n", Pins("L5")),
        Subsignal("cas_n", Pins("K5")),
        Subsignal("we_n", Pins("E3")),
        Subsignal(
            "dq", Pins("L2 L1 K2 K1 H2 H1 J3 J1 M3 M1 N2 N1 T2 T1 U2 U1")
        ),
        Subsignal("dqs", Pins("L4 P2")),
        Subsignal("dm", Pins("K3 K4")),
        IOStandard("MOBILE_DDR")),

    ("dipswitch", 0, Pins("C17"), IOStandard("LVCMOS33"), Misc("PULLUP")),
    ("dipswitch", 1, Pins("C18"), IOStandard("LVCMOS33"), Misc("PULLUP")),
    ("dipswitch", 2, Pins("D17"), IOStandard("LVCMOS33"), Misc("PULLUP")),
    ("dipswitch", 3, Pins("D18"), IOStandard("LVCMOS33"), Misc("PULLUP")),
    ("dipswitch", 4, Pins("E18"), IOStandard("LVCMOS33"), Misc("PULLUP")),
    ("dipswitch", 5, Pins("E16"), IOStandard("LVCMOS33"), Misc("PULLUP")),
    ("dipswitch", 6, Pins("F18"), IOStandard("LVCMOS33"), Misc("PULLUP")),
    ("dipswitch", 7, Pins("F17"), IOStandard("LVCMOS33"), Misc("PULLUP")),

    # sw1 (user_sw:0) through sw6 (user_sw:5)
    ("user_sw", 0, Pins("M18"), IOStandard("LVCMOS33"), Misc("PULLUP")),
    ("user_sw", 1, Pins("L18"), IOStandard("LVCMOS33"), Misc("PULLUP")),
    ("user_sw", 2, Pins("M16"), IOStandard("LVCMOS33"), Misc("PULLUP")),
    ("user_sw", 3, Pins("L17"), IOStandard("LVCMOS33"), Misc("PULLUP")),
    ("user_sw", 4, Pins("K17"), IOStandard("LVCMOS33"), Misc("PULLUP")),
    ("user_sw", 5, Pins("K18"), IOStandard("LVCMOS33"), Misc("PULLUP")),

    # LEDs 1 through 8
    ("user_led", 0, Pins("P15"), IOStandard("LVCMOS33"), Drive(8)),
    ("user_led", 1, Pins("P16"), IOStandard("LVCMOS33"), Drive(8)),
    ("user_led", 2, Pins("N15"), IOStandard("LVCMOS33"), Drive(8)),
    ("user_led", 3, Pins("N16"), IOStandard("LVCMOS33"), Drive(8)),
    ("user_led", 4, Pins("U17"), IOStandard("LVCMOS33"), Drive(8)),
    ("user_led", 5, Pins("U18"), IOStandard("LVCMOS33"), Drive(8)),
    ("user_led", 6, Pins("T17"), IOStandard("LVCMOS33"), Drive(8)),
    ("user_led", 7, Pins("T18"), IOStandard("LVCMOS33"), Drive(8)),
{'fraction_non_alphanumeric': 0.24604100683447241, 'fraction_numerical': 0.0658443073845641, 'mean_word_length': 4.2493438320209975, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2601146', 'n_tokens_mistral': 2676, 'n_tokens_neox': 2409, 'n_words': 437}