From 566cc9e60b06106fbad652222a1df08fec2fe657 Mon Sep 17 00:00:00 2001 From: "Wesley W. Terpstra" Date: Wed, 23 Nov 2016 16:04:54 -0800 Subject: [PATCH] rocketchip: RTCPeriod config --- src/main/scala/rocketchip/Configs.scala | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/scala/rocketchip/Configs.scala b/src/main/scala/rocketchip/Configs.scala index 2a1aac3a..8ab15a9d 100644 --- a/src/main/scala/rocketchip/Configs.scala +++ b/src/main/scala/rocketchip/Configs.scala @@ -169,3 +169,9 @@ class WithNBreakpoints(hwbp: Int) extends Config ( case _ => throw new CDEMatchError } ) + +class WithRTCPeriod(nCycles: Int) extends Config( + (pname, site, here) => pname match { + case RTCPeriod => nCycles + case _ => throw new CDEMatchError + })