-
Notifications
You must be signed in to change notification settings - Fork 0
/
gm-proto-e1-tht.ccf
72 lines (72 loc) · 3.33 KB
/
gm-proto-e1-tht.ccf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
## file: gm-proto-e1.ccf
##
## hardware pin constraints file for gm-proto-e1 THT board
## https://github.com/fm4dd/gm-proto-e1
## #######################################################
## E1 Evaluation board constraints: 1x cloxk signal SB_A8
## 8x onboard led and one push button on GPIO bank EB
## #######################################################
Pin_in "clk" Loc = "IO_SB_A8" | SCHMITT_TRIGGER=true;
Pin_in "rst" Loc = "IO_EB_B0";
Pin_out "e1led[0]" Loc = "IO_EB_B1";
Pin_out "e1led[1]" Loc = "IO_EB_B2";
Pin_out "e1led[2]" Loc = "IO_EB_B3";
Pin_out "e1led[3]" Loc = "IO_EB_B4";
Pin_out "e1led[4]" Loc = "IO_EB_B5";
Pin_out "e1led[5]" Loc = "IO_EB_B6";
Pin_out "e1led[6]" Loc = "IO_EB_B7";
Pin_out "e1led[7]" Loc = "IO_EB_B8";
## #######################################################
## E1 board PMOD-A connector constraints Digilent PMOD 8LD
## #######################################################
Pin_out "pmaled[0]" Loc = "IO_NB_A0"| DRIVE=3; # Pin-1
Pin_out "pmaled[1]" Loc = "IO_NB_A1"| DRIVE=3; # Pin-2
Pin_out "pmaled[2]" Loc = "IO_NB_A2"| DRIVE=3; # Pin-3
Pin_out "pmaled[3]" Loc = "IO_NB_A3"| DRIVE=3; # Pin-4
Pin_out "pmaled[4]" Loc = "IO_NB_B0"| DRIVE=3; # Pin-7
Pin_out "pmaled[5]" Loc = "IO_NB_B1"| DRIVE=3; # Pin-8
Pin_out "pmaled[6]" Loc = "IO_NB_B2"| DRIVE=3; # Pin-9
Pin_out "pmaled[7]" Loc = "IO_NB_B3"| DRIVE=3; # Pin-10
## #######################################################
## gm-proto-e1 board constraints for 4x LED
## #######################################################
Pin_out "prled[0]" Loc = "IO_NA_A7";
Pin_out "prled[1]" Loc = "IO_NA_A8";
Pin_out "prled[2]" Loc = "IO_WC_B0";
Pin_out "prled[3]" Loc = "IO_WC_A0";
## #######################################################
## gm-proto-e1 board constraints for 2x 7-Segment Digits
## prhex bits: 0=dp, 1=a, 2=b, 3=c, 4=d, 5=e, 6=f, 7=g
## #######################################################
Pin_out "prhex0[0]" Loc = "IO_WC_B8";
Pin_out "prhex0[1]" Loc = "IO_WC_B7";
Pin_out "prhex0[2]" Loc = "IO_WC_B6";
Pin_out "prhex0[3]" Loc = "IO_WC_B5";
Pin_out "prhex0[4]" Loc = "IO_WC_B4";
Pin_out "prhex0[5]" Loc = "IO_WC_B3";
Pin_out "prhex0[6]" Loc = "IO_WC_B2";
Pin_out "prhex0[7]" Loc = "IO_WC_B1";
Pin_out "prhex1[0]" Loc = "IO_WC_A8";
Pin_out "prhex1[1]" Loc = "IO_WC_A7";
Pin_out "prhex1[2]" Loc = "IO_WC_A6";
Pin_out "prhex1[3]" Loc = "IO_WC_A5";
Pin_out "prhex1[4]" Loc = "IO_WC_A4";
Pin_out "prhex1[5]" Loc = "IO_WC_A3";
Pin_out "prhex1[6]" Loc = "IO_WC_A2";
Pin_out "prhex1[7]" Loc = "IO_WC_A1";
## #######################################################
## gm-proto-e1 board constraints 4x Slide Switches
## #######################################################
Pin_in "prswi[0]" Loc = "IO_SA_A5" | PULLUP=true;
Pin_in "prswi[1]" Loc = "IO_SA_A4" | PULLUP=true;
Pin_in "prswi[2]" Loc = "IO_SA_A3" | PULLUP=true;
Pin_in "prswi[3]" Loc = "IO_SA_A2" | PULLUP=true;
## #######################################################
## gm-proto-e1 board constraints 2x Push Buttons
## #######################################################
Pin_in "prbtn[0]" Loc = "IO_SA_A1" | SCHMITT_TRIGGER=true;
Pin_in "prbtn[1]" Loc = "IO_SA_A0" | SCHMITT_TRIGGER=true;
## #######################################################
## gm-proto-e1 board constraints Proto Area definitions
## #######################################################
Pin_out "prbuz" Loc = "IO_EA_A6";