Real-time counter.
trait HasRTCModuleImp extends LazyMultiIOModuleImp {
val outer: HasPeripheryClint
}
- outer
HasPeripheryClint
(virtual) pointer to the outer LazyModule extended withHasPeripheryClint
. - pbusFreq
BigInt
(private) the frequency of the peripheral bus. - rtcFreq
BigInt
(private) the frequency of the RTC. - internalPeriod
BigInt = pbusFreq / rtcFreq
(private) internal counter period.
outer.clint.module.io.rtcTick
is set to high for one peripheral clock cycle at the frequency of rtcFreq
.
Last updated: 16/08/2017
CC BY-NC-SA 4.0, © (2017) Wei Song
Apache 2.0, © (2016-2017) SiFive, Inc
BSD, © (2012-2014, 2016) The Regents of the University of California (Regents)