From: Joshua Wise Date: Fri, 9 May 2008 12:32:33 +0000 (-0400) Subject: Semi-working, but prone to anus, keyboard driver X-Git-Url: http://git.joshuawise.com/fpgaboy.git/commitdiff_plain/77ab69d7bb0902e6ebf0994159ed2205f8413e34?ds=sidebyside;hp=b86e6b44ef3571e60409baabf9b5966e09c93ef4 Semi-working, but prone to anus, keyboard driver --- diff --git a/CoreTop.ucf b/CoreTop.ucf index 194c75f..55b4652 100644 --- a/CoreTop.ucf +++ b/CoreTop.ucf @@ -103,5 +103,5 @@ NET "cr_A<20>" LOC="K3" | SLEW="fast"; NET "cr_A<21>" LOC="D1" | SLEW="fast"; NET "cr_A<22>" LOC="K6" | SLEW="fast"; -NET "ps2c" LOC="R12"; +NET "ps2c" LOC="R12" | CLOCK_DEDICATED_ROUTE = FALSE; NET "ps2d" LOC="P11"; \ No newline at end of file diff --git a/PS2Button.v b/PS2Button.v index 571af43..169346c 100644 --- a/PS2Button.v +++ b/PS2Button.v @@ -14,7 +14,7 @@ module PS2Button( always @ (negedge inclk) begin if(bitcount == 10) begin bitcount <= 0; - if(parity == (^ key)) begin + if(parity != (^ key)) begin if(keyarrow) begin keyarrow <= 0; case(key)