1
0

ahb: make hasti parameters location sensitive

This commit is contained in:
Wesley W. Terpstra 2016-05-24 14:06:03 -07:00
parent 44740cb6b2
commit 93447eb274

View File

@ -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
}