TLROM: allow name and compatibility strings to be provided by subclasses.
This commit is contained in:
parent
8e6beb80be
commit
bf648514e3
@ -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)),
|
||||
|
Loading…
Reference in New Issue
Block a user