]> rtime.felk.cvut.cz Git - fpga/spartan2/qcounter.git/blob - top_counter.ucf
Component instances replaced by entity instances.
[fpga/spartan2/qcounter.git] / top_counter.ucf
1 #==============================================================================#
2 # Pin constraints of Spartan-II Demo Board made by Insight                     #
3 #==============================================================================#
4
5 #==============================================================================#
6 # Clock & Reset                                                                #
7 #==============================================================================#
8 # I have measured clock frequency 40.38 MHz
9 # Oscilator chip DS1073 is shipped from the factory configured for half the 
10 # maximum operating frequency. And can be reconfigured using 1-wire protocol in
11 # the range of approximately 30kHz to 1000MHz.
12
13 NET "clk"             LOC = "P80" |   PERIOD = 24 ns;
14 NET "reset"           LOC = "P206";
15
16 #==============================================================================#
17 # LCD display                                                                  #
18 #==============================================================================#
19
20 NET "lcd_com"         LOC = "P174";
21
22 NET "lcd2<0>"         LOC = "P168";
23 NET "lcd2<1>"         LOC = "P166";
24 NET "lcd2<2>"         LOC = "P165";
25 NET "lcd2<3>"         LOC = "P163";
26 NET "lcd2<4>"         LOC = "P162";
27 NET "lcd2<5>"         LOC = "P172";
28 NET "lcd2<6>"         LOC = "P173";
29 NET "lcd2_dp"         LOC = "P161";
30
31 NET "lcd1<0>"         LOC = "P187";
32 NET "lcd1<1>"         LOC = "P181";
33 NET "lcd1<2>"         LOC = "P180";
34 NET "lcd1<3>"         LOC = "P179";
35 NET "lcd1<4>"         LOC = "P176";
36 NET "lcd1<5>"         LOC = "P188";
37 NET "lcd1<6>"         LOC = "P191";
38 NET "lcd1_dp"         LOC = "P175";
39
40 #==============================================================================#
41 # RS-232 communication port                                                    #
42 #==============================================================================#
43 # TXD is input to the board.
44 # RXD is output from the board.
45
46 NET "txd"             LOC = "P193";
47 NET "rxd"             LOC = "P194";
48
49 #==============================================================================#
50 # LEDs                                                                         #
51 #==============================================================================#
52 # All LEDs are low active.
53
54 NET "led4"            LOC = "P195";
55 NET "led5"            LOC = "P199";
56 NET "led6"            LOC = "P201";
57
58 #==============================================================================#
59 # DIP switches                                                                 #
60 #==============================================================================#
61 # All switches are low active.
62
63 NET "sw1"             LOC = "P202";
64 NET "sw2"             LOC = "P204";
65 NET "sw3"             LOC = "P205";
66 NET "sw4"             LOC = "P206";
67
68
69 #==============================================================================#
70 # Other connected devices                                                      #
71 #==============================================================================#
72
73 #Rotary encoder connect to the header JP1.
74 # rot_feed  - JP1.1 - log. 1 "feeding" quadratic encoder
75 # rot_A     - JP1.3
76 # rot_B     - JP1.5
77 # rot_press - JPJ.7 - quadratic encoder has also function of button
78
79 NET "rot_feed"        LOC = "P3";
80 NET "rot_A"           LOC = "P5" |    PULLDOWN;
81 NET "rot_B"           LOC = "P7" |    PULLDOWN; 
82 NET "rot_press"       LOC = "P9" |    PULLDOWN;
83