1
0

ahb: eliminate trait abused for constants

This commit is contained in:
Wesley W. Terpstra 2016-05-24 14:14:57 -07:00
parent 200c69c106
commit b921bae107
2 changed files with 4 additions and 2 deletions

View File

@ -3,7 +3,7 @@ package junctions
import Chisel._
import cde.{Parameters, Field}
trait HastiConstants
object HastiConstants
{
// Values for htrans
val SZ_HTRANS = 2
@ -42,6 +42,8 @@ trait HastiConstants
def dgate(valid: Bool, b: UInt) = Fill(b.getWidth, valid) & b
}
import HastiConstants._
case class HastiParameters(dataBits: Int, addrBits: Int)
case object HastiId extends Field[String]
case class HastiKey(id: String) extends Field[HastiParameters]

View File

@ -1 +1 @@
package object junctions extends HastiConstants
package object junctions