Debian Codegraph @

examples/tangnano4k.cst

raw
1 // these are the HDMI pins!
2 IO_LOC "led[0]" 27;
3 IO_PORT "led[0]" IO_TYPE=LVCMOS25;
4 IO_LOC "led[1]" 28;
5 IO_PORT "led[1]" IO_TYPE=LVCMOS25;
6 IO_LOC "led[2]" 29;
7 IO_PORT "led[2]" IO_TYPE=LVCMOS25;
8 IO_LOC "led[3]" 30;
9 IO_PORT "led[3]" IO_TYPE=LVCMOS25;
10 IO_LOC "led[4]" 31;
11 IO_PORT "led[4]" IO_TYPE=LVCMOS25;
12 IO_LOC "led[5]" 32;
13 IO_PORT "led[5]" IO_TYPE=LVCMOS25;
14 IO_LOC "key_i" 15;
15 IO_PORT "key_i" PULL_MODE=UP IO_TYPE=LVCMOS18;
16 IO_LOC "rst_i" 14;
17 IO_PORT "rst_i" PULL_MODE=UP IO_TYPE=LVCMOS18;
18
19 IO_LOC "mode_led" 10;
20 IO_PORT "mode_led" PULL_MODE=NONE DRIVE=8 IO_TYPE=LVCMOS33;
21
22 IO_LOC "clk" 45;
23 IO_PORT "clk" IO_TYPE=LVCMOS33 PULL_MODE=UP;
24 CLOCK_LOC "clk" BUFG;
25
26 IO_LOC "clk_i" 45;
27 IO_PORT "clk_i" IO_TYPE=LVCMOS33 PULL_MODE=UP;
28 CLOCK_LOC "clk_i" BUFG;
29
30
31 // UART
32 IO_LOC "TXD" 44;
33 IO_PORT "TXD" PULL_MODE=UP IO_TYPE=LVCMOS33;
34 IO_LOC "RXD" 46;
35 IO_PORT "RXD" PULL_MODE=UP IO_TYPE=LVCMOS33;
36
37 // I3C
38 IO_LOC "i3c" 35;
39 IO_PORT "i3c" IO_TYPE=LVCMOS25;
40
41 // gpio
42 IO_LOC "gpio[0]" 47;
43 IO_PORT "gpio[0]" IO_TYPE=LVCMOS33;
44 IO_LOC "gpio[1]" 48;
45 IO_PORT "gpio[1]" IO_TYPE=LVCMOS33;
46
47 // SPI
48 IO_LOC "spi_OUT" 42;
49 IO_PORT "spi_OUT" IO_TYPE=LVCMOS33 PULL_MODE=UP;
50 IO_LOC "spi_SCL" 43;
51 IO_PORT "spi_SCL" IO_TYPE=LVCMOS33 PULL_MODE=UP;
52
53 // oser
54 IO_LOC "oser_out" 35;
55 IO_PORT "oser_out" IO_TYPE=LVCMOS25 PULL_MODE=UP;
56 IO_LOC "io16" 35;
57 IO_PORT "io16" IO_TYPE=LVCMOS25;
58 IO_LOC "pclk_o" 29;
59 IO_PORT "pclk_o" IO_TYPE=LVCMOS25;
60 IO_LOC "fclk_o" 30;
61 IO_PORT "fclk_o" IO_TYPE=LVCMOS25;
62
63 IO_LOC "LED_R" 34;
64 IO_PORT "LED_R" IO_TYPE=LVCMOS25;
65 IO_LOC "LED_G" 35;
66 IO_PORT "LED_G" IO_TYPE=LVCMOS25;
67 IO_LOC "LED_B" 29;
68 IO_PORT "LED_B" IO_TYPE=LVCMOS25;
69
70 IO_LOC "LCD_CLK" 47;
71 IO_PORT "LCD_CLK" IO_TYPE=LVCMOS33;
72 IO_LOC "LCD_SYNC" 48;
73 IO_PORT "LCD_SYNC" IO_TYPE=LVCMOS33;
74
75 // ides
76 IO_LOC "data_i" 43;
77 IO_PORT "data_i" IO_TYPE=LVCMOS33 PULL_MODE=UP;
78 IO_LOC "iem_i" 47;
79 IO_PORT "iem_i" IO_TYPE=LVCMOS33 PULL_MODE=UP;
80 IO_LOC "fclk_i" 46;
81 IO_PORT "fclk_i" IO_TYPE=LVCMOS33 PULL_MODE=UP;
82 IO_LOC "q_o[0]" 21;
83 IO_PORT "q_o[0]" IO_TYPE=LVCMOS18 PULL_MODE=UP;
84 IO_LOC "q_o[1]" 27;
85 IO_PORT "q_o[1]" IO_TYPE=LVCMOS25 PULL_MODE=UP;
86 IO_LOC "q_o[2]" 41;
87 IO_PORT "q_o[2]" IO_TYPE=LVCMOS33 PULL_MODE=UP;
88 IO_LOC "q_o[3]" 31;
89 IO_PORT "q_o[3]" IO_TYPE=LVCMOS25 PULL_MODE=UP;
90 IO_LOC "q_o[4]" 40;
91 IO_PORT "q_o[4]" IO_TYPE=LVCMOS33 PULL_MODE=UP;
92 IO_LOC "q_o[5]" 39;
93 IO_PORT "q_o[5]" IO_TYPE=LVCMOS33 PULL_MODE=UP;
94 IO_LOC "q_o[6]" 28;
95 IO_PORT "q_o[6]" IO_TYPE=LVCMOS25 PULL_MODE=UP;
96 IO_LOC "q_o[7]" 30;
97 IO_PORT "q_o[7]" IO_TYPE=LVCMOS25 PULL_MODE=UP;
98
99 // true LVDS pins
100 IO_LOC "tlvds_p" 28;
101 IO_PORT "tlvds_p" IO_TYPE=LVDS25 PULL_MODE=NONE DRIVE=8 IO_TYPE=LVDS25;
102 IO_LOC "tlvds_n" 27;
103 IO_PORT "tlvds_n" IO_TYPE=LVDS25 PULL_MODE=NONE DRIVE=8 IO_TYPE=LVDS25;
104
105 IO_LOC "mipi_out[0]" 35;
106 IO_PORT "mipi_out[0]" IO_TYPE=LVCMOS25;
107 IO_LOC "mipi_out[1]" 34;
108 IO_PORT "mipi_out[1]" IO_TYPE=LVCMOS25;
109
110 IO_LOC "mipi_in[0]" 43;
111 IO_PORT "mipi_in[0]" IO_TYPE=MIPI;
112 IO_LOC "mipi_in[1]" 44;
113 IO_PORT "mipi_in[1]" IO_TYPE=MIPI;
114
115 IO_LOC "elvds_p" 43;
116 IO_PORT "elvds_p" IO_TYPE=LVDS25E PULL_MODE=NONE DRIVE=8 IO_TYPE=LVDS25E;
117 IO_LOC "elvds_n" 44;
118 IO_PORT "elvds_n" IO_TYPE=LVDS25E PULL_MODE=NONE DRIVE=8 IO_TYPE=LVDS25E;
119
120
121 //DVI
122 IO_LOC "tmds_d_p[0]" 30;
123 IO_PORT "tmds_d_p[0]" IO_TYPE=LVDS25E PULL_MODE=NONE DRIVE=8 IO_TYPE=LVDS25;
124 IO_LOC "tmds_d_n[0]" 29;
125 IO_PORT "tmds_d_n[0]" IO_TYPE=LVDS25E PULL_MODE=NONE DRIVE=8 IO_TYPE=LVDS25;
126 IO_LOC "tmds_d_p[1]" 32;
127 IO_PORT "tmds_d_p[1]" IO_TYPE=LVDS25E PULL_MODE=NONE DRIVE=8 IO_TYPE=LVDS25;
128 IO_LOC "tmds_d_n[1]" 31;
129 IO_PORT "tmds_d_n[1]" IO_TYPE=LVDS25E PULL_MODE=NONE DRIVE=8 IO_TYPE=LVDS25;
130 IO_LOC "tmds_d_p[2]" 35;
131 IO_PORT "tmds_d_p[2]" IO_TYPE=LVDS25E PULL_MODE=NONE DRIVE=8 IO_TYPE=LVDS25;
132 IO_LOC "tmds_d_n[2]" 34;
133 IO_PORT "tmds_d_n[2]" IO_TYPE=LVDS25E PULL_MODE=NONE DRIVE=8 IO_TYPE=LVDS25;
134 IO_LOC "tmds_clk_p" 28;
135 IO_PORT "tmds_clk_p" IO_TYPE=LVDS25E PULL_MODE=NONE DRIVE=8 IO_TYPE=LVDS25;
136 IO_LOC "tmds_clk_n" 27;
137 IO_PORT "tmds_clk_n" IO_TYPE=LVDS25E PULL_MODE=NONE DRIVE=8 IO_TYPE=LVDS25;
138
139 IO_LOC "div_led" 10;
140 IO_PORT "div_led" PULL_MODE=NONE DRIVE=8 IO_TYPE=LVCMOS33;
141