From 718f1804144d32901dc34211775c5629a96b0293 Mon Sep 17 00:00:00 2001 From: tracer-ysyx Date: Wed, 13 Mar 2024 11:41:47 +0800 Subject: [PATCH] =?UTF-8?q?>=20configure(npc)=20=20ysyx=5F22040000=20?= =?UTF-8?q?=E6=9D=8E=E5=BF=83=E6=9D=A8=20=20Linux=20calcite=206.6.19=20#1-?= =?UTF-8?q?NixOS=20SMP=20PREEMPT=5FDYNAMIC=20Fri=20Mar=20=201=2012:35:11?= =?UTF-8?q?=20UTC=202024=20x86=5F64=20GNU/Linux=20=20=2011:41:47=20=20up?= =?UTF-8?q?=20=20=201:17,=20=202=20users,=20=20load=20average:=200.84,=200?= =?UTF-8?q?.92,=200.82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- npc/core/src/main/scala/Main.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npc/core/src/main/scala/Main.scala b/npc/core/src/main/scala/Main.scala index 3b21302..d209fbc 100644 --- a/npc/core/src/main/scala/Main.scala +++ b/npc/core/src/main/scala/Main.scala @@ -50,7 +50,6 @@ class Control(width: Int) extends Module { // writeEnable :: writeSelect :: srcSelect :: (addi, true.B :: rAluOut :: pStaticNpc :: aOpAdd :: aSrcImm :: HNil), ) - println(ControlMapping) def toBits(t: T): BitPat = { val list: List[Data] = t.toList list.map(x => BitPat(x.litValue.toInt.U(x.getWidth.W))).reduceLeft(_ ## _) @@ -66,6 +65,7 @@ class Control(width: Int) extends Module { val out = decoder( inst, TruthTable(ControlMapping.map(it => (it._1 -> toBits(it._2))), default)) + println(out) val dstList = dst.toList val reversePrefixSum = dstList.scanLeft(0)(_ + _.getWidth).reverse