diff options
Diffstat (limited to 'chiselFrontend/src/main/scala/chisel3/core/Attach.scala')
| -rw-r--r-- | chiselFrontend/src/main/scala/chisel3/core/Attach.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chiselFrontend/src/main/scala/chisel3/core/Attach.scala b/chiselFrontend/src/main/scala/chisel3/core/Attach.scala index 5e767b84..edc0a7c9 100644 --- a/chiselFrontend/src/main/scala/chisel3/core/Attach.scala +++ b/chiselFrontend/src/main/scala/chisel3/core/Attach.scala @@ -14,7 +14,7 @@ object attach { // scalastyle:ignore object.name AttachException(": Conditional attach is not allowed!") // Actual implementation - private[core] def impl(elts: Seq[Analog], contextModule: Module)(implicit sourceInfo: SourceInfo): Unit = { + private[core] def impl(elts: Seq[Analog], contextModule: UserModule)(implicit sourceInfo: SourceInfo): Unit = { if (Builder.whenDepth != 0) throw ConditionalAttachException // TODO Check that references are valid and can be attached @@ -35,7 +35,7 @@ object attach { // scalastyle:ignore object.name */ def apply(elts: Analog*)(implicit sourceInfo: SourceInfo): Unit = { try { - impl(elts, Builder.forcedModule) + impl(elts, Builder.forcedUserModule) } catch { case AttachException(message) => throwException(elts.mkString("Attaching (", ", ", s") failed @$message")) |
