From 93447eb27468ee0bfb20d5e5bf0225bc04f35d30 Mon Sep 17 00:00:00 2001 From: "Wesley W. Terpstra" Date: Tue, 24 May 2016 14:06:03 -0700 Subject: [PATCH] ahb: make hasti parameters location sensitive --- junctions/src/main/scala/hasti.scala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/junctions/src/main/scala/hasti.scala b/junctions/src/main/scala/hasti.scala index bf25138a..28bd3011 100644 --- a/junctions/src/main/scala/hasti.scala +++ b/junctions/src/main/scala/hasti.scala @@ -32,11 +32,12 @@ trait HastiConstants } case class HastiParameters(dataBits: Int, addrBits: Int) -case object HastiKey extends Field[HastiParameters] +case object HastiId extends Field[String] +case class HastiKey(id: String) extends Field[HastiParameters] trait HasHastiParameters { implicit val p: Parameters - val hastiParams = p(HastiKey) + val hastiParams = p(HastiKey(p(HastiId))) val hastiAddrBits = hastiParams.addrBits val hastiDataBits = hastiParams.dataBits }