diff options
| author | chick | 2016-08-24 17:09:41 -0700 |
|---|---|---|
| committer | chick | 2016-08-24 17:09:41 -0700 |
| commit | f5e9a6c6e55ba19a7c1f2353d0207189062db1c9 (patch) | |
| tree | 75a4ec69fc1935643f8fa4689d16422db1ecfd5f /src/test | |
| parent | a177f40f1ff2482ba268a27e0af02b57713e781a (diff) | |
Per Chisel meeting.
signalName -> instanceName
SignalId -> InstanceId
Based on Stephen's comments on PR
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/scala/chiselTests/AnnotatingExample.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/scala/chiselTests/AnnotatingExample.scala b/src/test/scala/chiselTests/AnnotatingExample.scala index a252309d..c84edf86 100644 --- a/src/test/scala/chiselTests/AnnotatingExample.scala +++ b/src/test/scala/chiselTests/AnnotatingExample.scala @@ -4,7 +4,7 @@ package chiselTests import chisel3._ import chisel3.core.Module -import chisel3.internal.SignalId +import chisel3.internal.InstanceId import chisel3.testers.BasicTester import org.scalatest._ @@ -96,17 +96,17 @@ case object AllRefs extends AnnotationScope case object JustThisRef extends AnnotationScope object AnnotationKey { - def apply(component: SignalId): AnnotationKey = { + def apply(component: InstanceId): AnnotationKey = { AnnotationKey(component, AllRefs) } } -case class AnnotationKey(val component: SignalId, scope: AnnotationScope) { +case class AnnotationKey(val component: InstanceId, scope: AnnotationScope) { override def toString: String = { scope match { case JustThisRef => s"${component.pathName}" case AllRefs => - s"${component.parentModName}.${component.signalName}" + s"${component.parentModName}.${component.instanceName}" case _ => s"${component.toString}_unknown_scope" } |
