Skip to content

Commit 7f93cb4

Browse files
authored
Merge pull request #329 from yrabbit/board-defaults
Defining IO parameters in the examples
2 parents 6a73072 + 675963d commit 7f93cb4

File tree

8 files changed

+758
-474
lines changed

8 files changed

+758
-474
lines changed

examples/primer20k.cst

Lines changed: 117 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,92 +1,143 @@
1-
IO_LOC "clk" IOT27A;
2-
IO_LOC "key_i" T3;
3-
IO_LOC "rst_i" T10;
1+
IO_LOC "clk" H11;
2+
IO_PORT "clk" IO_TYPE=LVCMOS33;
3+
IO_LOC "key_i" T3;
4+
IO_LOC "rst_i" T10;
5+
IO_PORT "rst_i" IO_TYPE=LVCMOS33;
46

5-
IO_LOC "clk_i" IOT27A;
7+
IO_LOC "clk_i" IOT27A;
68

7-
IO_LOC "led[0]" C13;
8-
IO_LOC "led[1]" A13;
9-
IO_LOC "led[2]" N16;
10-
IO_LOC "led[3]" N14;
11-
IO_LOC "led[4]" L14;
12-
IO_LOC "led[5]" L16;
9+
IO_LOC "led[0]" C13;
10+
IO_PORT "led[0]" IO_TYPE=LVCMOS33;
11+
IO_LOC "led[1]" A13;
12+
IO_PORT "led[1]" IO_TYPE=LVCMOS33;
13+
IO_LOC "led[2]" N16;
14+
IO_PORT "led[2]" IO_TYPE=LVCMOS33;
15+
IO_LOC "led[3]" N14;
16+
IO_PORT "led[3]" IO_TYPE=LVCMOS33;
17+
IO_LOC "led[4]" L14;
18+
IO_PORT "led[4]" IO_TYPE=LVCMOS33;
19+
IO_LOC "led[5]" L16;
20+
IO_PORT "led[5]" IO_TYPE=LVCMOS33;
1321

14-
IO_LOC "TXD" A15;
15-
IO_PORT "TXD" PULL_MODE=UP;
16-
IO_LOC "RXD" D14;
17-
IO_PORT "RXD" PULL_MODE=UP;
22+
IO_LOC "TXD" A15;
23+
IO_PORT "TXD" IO_TYPE=LVCMOS33 PULL_MODE=UP;
24+
IO_LOC "RXD" D14;
25+
IO_PORT "RXD" IO_TYPE=LVCMOS33 PULL_MODE=UP;
1826

1927
// fake
20-
IO_LOC "led[6]" A15;
21-
IO_LOC "led[7]" D14;
28+
IO_LOC "led[6]" A15;
29+
IO_PORT "led[6]" IO_TYPE=LVCMOS33 PULL_MODE=NONE;
30+
IO_LOC "led[7]" D14;
31+
IO_PORT "led[7]" IO_TYPE=LVCMOS33 PULL_MODE=NONE;
2232

23-
IO_LOC "tlvds_p" P6;
24-
IO_LOC "tlvds_n" T6;
33+
IO_LOC "tlvds_p" P6;
34+
IO_PORT "tlvds_p" IO_TYPE=LVDS25 PULL_MODE=NONE;
35+
IO_LOC "tlvds_n" T6;
36+
IO_PORT "tlvds_n" IO_TYPE=LVDS25 PULL_MODE=NONE;
2537

26-
IO_LOC "elvds_p" C12;
27-
IO_LOC "elvds_n" B12;
38+
IO_LOC "elvds_p" C12;
39+
IO_PORT "elvds_p" IO_TYPE=LVDS25 PULL_MODE=NONE;
40+
IO_LOC "elvds_n" B12;
41+
IO_PORT "elvds_n" IO_TYPE=LVDS25 PULL_MODE=NONE;
2842

29-
IO_LOC "LED_R" C13;
30-
IO_LOC "LED_G" A13;
31-
IO_LOC "LED_B" N16;
43+
IO_LOC "LED_R" C13;
44+
IO_PORT "LED_R" IO_TYPE=LVCMOS33;
45+
IO_LOC "LED_G" A13;
46+
IO_PORT "LED_G" IO_TYPE=LVCMOS33;
47+
IO_LOC "LED_B" N16;
48+
IO_PORT "LED_B" IO_TYPE=LVCMOS33;
3249

3350
// oser
34-
IO_LOC "oser_out" C13;
35-
IO_LOC "fclk_o" N16;
36-
IO_LOC "pclk_o" N14;
51+
IO_LOC "oser_out" C13;
52+
IO_PORT "oser_out" IO_TYPE=LVCMOS33;
53+
IO_LOC "fclk_o" N16;
54+
IO_PORT "fclk_o" IO_TYPE=LVCMOS33;
55+
IO_LOC "pclk_o" N14;
56+
IO_PORT "pclk_o" IO_TYPE=LVCMOS33;
3757

3858
// ides
39-
IO_LOC "fclk_i" B13;
40-
IO_LOC "data_i" C12;
41-
IO_LOC "q_o[0]" P9;
42-
IO_LOC "q_o[1]" E15;
43-
IO_LOC "q_o[2]" T7;
44-
IO_LOC "q_o[3]" R8;
45-
IO_LOC "q_o[4]" T6;
46-
IO_LOC "q_o[5]" P6;
47-
IO_LOC "q_o[6]" T8;
48-
IO_LOC "q_o[7]" P8;
59+
IO_LOC "fclk_i" B13;
60+
IO_PORT "fclk_i" IO_TYPE=LVCMOS33;
61+
IO_LOC "data_i" C12;
62+
IO_PORT "data_i" IO_TYPE=LVCMOS33;
63+
IO_LOC "q_o[0]" P9;
64+
IO_PORT "q_o[0]" IO_TYPE=LVCMOS33;
65+
IO_LOC "q_o[1]" E15;
66+
IO_PORT "q_o[1]" IO_TYPE=LVCMOS33;
67+
IO_LOC "q_o[2]" T7;
68+
IO_PORT "q_o[2]" IO_TYPE=LVCMOS33;
69+
IO_LOC "q_o[3]" R8;
70+
IO_PORT "q_o[3]" IO_TYPE=LVCMOS33;
71+
IO_LOC "q_o[4]" T6;
72+
IO_PORT "q_o[4]" IO_TYPE=LVCMOS33;
73+
IO_LOC "q_o[5]" P6;
74+
IO_PORT "q_o[5]" IO_TYPE=LVCMOS33;
75+
IO_LOC "q_o[6]" T8;
76+
IO_PORT "q_o[6]" IO_TYPE=LVCMOS33;
77+
IO_LOC "q_o[7]" P8;
78+
IO_PORT "q_o[7]" IO_TYPE=LVCMOS33;
4979

50-
// RGB LCD
51-
IO_LOC "LCD_CLK" R9;
52-
IO_LOC "LCD_HYNC" A15;
53-
IO_LOC "LCD_SYNC" D14;
54-
IO_LOC "LCD_DEN" E15;
55-
IO_LOC "LCD_R[0]" L9;
56-
IO_LOC "LCD_R[1]" N8;
57-
IO_LOC "LCD_R[2]" N9;
58-
IO_LOC "LCD_R[3]" N7;
59-
IO_LOC "LCD_R[4]" N6;
80+
// RGB LCD
81+
IO_LOC "LCD_CLK" R9;
82+
IO_PORT "LCD_CLK" IO_TYPE=LVCMOS33;
83+
IO_LOC "LCD_HYNC" A15;
84+
IO_PORT "LCD_HYNC" IO_TYPE=LVCMOS33;
85+
IO_LOC "LCD_SYNC" D14;
86+
IO_PORT "LCD_SYNC" IO_TYPE=LVCMOS33;
87+
IO_LOC "LCD_DEN" E15;
88+
IO_PORT "LCD_DEN" IO_TYPE=LVCMOS33;
89+
IO_LOC "LCD_R[0]" L9;
90+
IO_PORT "LCD_R[0]" IO_TYPE=LVCMOS33;
91+
IO_LOC "LCD_R[1]" N8;
92+
IO_PORT "LCD_R[1]" IO_TYPE=LVCMOS33;
93+
IO_LOC "LCD_R[2]" N9;
94+
IO_PORT "LCD_R[2]" IO_TYPE=LVCMOS33;
95+
IO_LOC "LCD_R[3]" N7;
96+
IO_PORT "LCD_R[3]" IO_TYPE=LVCMOS33;
97+
IO_LOC "LCD_R[4]" N6;
98+
IO_PORT "LCD_R[4]" IO_TYPE=LVCMOS33;
6099

61-
IO_LOC "LCD_G[0]" D11;
62-
IO_LOC "LCD_G[1]" A11;
63-
IO_LOC "LCD_G[2]" B11;
64-
IO_LOC "LCD_G[3]" P7;
65-
IO_LOC "LCD_G[4]" R7;
66-
IO_LOC "LCD_G[5]" D10;
100+
IO_LOC "LCD_G[0]" D11;
101+
IO_PORT "LCD_G[0]" IO_TYPE=LVCMOS33;
102+
IO_LOC "LCD_G[1]" A11;
103+
IO_PORT "LCD_G[1]" IO_TYPE=LVCMOS33;
104+
IO_LOC "LCD_G[2]" B11;
105+
IO_PORT "LCD_G[2]" IO_TYPE=LVCMOS33;
106+
IO_LOC "LCD_G[3]" P7;
107+
IO_PORT "LCD_G[3]" IO_TYPE=LVCMOS33;
108+
IO_LOC "LCD_G[4]" R7;
109+
IO_PORT "LCD_G[4]" IO_TYPE=LVCMOS33;
110+
IO_LOC "LCD_G[5]" D10;
111+
IO_PORT "LCD_G[5]" IO_TYPE=LVCMOS33;
67112

68-
IO_LOC "LCD_B[0]" B12;
69-
IO_LOC "LCD_B[1]" C12;
70-
IO_LOC "LCD_B[2]" B13;
71-
IO_LOC "LCD_B[3]" A14;
72-
IO_LOC "LCD_B[4]" B14;
113+
IO_LOC "LCD_B[0]" B12;
114+
IO_PORT "LCD_B[0]" IO_TYPE=LVCMOS33;
115+
IO_LOC "LCD_B[1]" C12;
116+
IO_PORT "LCD_B[1]" IO_TYPE=LVCMOS33;
117+
IO_LOC "LCD_B[2]" B13;
118+
IO_PORT "LCD_B[2]" IO_TYPE=LVCMOS33;
119+
IO_LOC "LCD_B[3]" A14;
120+
IO_PORT "LCD_B[3]" IO_TYPE=LVCMOS33;
121+
IO_LOC "LCD_B[4]" B14;
122+
IO_PORT "LCD_B[4]" IO_TYPE=LVCMOS33;
73123

74124
// DVI
75-
IO_LOC "tmds_clk_p" G16;
125+
IO_LOC "tmds_clk_p" G16;
76126
IO_PORT "tmds_clk_p" PULL_MODE=NONE DRIVE=3.5;
77-
IO_LOC "tmds_clk_n" H15;
127+
IO_LOC "tmds_clk_n" H15;
78128
IO_PORT "tmds_clk_n" PULL_MODE=NONE DRIVE=3.5;
79-
IO_LOC "tmds_d_p[0]" H14;
129+
IO_LOC "tmds_d_p[0]" H14;
80130
IO_PORT "tmds_d_p[0]" PULL_MODE=NONE DRIVE=3.5;
81-
IO_LOC "tmds_d_n[0]" H16;
131+
IO_LOC "tmds_d_n[0]" H16;
82132
IO_PORT "tmds_d_n[0]" PULL_MODE=NONE DRIVE=3.5;
83-
IO_LOC "tmds_d_p[1]" J15;
133+
IO_LOC "tmds_d_p[1]" J15;
84134
IO_PORT "tmds_d_p[1]" PULL_MODE=NONE DRIVE=3.5;
85-
IO_LOC "tmds_d_n[1]" K16;
135+
IO_LOC "tmds_d_n[1]" K16;
86136
IO_PORT "tmds_d_n[1]" PULL_MODE=NONE DRIVE=3.5;
87-
IO_LOC "tmds_d_p[2]" K14;
137+
IO_LOC "tmds_d_p[2]" K14;
88138
IO_PORT "tmds_d_p[2]" PULL_MODE=NONE DRIVE=3.5;
89-
IO_LOC "tmds_d_n[2]" K15;
139+
IO_LOC "tmds_d_n[2]" K15;
90140
IO_PORT "tmds_d_n[2]" PULL_MODE=NONE DRIVE=3.5;
91141

92-
IO_LOC "div_led" C13;
142+
IO_LOC "div_led" C13;
143+
IO_PORT "div_led" IO_TYPE=LVCMOS33;

examples/runber.cst

Lines changed: 92 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,97 @@
1-
IO_LOC "clk" 4;
2-
IO_LOC "clk_i" 4;
3-
IO_LOC "rst_i" 58;
4-
IO_LOC "key_i" 59;
5-
IO_LOC "led[0]" 25;
6-
IO_LOC "led[1]" 26;
7-
IO_LOC "led[2]" 23;
8-
IO_LOC "led[3]" 24;
9-
IO_LOC "led[4]" 27;
10-
IO_LOC "led[5]" 28;
11-
IO_LOC "led[6]" 29;
12-
IO_LOC "led[7]" 30;
13-
14-
IO_LOC "TXD" 39;
15-
IO_PORT "TXD" PULL_MODE=UP;
16-
IO_LOC "RXD" 40;
17-
IO_PORT "RXD" PULL_MODE=UP;
18-
19-
IO_LOC "tlvds_p" 27;
20-
IO_LOC "tlvds_n" 28;
21-
22-
IO_LOC "elvds_p" 40;
23-
IO_LOC "elvds_n" 41;
24-
25-
IO_LOC "LED_R" 25;
26-
IO_LOC "LED_G" 26;
27-
IO_LOC "LED_B" 23;
28-
29-
IO_LOC "LCD_SYNC" 29;
30-
IO_LOC "LCD_CLK" 44;
1+
IO_LOC "clk" 4;
2+
IO_PORT "clk" IO_TYPE=LVCMOS33 PULL_MODE=UP;
3+
IO_LOC "clk_i" 4;
4+
IO_PORT "clk_i" IO_TYPE=LVCMOS33 PULL_MODE=UP;
5+
IO_LOC "rst_i" 58;
6+
IO_PORT "rst_i" IO_TYPE=LVCMOS33 PULL_MODE=NONE;
7+
IO_LOC "key_i" 59;
8+
IO_PORT "key_i" IO_TYPE=LVCMOS33 PULL_MODE=NONE;
9+
IO_LOC "led[0]" 25;
10+
IO_PORT "led[0]" IO_TYPE=LVCMOS33 PULL_MODE=DOWN;
11+
IO_LOC "led[1]" 26;
12+
IO_PORT "led[1]" IO_TYPE=LVCMOS33 PULL_MODE=DOWN;
13+
IO_LOC "led[2]" 23;
14+
IO_PORT "led[2]" IO_TYPE=LVCMOS33 PULL_MODE=DOWN;
15+
IO_LOC "led[3]" 24;
16+
IO_PORT "led[3]" IO_TYPE=LVCMOS33 PULL_MODE=DOWN;
17+
IO_LOC "led[4]" 27;
18+
IO_PORT "led[4]" IO_TYPE=LVCMOS33 PULL_MODE=DOWN;
19+
IO_LOC "led[5]" 28;
20+
IO_PORT "led[5]" IO_TYPE=LVCMOS33 PULL_MODE=DOWN;
21+
IO_LOC "led[6]" 29;
22+
IO_PORT "led[6]" IO_TYPE=LVCMOS33 PULL_MODE=DOWN;
23+
IO_LOC "led[7]" 30;
24+
IO_PORT "led[7]" IO_TYPE=LVCMOS33 PULL_MODE=DOWN;
25+
26+
IO_LOC "TXD" 39;
27+
IO_PORT "TXD" IO_TYPE=LVCMOS33 PULL_MODE=UP;
28+
IO_LOC "RXD" 40;
29+
IO_PORT "RXD" IO_TYPE=LVCMOS33 PULL_MODE=UP;
30+
31+
IO_LOC "tlvds_p" 27;
32+
IO_PORT "tlvds_p" IO_TYPE=LVDS25 PULL_MODE=NONE;
33+
IO_LOC "tlvds_n" 28;
34+
IO_PORT "tlvds_n" IO_TYPE=LVDS25 PULL_MODE=NONE;
35+
36+
IO_LOC "elvds_p" 40;
37+
IO_PORT "elvds_p" IO_TYPE=LVDS25 PULL_MODE=NONE;
38+
IO_LOC "elvds_n" 41;
39+
IO_PORT "elvds_n" IO_TYPE=LVDS25 PULL_MODE=NONE;
40+
41+
IO_LOC "LED_R" 25;
42+
IO_PORT "LED_R" IO_TYPE=LVCMOS33 PULL_MODE=DOWN;
43+
IO_LOC "LED_G" 26;
44+
IO_PORT "LED_G" IO_TYPE=LVCMOS33 PULL_MODE=DOWN;
45+
IO_LOC "LED_B" 23;
46+
IO_PORT "LED_B" IO_TYPE=LVCMOS33 PULL_MODE=DOWN;
47+
48+
IO_LOC "LCD_SYNC" 29;
49+
IO_PORT "LCD_SYNC" IO_TYPE=LVCMOS33 PULL_MODE=DOWN;
50+
IO_LOC "LCD_CLK" 44;
51+
IO_PORT "LCD_CLK" IO_TYPE=LVCMOS33 PULL_MODE=DOWN;
3152

3253
// oser
33-
IO_LOC "oser_out" 25;
34-
IO_LOC "io16" 25;
35-
IO_LOC "pclk_o" 28;
36-
IO_LOC "fclk_o" 29;
54+
IO_LOC "oser_out" 25;
55+
IO_PORT "oser_out" IO_TYPE=LVCMOS33 PULL_MODE=DOWN;
56+
IO_LOC "io16" 25;
57+
IO_PORT "io16" IO_TYPE=LVCMOS33 PULL_MODE=DOWN;
58+
IO_LOC "pclk_o" 28;
59+
IO_PORT "pclk_o" IO_TYPE=LVCMOS33 PULL_MODE=DOWN;
60+
IO_LOC "fclk_o" 29;
61+
IO_PORT "fclk_o" IO_TYPE=LVCMOS33 PULL_MODE=DOWN;
3762

3863
// ides
39-
IO_LOC "fclk_i" 54;
40-
IO_LOC "data_i" 30;
41-
IO_LOC "q_o[0]" 38;
42-
IO_LOC "q_o[1]" 39;
43-
IO_LOC "q_o[2]" 40;
44-
IO_LOC "q_o[3]" 27;
45-
IO_LOC "q_o[4]" 23;
46-
IO_LOC "q_o[5]" 43;
47-
IO_LOC "q_o[6]" 42;
48-
IO_LOC "q_o[7]" 41;
49-
50-
IO_LOC "PLL_0_CLKOUT" 38;
51-
IO_LOC "PLL_0_CLKOUTD" 39;
52-
IO_LOC "PLL_0_LOCK" 40;
53-
IO_LOC "PLL_1_CLKOUT" 41;
54-
IO_LOC "PLL_1_CLKOUTD" 42;
55-
IO_LOC "PLL_1_LOCK" 43;
64+
IO_LOC "fclk_i" 54;
65+
IO_PORT "fclk_i" IO_TYPE=LVCMOS33 PULL_MODE=UP;
66+
IO_LOC "data_i" 30;
67+
IO_PORT "data_i" IO_TYPE=LVCMOS33 PULL_MODE=DOWN;
68+
IO_LOC "q_o[0]" 38;
69+
IO_PORT "q_o[0]" IO_TYPE=LVCMOS33 PULL_MODE=UP;
70+
IO_LOC "q_o[1]" 39;
71+
IO_PORT "q_o[1]" IO_TYPE=LVCMOS33 PULL_MODE=UP;
72+
IO_LOC "q_o[2]" 40;
73+
IO_PORT "q_o[2]" IO_TYPE=LVCMOS33 PULL_MODE=UP;
74+
IO_LOC "q_o[3]" 27;
75+
IO_PORT "q_o[3]" IO_TYPE=LVCMOS33 PULL_MODE=DOWN;
76+
IO_LOC "q_o[4]" 23;
77+
IO_PORT "q_o[4]" IO_TYPE=LVCMOS33 PULL_MODE=DOWN;
78+
IO_LOC "q_o[5]" 43;
79+
IO_PORT "q_o[5]" IO_TYPE=LVCMOS33 PULL_MODE=UP;
80+
IO_LOC "q_o[6]" 42;
81+
IO_PORT "q_o[6]" IO_TYPE=LVCMOS33 PULL_MODE=UP;
82+
IO_LOC "q_o[7]" 41;
83+
IO_PORT "q_o[7]" IO_TYPE=LVCMOS33 PULL_MODE=UP;
84+
85+
IO_LOC "PLL_0_CLKOUT" 38;
86+
IO_PORT "PLL_0_CLKOUT" IO_TYPE=LVCMOS33 PULL_MODE=UP;
87+
IO_LOC "PLL_0_CLKOUTD" 39;
88+
IO_PORT "PLL_0_CLKOUTD" IO_TYPE=LVCMOS33 PULL_MODE=UP;
89+
IO_LOC "PLL_0_LOCK" 40;
90+
IO_PORT "PLL_0_LOCK" IO_TYPE=LVCMOS33 PULL_MODE=UP;
91+
IO_LOC "PLL_1_CLKOUT" 41;
92+
IO_PORT "PLL_1_CLKOUT" IO_TYPE=LVCMOS33 PULL_MODE=UP;
93+
IO_LOC "PLL_1_CLKOUTD" 42;
94+
IO_PORT "PLL_1_CLKOUTD" IO_TYPE=LVCMOS33 PULL_MODE=UP;
95+
IO_LOC "PLL_1_LOCK" 43;
96+
IO_PORT "PLL_1_LOCK" IO_TYPE=LVCMOS33 PULL_MODE=UP;
5697

0 commit comments

Comments
 (0)