> 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:
parent
afb0748963
commit
3819674d60
1 changed files with 3 additions and 1 deletions
|
@ -80,8 +80,10 @@ class KeyboardSegController extends Module {
|
||||||
when(io.keycode.bits === 0xF0.U) {
|
when(io.keycode.bits === 0xF0.U) {
|
||||||
release_state := true.B
|
release_state := true.B
|
||||||
}.elsewhen(!release_state) {
|
}.elsewhen(!release_state) {
|
||||||
keycode := io.keycode.bits
|
when(io.keycode.bits =/= keycode) {
|
||||||
counter.inc()
|
counter.inc()
|
||||||
|
}
|
||||||
|
keycode := io.keycode.bits
|
||||||
}.otherwise{
|
}.otherwise{
|
||||||
// Release code on io.keycode.bits
|
// Release code on io.keycode.bits
|
||||||
release_state := false.B
|
release_state := false.B
|
||||||
|
|
Loading…
Reference in a new issue