diff options
| author | Aditya Naik | 2024-06-03 19:41:04 -0700 |
|---|---|---|
| committer | Aditya Naik | 2024-06-03 19:41:04 -0700 |
| commit | 52824ce57e9d60fe6ef721cfb073249e654dcf46 (patch) | |
| tree | 1763ea303391b0cf1c0e4e21e7b7d3626f4d64fb /src/main/scala/chisel3/util/Valid.scala | |
| parent | a529d0e962cbe6a8f32dcc87d5193df46c0ebc94 (diff) | |
fix stuff in src/
build is failing with a compile error in 3.3.3 due to something in
Aggregate.scala. reduce to smallest form and file a bug report maybe?
Diffstat (limited to 'src/main/scala/chisel3/util/Valid.scala')
| -rw-r--r-- | src/main/scala/chisel3/util/Valid.scala | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/main/scala/chisel3/util/Valid.scala b/src/main/scala/chisel3/util/Valid.scala index cb0e166a..71e6e050 100644 --- a/src/main/scala/chisel3/util/Valid.scala +++ b/src/main/scala/chisel3/util/Valid.scala @@ -119,7 +119,7 @@ object Pipe { * @return $returnType */ @nowarn("cat=deprecation&msg=TransitName") - def apply[T <: Data](enqValid: Bool, enqBits: T, latency: Int)(implicit compileOptions: CompileOptions): Valid[T] = { + def apply[T <: Data](enqValid: Bool, enqBits: T, latency: Int): Valid[T] = { require(latency >= 0, "Pipe latency must be greater than or equal to zero!") if (latency == 0) { val out = Wire(Valid(chiselTypeOf(enqBits))) @@ -129,7 +129,7 @@ object Pipe { } else { val v = RegNext(enqValid, false.B) val b = RegEnable(enqBits, enqValid) - val out = apply(v, b, latency - 1)(compileOptions) + val out = apply(v, b, latency - 1) TransitName.withSuffix("Pipe_valid")(out, v) TransitName.withSuffix("Pipe_bits")(out, b) @@ -141,8 +141,8 @@ object Pipe { * @param enqBits the data (must be a hardware type) * @return $returnType */ - def apply[T <: Data](enqValid: Bool, enqBits: T)(implicit compileOptions: CompileOptions): Valid[T] = { - apply(enqValid, enqBits, 1)(compileOptions) + def apply[T <: Data](enqValid: Bool, enqBits: T): Valid[T] = { + apply(enqValid, enqBits, 1) } /** Generate a pipe for a [[Valid]] interface @@ -150,8 +150,8 @@ object Pipe { * @param latency the number of pipeline stages * @return $returnType */ - def apply[T <: Data](enq: Valid[T], latency: Int = 1)(implicit compileOptions: CompileOptions): Valid[T] = { - apply(enq.valid, enq.bits, latency)(compileOptions) + def apply[T <: Data](enq: Valid[T], latency: Int = 1): Valid[T] = { + apply(enq.valid, enq.bits, latency) } } @@ -181,7 +181,7 @@ object Pipe { * @see [[Queue]] and the [[Queue$ Queue factory]] for actual queues * @see The [[ShiftRegister$ ShiftRegister factory]] to generate a pipe without a [[Valid]] interface */ -class Pipe[T <: Data](val gen: T, val latency: Int = 1)(implicit compileOptions: CompileOptions) extends Module { +class Pipe[T <: Data](val gen: T, val latency: Int = 1) extends Module { /** Interface for [[Pipe]]s composed of a [[Valid]] input and [[Valid]] output * @define notAQueue |
