Skip to content

Commit

Permalink
Merge pull request #432 from riscv-boom/pipeview-fix
Browse files Browse the repository at this point in the history
[fetch] fix pipeview
  • Loading branch information
abejgonzalez committed Jan 23, 2020
2 parents 834e179 + 117d30b commit 7ba342a
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/main/scala/ifu/fetch-control-unit.scala
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,15 @@ class FetchControlUnit(implicit p: Parameters) extends BoomModule
//-------------------------------------------------------------

when (f3_fire) {
for (i <- 0 until fetchWidth) {
if (i == 0) {
f3_fetch_bundle.debug_events(i).fetch_seq := fseq_reg
} else {
f3_fetch_bundle.debug_events(i).fetch_seq := fseq_reg +
PopCount(f3_fetch_bundle.mask.asUInt()(i-1,0))
}
}

r_f4_req := f3_req
r_f4_fetchpc := f3_imemresp.pc
r_f4_taken := f3_taken
Expand All @@ -525,14 +534,6 @@ class FetchControlUnit(implicit p: Parameters) extends BoomModule
fb.io.status := io.status
fb.io.bp := io.bp

for (i <- 0 until fetchWidth) {
if (i == 0) {
fb.io.enq.bits.debug_events(i).fetch_seq := fseq_reg
} else {
fb.io.enq.bits.debug_events(i).fetch_seq := fseq_reg +
PopCount(f3_fetch_bundle.mask.asUInt()(i-1,0))
}
}

//-------------------------------------------------------------
// **** FetchTargetQueue ****
Expand Down

0 comments on commit 7ba342a

Please sign in to comment.