Semi-working, but prone to anus, keyboard driver
authorJoshua Wise <joshua@rebirth.joshuawise.com>
Fri, 9 May 2008 12:32:33 +0000 (08:32 -0400)
committerJoshua Wise <joshua@rebirth.joshuawise.com>
Fri, 9 May 2008 12:32:33 +0000 (08:32 -0400)
CoreTop.ucf
PS2Button.v

index 194c75f..55b4652 100644 (file)
@@ -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
index 571af43..169346c 100644 (file)
@@ -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)
This page took 0.020496 seconds and 4 git commands to generate.