From 9310a33e77285bafe5f58a9777691566dc7e14f9 Mon Sep 17 00:00:00 2001 From: "Wesley W. Terpstra" Date: Fri, 7 Jul 2017 21:08:07 -0700 Subject: [PATCH] apb: SRAM can emulate incompletely populated memory --- src/main/scala/amba/apb/SRAM.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/amba/apb/SRAM.scala b/src/main/scala/amba/apb/SRAM.scala index e74fb9a2..59e26dc5 100644 --- a/src/main/scala/amba/apb/SRAM.scala +++ b/src/main/scala/amba/apb/SRAM.scala @@ -7,11 +7,11 @@ import freechips.rocketchip.config.Parameters import freechips.rocketchip.diplomacy._ import freechips.rocketchip.util._ -class APBRAM(address: AddressSet, executable: Boolean = true, beatBytes: Int = 4)(implicit p: Parameters) extends LazyModule +class APBRAM(address: AddressSet, executable: Boolean = true, beatBytes: Int = 4, errors: Seq[AddressSet] = Nil)(implicit p: Parameters) extends LazyModule { val node = APBSlaveNode(Seq(APBSlavePortParameters( Seq(APBSlaveParameters( - address = List(address), + address = List(address) ++ errors, regionType = RegionType.UNCACHED, executable = executable, supportsRead = true,