From 8d2fff4eff3ba0f92437b290985b35afbb0ed565 Mon Sep 17 00:00:00 2001 From: ducky Date: Wed, 1 Feb 2017 16:07:09 -0800 Subject: Name all the things --- src/main/scala/chisel3/util/Valid.scala | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main/scala/chisel3/util/Valid.scala') diff --git a/src/main/scala/chisel3/util/Valid.scala b/src/main/scala/chisel3/util/Valid.scala index 0229b7f8..0bfe7cb3 100644 --- a/src/main/scala/chisel3/util/Valid.scala +++ b/src/main/scala/chisel3/util/Valid.scala @@ -6,6 +6,8 @@ package chisel3.util import chisel3._ +import chisel3.internal.naming.chiselName // can't use chisel3_ version because of compile order + // TODO: remove this once we have CompileOptions threaded through the macro system. import chisel3.core.ExplicitCompileOptions.NotStrict @@ -34,6 +36,7 @@ object Valid { */ object Pipe { + @chiselName def apply[T <: Data](enqValid: Bool, enqBits: T, latency: Int): Valid[T] = { if (latency == 0) { val out = Wire(Valid(enqBits)) -- cgit v1.2.3