From 77ab69d7bb0902e6ebf0994159ed2205f8413e34 Mon Sep 17 00:00:00 2001 From: Joshua Wise Date: Fri, 9 May 2008 08:32:33 -0400 Subject: [PATCH] Semi-working, but prone to anus, keyboard driver --- CoreTop.ucf | 2 +- PS2Button.v | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) -- 2.43.0