Skip to content

Commit

Permalink
TLROM: allow name and compatibility strings to be provided by subclas…
Browse files Browse the repository at this point in the history
…ses.
  • Loading branch information
mwachs5 committed Mar 27, 2017
1 parent 8e6beb8 commit bf64851
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/scala/uncore/devices/Rom.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand Down

0 comments on commit bf64851

Please sign in to comment.