Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix button mappings (a and b were swapped) #126

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions soc/had19_prod.lpf
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ IOBUF PORT "leda[2]" IO_TYPE=LVCMOS33;

#buttons
#[7:0] = UDLRBAstartsel
LOCATE COMP "btn[7]" SITE "E1"; #start
LOCATE COMP "btn[6]" SITE "D2"; #select
LOCATE COMP "btn[5]" SITE "D1"; #a
LOCATE COMP "btn[4]" SITE "E2"; #b
LOCATE COMP "btn[3]" SITE "F2"; #right
LOCATE COMP "btn[2]" SITE "G2"; #left
LOCATE COMP "btn[1]" SITE "C1"; #down
LOCATE COMP "btn[0]" SITE "F1"; #up
LOCATE COMP "btn[7]" SITE "E1"; #SW8 (start)
LOCATE COMP "btn[6]" SITE "D2"; #SW7 (select)
LOCATE COMP "btn[5]" SITE "E2"; #SW6 (b)
LOCATE COMP "btn[4]" SITE "D1"; #SW5 (a)
LOCATE COMP "btn[3]" SITE "F2"; #SW4 (right)
LOCATE COMP "btn[2]" SITE "G2"; #SW3 (left)
LOCATE COMP "btn[1]" SITE "C1"; #SW2 (down)
LOCATE COMP "btn[0]" SITE "F1"; #SW1 (up)

IOBUF PORT "btn[0]" IO_TYPE=LVCMOS33 PULLMODE=UP;
IOBUF PORT "btn[1]" IO_TYPE=LVCMOS33 PULLMODE=UP;
Expand Down Expand Up @@ -265,7 +265,7 @@ LOCATE COMP "adc4" SITE "D17";
LOCATE COMP "adcrefout" SITE "A19";

#has D17 as complementary input
IOBUF PORT "adcref4" IO_TYPE=LVDS;
IOBUF PORT "adcref4" IO_TYPE=LVDS;

LOCATE COMP "sao1[0]" SITE "A2"; #gpio1
LOCATE COMP "sao1[1]" SITE "A3"; #gpio2
Expand Down