Skip to content

Commit

Permalink
[WIP] BPU: Move resp.s3 assignment from Tage to RAS
Browse files Browse the repository at this point in the history
  • Loading branch information
zoujr committed Aug 20, 2021
1 parent 8499e12 commit f34d381
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/main/scala/xiangshan/decoupled-frontend/RAS.scala
Expand Up @@ -166,6 +166,8 @@ class RAS(implicit p: Parameters) extends BasePredictor {

io.out.resp.s2.rasSp := spec_ras.sp
io.out.resp.s2.rasTop := spec_ras.top

io.out.resp.s3 := RegEnable(io.out.resp.s2, io.s2_fire)

val redirect = RegNext(io.redirect)
val do_recover = redirect.valid
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/xiangshan/decoupled-frontend/Tage.scala
Expand Up @@ -577,7 +577,7 @@ class Tage(implicit p: Parameters) extends BaseTage {
}

resp_s2.preds.taken_mask := s2_tageTakens
io.out.resp.s3 := RegEnable(resp_s2, io.s2_fire)
// io.out.resp.s3 := RegEnable(resp_s2, io.s2_fire)

for (i <- 0 until TageNTables) {
for (w <- 0 until TageBanks) {
Expand Down

0 comments on commit f34d381

Please sign in to comment.