From 0ff33a31a42f4d99aca67828a10f63d623d541b2 Mon Sep 17 00:00:00 2001 From: "Wesley W. Terpstra" Date: Fri, 26 Aug 2016 14:16:17 -0700 Subject: [PATCH] tilelink2: add a stub SRAM manager --- uncore/src/main/scala/tilelink2/SRAM.scala | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 uncore/src/main/scala/tilelink2/SRAM.scala diff --git a/uncore/src/main/scala/tilelink2/SRAM.scala b/uncore/src/main/scala/tilelink2/SRAM.scala new file mode 100644 index 00000000..0b3ff2f5 --- /dev/null +++ b/uncore/src/main/scala/tilelink2/SRAM.scala @@ -0,0 +1,24 @@ +// 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 + }) +}