From 11bd15432a55e3c00a6c9b1b10bd348fa8f3105c Mon Sep 17 00:00:00 2001 From: Howard Mao Date: Thu, 24 Mar 2016 18:09:37 -0700 Subject: [PATCH] fix bug in RTC --- uncore/src/main/scala/rtc.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uncore/src/main/scala/rtc.scala b/uncore/src/main/scala/rtc.scala index f22121a9..2b10daef 100644 --- a/uncore/src/main/scala/rtc.scala +++ b/uncore/src/main/scala/rtc.scala @@ -39,7 +39,7 @@ class RTC(csr_MTIME: Int)(implicit p: Parameters) extends HtifModule coreId := addr_send_cnt } else { when (io.aw.fire()) { sending_addr := Bool(false) } - when (io.w.fire()) { sending_addr := Bool(false) } + when (io.w.fire()) { sending_data := Bool(false) } coreId := UInt(0) }