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)),