> build_npc_VKeyboard_nvboard

ysyx_22040000 李心杨
 Linux calcite 6.1.69 #1-NixOS SMP PREEMPT_DYNAMIC Wed Dec 20 16:00:29 UTC 2023 x86_64 GNU/Linux
  21:43:03  up 2 days 20:43,  2 users,  load average: 2.99, 1.81, 1.39
This commit is contained in:
tracer-ysyx 2024-01-10 21:43:03 +08:00 committed by xinyangli
parent afb0748963
commit 3819674d60

View file

@ -80,8 +80,10 @@ class KeyboardSegController extends Module {
when(io.keycode.bits === 0xF0.U) {
release_state := true.B
}.elsewhen(!release_state) {
when(io.keycode.bits =/= keycode) {
counter.inc()
}
keycode := io.keycode.bits
counter.inc()
}.otherwise{
// Release code on io.keycode.bits
release_state := false.B