summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/scala/chisel3/util/LFSR.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/chisel3/util/LFSR.scala b/src/main/scala/chisel3/util/LFSR.scala
index 6ee6be5d..5c295029 100644
--- a/src/main/scala/chisel3/util/LFSR.scala
+++ b/src/main/scala/chisel3/util/LFSR.scala
@@ -37,7 +37,7 @@ object LFSR16 {
@chiselName
def apply(increment: Bool = true.B): UInt =
Vec( FibonacciLFSR
- .maxPeriod(16, seed = Some(BigInt(1) << 15))
+ .maxPeriod(16, increment, seed = Some(BigInt(1) << 15))
.asBools
.reverse )
.asUInt