Skip to content

Commit

Permalink
[RsChien] Use common GfPolyEval in Chien block by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
egorman44 committed Jul 9, 2024
1 parent 18a7d41 commit eba79db
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/scala/RsChien/RsChienErrBitPos.scala
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ class RsChienErrBitPos extends Module with GfParams {
val numOfCycles = math.ceil(rootsNum/chienRootsPerCycle.toDouble).toInt
val chienNonValid = ((1 << (rootsNum % chienRootsPerCycle)) -1)

val polyEval = for(i <- 0 until chienRootsPerCycle) yield Module(new GfPolyEvalHorner(tLen+1, chienHornerComboLen, chienHorner))
//val polyEval = for(i <- 0 until chienRootsPerCycle) yield Module(new GfPolyEval(tLen+1))
// TODO: Create the PolyEval depends on the input param
//val polyEval = for(i <- 0 until chienRootsPerCycle) yield Module(new GfPolyEvalHorner(tLen+1, chienHornerComboLen, chienHorner))
val polyEval = for(i <- 0 until chienRootsPerCycle) yield Module(new GfPolyEval(tLen+1))

val roots = Wire(Valid(Vec(chienRootsPerCycle, UInt(symbWidth.W))))

Expand Down

0 comments on commit eba79db

Please sign in to comment.