1
0

add a resp_len helper to AtosRequest

This commit is contained in:
Howard Mao 2016-02-16 10:02:48 -08:00
parent db3b2c264c
commit 4f5b1da58b

View File

@ -97,6 +97,11 @@ class AtosRequest(implicit p: Parameters)
typ === AtosRequest.arType || (typ === AtosRequest.wType && last())
def nbytes: Int = atosRequestBytes
def resp_len(dummy: Int = 0) =
MuxLookup(typ, UInt(0), Seq(
AtosRequest.arType -> (len() + UInt(1)),
AtosRequest.awType -> UInt(1)))
}
object AtosResponse {