From 90ba79ae2c2e25713b6c3953b7087438c9950942 Mon Sep 17 00:00:00 2001 From: Junaid Ahmed <67728633+junaidahmed-lm@users.noreply.github.com> Date: Tue, 22 Sep 2020 17:24:07 +0500 Subject: [PATCH 1/2] Update beh_ib_func.scala --- src/main/scala/lib/beh_ib_func.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/lib/beh_ib_func.scala b/src/main/scala/lib/beh_ib_func.scala index 76dfcbc1..b1e707a1 100644 --- a/src/main/scala/lib/beh_ib_func.scala +++ b/src/main/scala/lib/beh_ib_func.scala @@ -216,7 +216,7 @@ object beh_ib_func { obj.io.clk := clk obj.io.en := en obj.io.scan_mode := scan_mode - withClock(clk) { + withClock(l1clk) { RegNext(din,0.U) } } From 51c143b73f45c398afd25cfc9d4656176e6151f4 Mon Sep 17 00:00:00 2001 From: Junaid Ahmed <67728633+junaidahmed-lm@users.noreply.github.com> Date: Tue, 22 Sep 2020 17:25:52 +0500 Subject: [PATCH 2/2] Update beh_ib_func.scala --- src/main/scala/lib/beh_ib_func.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/lib/beh_ib_func.scala b/src/main/scala/lib/beh_ib_func.scala index b1e707a1..665b0d08 100644 --- a/src/main/scala/lib/beh_ib_func.scala +++ b/src/main/scala/lib/beh_ib_func.scala @@ -6,7 +6,7 @@ import chisel3.experimental._ import chisel3.util.HasBlackBoxResource import chisel3.withClock -object beh_ib_func { +object beh_ib_func extends RequireAsyncReset { // use this for rvdffsc = > io.out := RegEnable(io.din & repl(io.din.getWidth, io.clear), 0.U, io.en) // use this for rvdffs = > io.out := RegEnable(io.din, 0.U, io.en)