From 685790b2c6c7ff8ddfd34f2f84572a985d3416cc Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Fri, 11 Jan 2019 15:06:29 -0800 Subject: Add test for chiselNaming of Seq[Data] --- src/test/scala/chiselTests/NamingAnnotationTest.scala | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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 } -- cgit v1.2.3