1
0
rocket-chip/uncore/src/main/scala/tilelink2/SRAM.scala

25 lines
666 B
Scala
Raw Normal View History

2016-08-26 23:16:17 +02:00
// See LICENSE for license details.
package uncore.tilelink2
import Chisel._
class TLRAM(address: AddressSet, beatBytes: Int = 4) extends TLFactory
{
val node = TLManagerNode(beatBytes, TLManagerParameters(
address = List(address),
regionType = RegionType.UNCACHED,
supportsGet = TransferSizes(1, beatBytes),
supportsPutPartial = TransferSizes(1, beatBytes),
supportsPutFull = TransferSizes(1, beatBytes),
fifoId = Some(0))) // requests are handled in order
lazy val module = Module(new TLModule(this) {
val io = new Bundle {
val in = node.bundleIn
}
// do stuff
})
}