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

This commit is contained in:
Megan Wachs committed 2016-09-02 11:11:40 -07:00
1 parent 4a7972be31
commit 8163a6b597
4 files changed
+15 -4

No files matched your search

+2
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
}})