Commit fa52f452 authored by Jens Korinth's avatar Jens Korinth
Browse files

AxiSlaveModel: fix off-by-1-bug in burst length

* AR_LEN can be used directly for countdown var
parent c479cc97
......@@ -104,8 +104,7 @@ class AxiSlaveModel(addrWidth: Int, dataWidth: Int, idWidth: Int, size: Option[I
when (!ra_hs && io.saxi.readAddr.ready && io.saxi.readAddr.valid) {
ra := io.saxi.readAddr.bits.addr
ra_hs := Bool(true)
//l := Mux(ra_len > UInt(0), ra_len - UInt(1), UInt(0))
l := Mux(io.saxi.readAddr.bits.len > UInt(0), io.saxi.readAddr.bits.len - UInt(1), UInt(0))
l := io.saxi.readAddr.bits.len
}
when (ra_hs && io.saxi.readData.ready) {
l := l - UInt(1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment