From 2b37f37335fbfdd986e977baeee3eb307c6307d5 Mon Sep 17 00:00:00 2001 From: "Wesley W. Terpstra" Date: Wed, 18 May 2016 16:23:32 -0700 Subject: [PATCH] ahb: helper methods --- junctions/src/main/scala/hasti.scala | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/junctions/src/main/scala/hasti.scala b/junctions/src/main/scala/hasti.scala index 9275428c..50a5f822 100644 --- a/junctions/src/main/scala/hasti.scala +++ b/junctions/src/main/scala/hasti.scala @@ -72,6 +72,10 @@ class HastiMasterIO(implicit p: Parameters) extends HastiBundle()(p) { val hready = Bool(INPUT) 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) {