From 3ce159ac56666f7ada7af2f3c767f3000d107bb1 Mon Sep 17 00:00:00 2001
From: tracer-ysyx <tracer@ysyx.org>
Date: Wed, 10 Jan 2024 16:27:51 +0800
Subject: [PATCH] =?UTF-8?q?>=20build=5Fnpc=5FVSegHandler=5Fnvboard=20=20ys?=
 =?UTF-8?q?yx=5F22040000=20=E6=9D=8E=E5=BF=83=E6=9D=A8=20=20Linux=20calcit?=
 =?UTF-8?q?e=206.1.69=20#1-NixOS=20SMP=20PREEMPT=5FDYNAMIC=20Wed=20Dec=202?=
 =?UTF-8?q?0=2016:00:29=20UTC=202023=20x86=5F64=20GNU/Linux=20=20=2016:27:?=
 =?UTF-8?q?51=20=20up=202=20days=2015:28,=20=202=20users,=20=20load=20aver?=
 =?UTF-8?q?age:=201.80,=201.42,=201.35?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 npc/core/src/main/scala/Keyboard.scala | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/npc/core/src/main/scala/Keyboard.scala b/npc/core/src/main/scala/Keyboard.scala
index f8f7194..80525c9 100644
--- a/npc/core/src/main/scala/Keyboard.scala
+++ b/npc/core/src/main/scala/Keyboard.scala
@@ -85,14 +85,14 @@ class SegGenerator(seg_count: Int) extends Module {
 
   val keycode = io.keycode.bits
   val keycode_digits = VecInit(keycode(3,0)) ++ VecInit(keycode(7,4))
-  val keycode_seg = keycode_digits.map(MuxLookup(_, 0.U)(digit_to_seg))
+  val keycode_seg = keycode_digits.map(MuxLookup(_, 0xFF.U)(digit_to_seg))
   val ascii = MuxLookup(keycode, 0.U)(keycode_to_ascii)
   val ascii_digits = VecInit(ascii(3,0)) ++ VecInit(ascii(6,4))
-  val ascii_seg = ascii_digits.map(MuxLookup(_, 0.U)(digit_to_seg))
+  val ascii_seg = ascii_digits.map(MuxLookup(_, 0xFF.U)(digit_to_seg))
   val count_digits = VecInit(counter.value(3,0)) ++ VecInit(counter.value(7,4))
-  val count_seg = count_digits.map(MuxLookup(_, 0.U)(digit_to_seg))
+  val count_seg = count_digits.map(MuxLookup(_, 0xFF.U)(digit_to_seg))
 
-  seg_regs := Seq(0.U, 0.U) ++ count_seg ++ ascii_seg ++ keycode_seg
+  seg_regs := Seq(0xFF.U, 0xFF.U) ++ count_seg ++ ascii_seg ++ keycode_seg
 
   io.segs := seg_regs
 }