ahb: eliminate trait abused for constants
This commit is contained in:
parent
200c69c106
commit
b921bae107
@ -3,7 +3,7 @@ package junctions
|
|||||||
import Chisel._
|
import Chisel._
|
||||||
import cde.{Parameters, Field}
|
import cde.{Parameters, Field}
|
||||||
|
|
||||||
trait HastiConstants
|
object HastiConstants
|
||||||
{
|
{
|
||||||
// Values for htrans
|
// Values for htrans
|
||||||
val SZ_HTRANS = 2
|
val SZ_HTRANS = 2
|
||||||
@ -42,6 +42,8 @@ trait HastiConstants
|
|||||||
def dgate(valid: Bool, b: UInt) = Fill(b.getWidth, valid) & b
|
def dgate(valid: Bool, b: UInt) = Fill(b.getWidth, valid) & b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
import HastiConstants._
|
||||||
|
|
||||||
case class HastiParameters(dataBits: Int, addrBits: Int)
|
case class HastiParameters(dataBits: Int, addrBits: Int)
|
||||||
case object HastiId extends Field[String]
|
case object HastiId extends Field[String]
|
||||||
case class HastiKey(id: String) extends Field[HastiParameters]
|
case class HastiKey(id: String) extends Field[HastiParameters]
|
||||||
|
@ -1 +1 @@
|
|||||||
package object junctions extends HastiConstants
|
package object junctions
|
||||||
|
Loading…
Reference in New Issue
Block a user