提交 7447ee13 编写于 作者: L Lingrui98

ras: move RASEntry to top level

上级 ec778fd0
......@@ -13,6 +13,7 @@ import xiangshan.frontend.HasBPUParameter
import xiangshan.frontend.HasTageParameter
import xiangshan.frontend.HasIFUConst
import xiangshan.frontend.GlobalHistory
import xiangshan.frontend.RASEntry
import utils._
import scala.math.max
......
......@@ -7,6 +7,11 @@ import xiangshan.backend.ALUOpType
import utils._
import chisel3.experimental.chiselName
class RASEntry() extends XSBundle {
val retAddr = UInt(VAddrBits.W)
val ctr = UInt(8.W) // layer of nested call functions
}
@chiselName
class RAS extends BasePredictor
{
......@@ -33,10 +38,6 @@ class RAS extends BasePredictor
val meta = Output(new RASBranchInfo)
}
class RASEntry() extends XSBundle {
val retAddr = UInt(VAddrBits.W)
val ctr = UInt(8.W) // layer of nested call functions
}
def rasEntry() = new RASEntry
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册