summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Waterman2019-01-11 15:06:29 -0800
committeredwardcwang2019-01-11 15:37:29 -0800
commit685790b2c6c7ff8ddfd34f2f84572a985d3416cc (patch)
treecc830dedfd7dab9d6f9959eb9835eebdf6e2be74 /src
parentaa4983bf42271f6bd97765d1b87e7072ff00a031 (diff)
Add test for chiselNaming of Seq[Data]
Diffstat (limited to 'src')
-rw-r--r--src/test/scala/chiselTests/NamingAnnotationTest.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/scala/chiselTests/NamingAnnotationTest.scala b/src/test/scala/chiselTests/NamingAnnotationTest.scala
index 07962aaf..ec0874fc 100644
--- a/src/test/scala/chiselTests/NamingAnnotationTest.scala
+++ b/src/test/scala/chiselTests/NamingAnnotationTest.scala
@@ -67,6 +67,11 @@ class NamedModule extends NamedModuleTester {
val myA = expectName(1.U + myNested, "test_myA")
val myB = expectName(myA +& 2.U, "test_myB")
val myC = expectName(myB +& 3.U, "test_myC")
+
+ val myD = Seq(myC +& 1.U, myC +& 2.U)
+ for ((d, i) <- myD.zipWithIndex)
+ expectName(d, s"test_myD_$i")
+
myC +& 4.U // named at enclosing scope
}