Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 1.24 KB

RTC.md

File metadata and controls

29 lines (23 loc) · 1.24 KB

Real-time counter.


HasRTCModuleImp

trait HasRTCModuleImp extends LazyMultiIOModuleImp {
  val outer: HasPeripheryClint
}
  • outer HasPeripheryClint (virtual) pointer to the outer LazyModule extended with HasPeripheryClint.
  • 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)