From bf648514e311e01e98a4d77db86eeb2ebb824e10 Mon Sep 17 00:00:00 2001 From: Megan Wachs Date: Thu, 16 Mar 2017 16:06:30 -0700 Subject: [PATCH] TLROM: allow name and compatibility strings to be provided by subclasses. --- src/main/scala/uncore/devices/Rom.scala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/scala/uncore/devices/Rom.scala b/src/main/scala/uncore/devices/Rom.scala index 2e686480..c0d30b72 100644 --- a/src/main/scala/uncore/devices/Rom.scala +++ b/src/main/scala/uncore/devices/Rom.scala @@ -12,9 +12,10 @@ import uncore.tilelink2._ import uncore.util._ import config._ -class TLROM(val base: BigInt, val size: Int, contentsDelayed: => Seq[Byte], executable: Boolean = true, beatBytes: Int = 4)(implicit p: Parameters) extends LazyModule +class TLROM(val base: BigInt, val size: Int, contentsDelayed: => Seq[Byte], executable: Boolean = true, + beatBytes: Int = 4, name: String = "rom", devcompat: Seq[String] = Nil)(implicit p: Parameters) extends LazyModule { - val device = new SimpleDevice("rom", Nil) + val device = new SimpleDevice(name, devcompat) val node = TLManagerNode(beatBytes, TLManagerParameters( address = List(AddressSet(base, size-1)),