From 629cd5ba8ebfd14d32a1dcac51aafb870534237a Mon Sep 17 00:00:00 2001 From: tracer-ysyx Date: Sat, 6 Jan 2024 13:18:35 +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.1.69=20#1-?= =?UTF-8?q?NixOS=20SMP=20PREEMPT=5FDYNAMIC=20Wed=20Dec=2020=2016:00:29=20U?= =?UTF-8?q?TC=202023=20x86=5F64=20GNU/Linux=20=20=2013:18:35=20=20up=201?= =?UTF-8?q?=20day=2022:05,=20=202=20users,=20=20load=20average:=201.52,=20?= =?UTF-8?q?2.01,=201.74?= 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 c28fe88..0fd3f99 100644 --- a/npc/core/src/main/scala/Main.scala +++ b/npc/core/src/main/scala/Main.scala @@ -35,7 +35,7 @@ class ALUGenerator(width: Int) extends Module { val out = Output(UInt(width.W)) }) - val adder_b = Fill(width)(io.op(0)) ^ io.b // take (-b) if sub + val adder_b = Fill(io.op(0), width) ^ io.b // take (-b) if sub val add = io.a + adder_b val and = io.a & io.b val not = ~io.a