diff --git a/junctions/src/main/scala/atos.scala b/junctions/src/main/scala/atos.scala index ed2160a8..f11c7877 100644 --- a/junctions/src/main/scala/atos.scala +++ b/junctions/src/main/scala/atos.scala @@ -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 {