fix HasRTCModuleImp (#885)
This commit is contained in:
parent
01ca3efc2b
commit
dc435af30a
@ -17,8 +17,7 @@ trait HasRTCModuleImp extends LazyMultiIOModuleImp {
|
|||||||
require(internalPeriod.isDefined, "RTCPeriod is not defined")
|
require(internalPeriod.isDefined, "RTCPeriod is not defined")
|
||||||
|
|
||||||
// Use the static period to toggle the RTC
|
// Use the static period to toggle the RTC
|
||||||
val (rtc_counter, _) = Counter(true.B, internalPeriod.get)
|
val (_, int_rtc_tick) = Counter(true.B, internalPeriod.get)
|
||||||
val tick = rtc_counter(log2Up(internalPeriod.get)-1)
|
|
||||||
|
|
||||||
outer.clint.module.io.rtcTick := tick
|
outer.clint.module.io.rtcTick := int_rtc_tick
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user