Skip to content

Commit

Permalink
Remove deprecated code for BarrelShifter
Browse files Browse the repository at this point in the history
Cherry-picked chipsalliance/chisel@7372c9e
Should use BarrelShifter from chisel3.std, but it is not published,
see chipsalliance/chisel#2997
  • Loading branch information
ZenithalHourlyRate committed Feb 10, 2023
1 parent 76e4681 commit 6cf6bae
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/scala/util/BarrelShifter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,9 @@ object BarrelShifter {
): Vec[T] = {
require(shiftGranularity > 0)
val elementType: T = chiselTypeOf(inputs.head)
shiftInput
.asBools()
shiftInput.asBools
.grouped(shiftGranularity)
.map(VecInit(_).asUInt())
.map(VecInit(_).asUInt)
.zipWithIndex
.foldLeft(inputs) {
case (prev, (shiftBits, layer)) =>
Expand Down

0 comments on commit 6cf6bae

Please sign in to comment.