1
0
Fork 0

Cut imem.resp.ready critical path with a flow queue

This is only necessary for RVC, where the decode latency is much higher.
This commit is contained in:
Andrew Waterman 2017-04-02 22:25:13 -07:00 committed by Andrew Waterman
parent 3e72f9779f
commit 744fb2e4b9
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@
package rocket
import Chisel._
import chisel3.core.withReset
import config._
import tile._
import uncore.constants._
@ -172,7 +173,7 @@ class Rocket(implicit p: Parameters) extends CoreModule()(p)
val ibuf = Module(new IBuf)
val id_expanded_inst = ibuf.io.inst.map(_.bits.inst)
val id_inst = id_expanded_inst.map(_.bits)
ibuf.io.imem <> io.imem.resp
ibuf.io.imem <> (if (usingCompressed) withReset(reset || take_pc) { Queue(io.imem.resp, 1, flow = true) } else io.imem.resp)
ibuf.io.kill := take_pc
require(decodeWidth == 1 /* TODO */ && retireWidth == decodeWidth)