From 48b7b076a9e9e54c107e0571b560a4baf5244202 Mon Sep 17 00:00:00 2001 From: "Wesley W. Terpstra" Date: Tue, 28 Apr 2020 18:19:56 -0700 Subject: [PATCH] AXIS: allow masters to carry resources as well --- src/main/scala/amba/axis/Parameters.scala | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/scala/amba/axis/Parameters.scala b/src/main/scala/amba/axis/Parameters.scala index 9a5511177c2..b58f2805698 100644 --- a/src/main/scala/amba/axis/Parameters.scala +++ b/src/main/scala/amba/axis/Parameters.scala @@ -96,6 +96,7 @@ class AXISMasterParameters private ( val name: String, val emitsSizes: TransferSizes, val sourceId: IdRange, + val resources: Seq[Resource], val nodePath: Seq[BaseNode]) { require (!emitsSizes.none) @@ -105,12 +106,14 @@ class AXISMasterParameters private ( name: String = name, emitsSizes: TransferSizes = emitsSizes, sourceId: IdRange = sourceId, + resources: Seq[Resource] = resources, nodePath: Seq[BaseNode] = nodePath) = { new AXISMasterParameters( name = name, emitsSizes = emitsSizes, sourceId = sourceId, + resources = resources, nodePath = nodePath) } } @@ -120,12 +123,14 @@ object AXISMasterParameters { name: String, emitsSizes: TransferSizes, sourceId: IdRange = IdRange(0,1), + resources: Seq[Resource] = Nil, nodePath: Seq[BaseNode] = Nil) = { new AXISMasterParameters( name = name, emitsSizes = emitsSizes, sourceId = sourceId, + resources = resources, nodePath = nodePath) } }