From 3926cb936b7a39d0104bda8460bfeed79e98a61c Mon Sep 17 00:00:00 2001 From: "Wesley W. Terpstra" Date: Tue, 27 Sep 2016 15:52:13 -0700 Subject: [PATCH] rocketchip: add pbus width and AMO With classes (#357) --- src/main/scala/rocketchip/Configs.scala | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/scala/rocketchip/Configs.scala b/src/main/scala/rocketchip/Configs.scala index 4dda1ee3..61467754 100644 --- a/src/main/scala/rocketchip/Configs.scala +++ b/src/main/scala/rocketchip/Configs.scala @@ -195,3 +195,15 @@ class WithJtagDTM extends Config ( case _ => throw new CDEMatchError } ) + +class WithNoPeripheryArithAMO extends Config ( + (pname, site, here) => pname match { + case PeripheryBusKey => PeripheryBusConfig(arithAMO = false, beatBytes = 4) + } +) + +class With64BitPeriphery extends Config ( + (pname, site, here) => pname match { + case PeripheryBusKey => PeripheryBusConfig(arithAMO = true, beatBytes = 8) + } +)