Skip to content

Commit

Permalink
fix cfu gen error
Browse files Browse the repository at this point in the history
  • Loading branch information
Dolu1990 committed Mar 4, 2021
1 parent bdc5209 commit ec50730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/vexriscv/plugin/CfuPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class CfuPlugin(val stageCount : Int,
}
}

pipeline.stages.dropRight(1).foreach(s => s.output(CFU_IN_FLIGHT) clearWhen(s.arbitration.isStuck))
pipeline.stages.drop(1).foreach(s => s.output(CFU_IN_FLIGHT) clearWhen(s.arbitration.isStuck))
addPrePopTask(() => stages.dropWhile(_ != memory).reverse.dropWhile(_ != joinStage).foreach(s => s.input(CFU_IN_FLIGHT).init(False)))
}
}
Expand Down

0 comments on commit ec50730

Please sign in to comment.