Skip to content

Commit f99c4cc

Browse files
committed
Use string shorthand for gpio instead of dict.
1 parent 66f1dfc commit f99c4cc

File tree

1 file changed

+8
-48
lines changed

1 file changed

+8
-48
lines changed

nmigen_boards/cmod_a7.py

Lines changed: 8 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -56,54 +56,14 @@ class _CmodA7Platform(Xilinx7SeriesPlatform):
5656
connectors = [
5757
Connector("pmod", 0, "G17 G19 N18 L18 - - H17 H19 J19 K18 - -"), # JA
5858

59-
Connector("gpio", 0, {
60-
"1": "M3",
61-
"2": "L3",
62-
"3": "A16",
63-
"4": "K3",
64-
"5": "C15",
65-
"6": "H1",
66-
"7": "A15",
67-
"8": "B15",
68-
"9": "A14",
69-
"10": "J3",
70-
"11": "J1",
71-
"12": "K2",
72-
"13": "L1",
73-
"14": "L2",
74-
# IO 15/16 are analog (XADC)
75-
"17": "M1",
76-
"18": "M3",
77-
"19": "P3",
78-
"20": "M2",
79-
"21": "N1",
80-
"22": "N2",
81-
"23": "P1",
82-
# IO 24/25 are VCC and GND
83-
"26": "R3",
84-
"27": "T3",
85-
"28": "R2",
86-
"29": "T1",
87-
"30": "T2",
88-
"31": "U1",
89-
"32": "W2",
90-
"33": "V2",
91-
"34": "W3",
92-
"35": "V3",
93-
"36": "W5",
94-
"37": "V4",
95-
"38": "U4",
96-
"39": "V5",
97-
"40": "W4",
98-
"41": "U5",
99-
"42": "U2",
100-
"43": "W6",
101-
"44": "U3",
102-
"45": "U7",
103-
"46": "W7",
104-
"47": "U8",
105-
"48": "V8"
106-
}),
59+
# Pin 24/25 are VCC and GND
60+
# Pin 15/16 are analog (XADC)
61+
Connector("gpio", 0,
62+
" M3 L3 A16 K3 C15 H1 A15 B15 A14 J3 J1 K2
63+
L1 L2 - - M1 M3 P3 M2 N1 N2 P1 -
64+
- R3 T3 R2 T1 T2 U1 W2 V2 W3 V3 W5
65+
V4 U4 V5 W4 U5 U2 W6 U3 U7 W7 U8 V8"),
66+
10767
Connector("xadc", 0, {
10868
"vaux4_n": "G2",
10969
"vaux4_p": "G3",

0 commit comments

Comments
 (0)