1 |
23 |
lynn0p |
# clocking stuff
|
2 |
|
|
NET "clk" IOSTANDARD = LVCMOS33 |LOC = "C9";
|
3 |
|
|
NET "clk" TNM_NET = clk;
|
4 |
|
|
TIMESPEC TS_clk = PERIOD "clk" 20 ns HIGH 40%;
|
5 |
|
|
|
6 |
|
|
#NET "btn_east" IOSTANDARD = LVTTL | LOC = "H13" | PULLDOWN;
|
7 |
|
|
NET "rst" IOSTANDARD = LVTTL |LOC = "H13" |PULLDOWN;
|
8 |
|
|
#NET "btn_north" IOSTANDARD = LVTTL | LOC = "V4" | PULLDOWN;
|
9 |
|
|
#NET "btn_south" IOSTANDARD = LVTTL | LOC = "K17" | PULLDOWN;
|
10 |
|
|
#NET "btn_west" IOSTANDARD = LVTTL | LOC = "D18" | PULLDOWN;
|
11 |
|
|
#NET "sw<0>" IOSTANDARD = LVTTL | LOC = "L13" | PULLUP;
|
12 |
|
|
NET "clke" IOSTANDARD = LVTTL |LOC = "L13" |PULLUP;
|
13 |
|
|
#NET "sw<1>" IOSTANDARD = LVTTL | LOC = "L14" | PULLUP;
|
14 |
|
|
#NET "sw<2>" IOSTANDARD = LVTTL | LOC = "H18" | PULLUP;
|
15 |
|
|
#NET "sw<3>" IOSTANDARD = LVTTL | LOC = "N17" | PULLUP;
|
16 |
|
|
# led pinouts
|
17 |
|
|
#NET "led<7>" IOSTANDARD = LVTTL |LOC = "F9" |SLEW = SLOW |DRIVE = 8;
|
18 |
|
|
#NET "led<6>" IOSTANDARD = LVTTL |LOC = "E9" |SLEW = SLOW |DRIVE = 8;
|
19 |
|
|
#NET "led<5>" IOSTANDARD = LVTTL |LOC = "D11" |SLEW = SLOW |DRIVE = 8;
|
20 |
|
|
#NET "led<4>" IOSTANDARD = LVTTL |LOC = "C11" |SLEW = SLOW |DRIVE = 8;
|
21 |
|
|
#NET "led<3>" IOSTANDARD = LVTTL |LOC = "F11" |SLEW = SLOW |DRIVE = 8;
|
22 |
|
|
#NET "led<2>" IOSTANDARD = LVTTL |LOC = "E11" |SLEW = SLOW |DRIVE = 8;
|
23 |
|
|
#NET "led<1>" IOSTANDARD = LVTTL |LOC = "E12" |SLEW = SLOW |DRIVE = 8;
|
24 |
|
|
#NET "led<0>" IOSTANDARD = LVTTL |LOC = "F12" |SLEW = SLOW |DRIVE = 8;
|
25 |
|
|
|
26 |
|
|
NET LED<0> LOC=D4; # |IOSTANDARD=LVTTL |SLEW=SLOW |DRIVE=8;
|
27 |
|
|
NET LED<1> LOC=C3 |IOSTANDARD=LVTTL |SLEW=SLOW |DRIVE=8;
|
28 |
|
|
NET LED<2> LOC=D6 |IOSTANDARD=LVTTL |SLEW=SLOW |DRIVE=8;
|
29 |
|
|
NET LED<3> LOC=E6 |IOSTANDARD=LVTTL |SLEW=SLOW |DRIVE=8;
|
30 |
|
|
NET LED<4> LOC=D13 |IOSTANDARD=LVTTL |SLEW=SLOW |DRIVE=8;
|
31 |
|
|
NET LED<5> LOC=A7 |IOSTANDARD=LVTTL |SLEW=SLOW |DRIVE=8;
|
32 |
|
|
NET LED<6> LOC=G9 |IOSTANDARD=LVTTL |SLEW=SLOW |DRIVE=8;
|
33 |
|
|
NET LED<7> LOC=A8 |IOSTANDARD=LVTTL |SLEW=SLOW |DRIVE=8;
|
34 |
|
|
|
35 |
|
|
#
|
36 |
|
|
# sdram pinouts
|
37 |
|
|
#
|
38 |
|
|
# address lines
|
39 |
|
|
NET "dram_addr<12>" LOC = "P2" |IOSTANDARD = SSTL2_I;
|
40 |
|
|
NET "dram_addr<11>" LOC = "N5" |IOSTANDARD = SSTL2_I;
|
41 |
|
|
NET "dram_addr<10>" LOC = "T2" |IOSTANDARD = SSTL2_I;
|
42 |
|
|
NET "dram_addr<9>" LOC = "N4" |IOSTANDARD = SSTL2_I;
|
43 |
|
|
NET "dram_addr<8>" LOC = "H2" |IOSTANDARD = SSTL2_I;
|
44 |
|
|
NET "dram_addr<7>" LOC = "H1" |IOSTANDARD = SSTL2_I;
|
45 |
|
|
NET "dram_addr<6>" LOC = "H3" |IOSTANDARD = SSTL2_I;
|
46 |
|
|
NET "dram_addr<5>" LOC = "H4" |IOSTANDARD = SSTL2_I;
|
47 |
|
|
NET "dram_addr<4>" LOC = "E4" |IOSTANDARD = SSTL2_I; #F4
|
48 |
|
|
NET "dram_addr<3>" LOC = "P1" |IOSTANDARD = SSTL2_I;
|
49 |
|
|
NET "dram_addr<2>" LOC = "R2" |IOSTANDARD = SSTL2_I;
|
50 |
|
|
NET "dram_addr<1>" LOC = "R3" |IOSTANDARD = SSTL2_I;
|
51 |
|
|
NET "dram_addr<0>" LOC = "T1" |IOSTANDARD = SSTL2_I;
|
52 |
|
|
|
53 |
|
|
# data lines
|
54 |
|
|
NET "dram_dq<15>" LOC = "H5" |IOSTANDARD = SSTL2_I;
|
55 |
|
|
NET "dram_dq<14>" LOC = "H6" |IOSTANDARD = SSTL2_I;
|
56 |
|
|
NET "dram_dq<13>" LOC = "G5" |IOSTANDARD = SSTL2_I;
|
57 |
|
|
NET "dram_dq<12>" LOC = "G6" |IOSTANDARD = SSTL2_I;
|
58 |
|
|
NET "dram_dq<11>" LOC = "F2" |IOSTANDARD = SSTL2_I;
|
59 |
|
|
NET "dram_dq<10>" LOC = "F1" |IOSTANDARD = SSTL2_I;
|
60 |
|
|
NET "dram_dq<9>" LOC = "E1" |IOSTANDARD = SSTL2_I;
|
61 |
|
|
NET "dram_dq<8>" LOC = "E2" |IOSTANDARD = SSTL2_I;
|
62 |
|
|
NET "dram_dq<7>" LOC = "M6" |IOSTANDARD = SSTL2_I;
|
63 |
|
|
NET "dram_dq<6>" LOC = "M5" |IOSTANDARD = SSTL2_I;
|
64 |
|
|
NET "dram_dq<5>" LOC = "M4" |IOSTANDARD = SSTL2_I;
|
65 |
|
|
NET "dram_dq<4>" LOC = "M3" |IOSTANDARD = SSTL2_I;
|
66 |
|
|
NET "dram_dq<3>" LOC = "L4" |IOSTANDARD = SSTL2_I;
|
67 |
|
|
NET "dram_dq<2>" LOC = "L3" |IOSTANDARD = SSTL2_I;
|
68 |
|
|
NET "dram_dq<1>" LOC = "L1" |IOSTANDARD = SSTL2_I;
|
69 |
|
|
NET "dram_dq<0>" LOC = "L2" |IOSTANDARD = SSTL2_I;
|
70 |
|
|
|
71 |
|
|
# bank lines
|
72 |
|
|
NET "dram_bank<0>" LOC = "K5" |IOSTANDARD = SSTL2_I;
|
73 |
|
|
NET "dram_bank<1>" LOC = "K6" |IOSTANDARD = SSTL2_I;
|
74 |
|
|
|
75 |
|
|
# command lines
|
76 |
|
|
NET "dram_cs" LOC = "K4" |IOSTANDARD = SSTL2_I; #cs
|
77 |
|
|
NET "dram_cmd<0>" LOC = "C1" |IOSTANDARD = SSTL2_I; #ras
|
78 |
|
|
NET "dram_cmd<1>" LOC = "C2" |IOSTANDARD = SSTL2_I; #cas
|
79 |
|
|
NET "dram_cmd<2>" LOC = "D1" |IOSTANDARD = SSTL2_I; #we
|
80 |
|
|
# clocks
|
81 |
|
|
NET "dram_clkn" LOC = "J4" |IOSTANDARD = SSTL2_I;
|
82 |
|
|
NET "dram_clkp" LOC = "J5" |IOSTANDARD = SSTL2_I;
|
83 |
|
|
NET "dram_clke" LOC = "K3" |IOSTANDARD = SSTL2_I;
|
84 |
|
|
|
85 |
|
|
# U/D data masks and data strobes
|
86 |
|
|
NET "dram_dm<1>" LOC = "J1" |IOSTANDARD = SSTL2_I;
|
87 |
|
|
NET "dram_dm<0>" LOC = "J2" |IOSTANDARD = SSTL2_I;
|
88 |
|
|
NET "dram_dqs<1>" LOC = "G3" |IOSTANDARD = SSTL2_I;
|
89 |
|
|
NET "dram_dqs<0>" LOC = "L6" |IOSTANDARD = SSTL2_I;
|
90 |
|
|
|
91 |
|
|
# prohibited pins related to SDRAM
|
92 |
|
|
CONFIG PROHIBIT = D2;
|
93 |
|
|
CONFIG PROHIBIT = G4;
|
94 |
|
|
CONFIG PROHIBIT = J6;
|
95 |
|
|
CONFIG PROHIBIT = L5;
|
96 |
|
|
CONFIG PROHIBIT = R4;
|
97 |
|
|
|
98 |
|
|
#
|
99 |
|
|
#end sdram pinouts
|
100 |
|
|
#
|
101 |
|
|
|