1
0

ahb: helper methods

This commit is contained in:
Wesley W. Terpstra 2016-05-18 16:23:32 -07:00
parent ef2aae26a8
commit 2b37f37335

View File

@ -72,6 +72,10 @@ class HastiMasterIO(implicit p: Parameters) extends HastiBundle()(p) {
val hready = Bool(INPUT) val hready = Bool(INPUT)
val hresp = UInt(INPUT, SZ_HRESP) val hresp = UInt(INPUT, SZ_HRESP)
def isNSeq(dummy:Int=0) = htrans === HTRANS_NONSEQ // SEQ does not start a NEW request
def isHold(dummy:Int=0) = htrans === HTRANS_BUSY || htrans === HTRANS_SEQ
def isIdle(dummy:Int=0) = htrans === HTRANS_IDLE || htrans === HTRANS_BUSY
} }
class HastiSlaveIO(implicit p: Parameters) extends HastiBundle()(p) { class HastiSlaveIO(implicit p: Parameters) extends HastiBundle()(p) {