1
0

Make it easier to override the 'placeholder' Real-Time-Clock, to allow more real-world applications

This commit is contained in:
Megan Wachs
2016-09-02 11:11:40 -07:00
parent 4a7972be31
commit 8163a6b597
4 changed files with 15 additions and 4 deletions

View File

@ -153,6 +153,8 @@ class BasePlatformConfig extends Config (
case ExtMemSize => Dump("MEM_SIZE", 0x10000000L)
case ConfigString => makeConfigString()
case GlobalAddrMap => globalAddrMap
case RTCPeriod => 100 // gives 10 MHz RTC assuming 1 GHz uncore clock
case RTC => (p: Parameters, t_io: Bundle, p_io:Bundle) => Counter(p(RTCPeriod)).inc()
case _ => throw new CDEMatchError
}})