aboutsummaryrefslogtreecommitdiff
path: root/src/test/scala/firrtlTests/transforms
diff options
context:
space:
mode:
authorJack Koenig2017-06-29 14:20:09 -0700
committerGitHub2017-06-29 14:20:09 -0700
commit905cac96053caf4b6c87ac0b9c8addf313d1085c (patch)
tree7d0bcf384f63e0176acdd70f9524369bb5bb4ce0 /src/test/scala/firrtlTests/transforms
parent8eb69dd91e58915f8dad5e42da0a3fe686c628d8 (diff)
parenta0aeafa3d591f9bcc14eca6d8a41eb2155f1b5b0 (diff)
Merge pull request #617 from freechipsproject/const-prop-regs
Improvements to Constant Propagation and Testing
Diffstat (limited to 'src/test/scala/firrtlTests/transforms')
-rw-r--r--src/test/scala/firrtlTests/transforms/BlacklBoxSourceHelperSpec.scala6
-rw-r--r--src/test/scala/firrtlTests/transforms/DedupTests.scala12
2 files changed, 7 insertions, 11 deletions
diff --git a/src/test/scala/firrtlTests/transforms/BlacklBoxSourceHelperSpec.scala b/src/test/scala/firrtlTests/transforms/BlacklBoxSourceHelperSpec.scala
index 8cd51b2a..bf294fe9 100644
--- a/src/test/scala/firrtlTests/transforms/BlacklBoxSourceHelperSpec.scala
+++ b/src/test/scala/firrtlTests/transforms/BlacklBoxSourceHelperSpec.scala
@@ -78,12 +78,12 @@ class BlacklBoxSourceHelperTransformSpec extends LowTransformSpec {
"annotated external modules" should "appear in output directory" in {
- val aMap = AnnotationMap(Seq(
+ val annos = Seq(
Annotation(moduleName, classOf[BlackBoxSourceHelper], BlackBoxTargetDir("test_run_dir").serialize),
Annotation(moduleName, classOf[BlackBoxSourceHelper], BlackBoxResource("/blackboxes/AdderExtModule.v").serialize)
- ))
+ )
- execute(aMap, input, output)
+ execute(input, output, annos)
new java.io.File("test_run_dir/AdderExtModule.v").exists should be (true)
new java.io.File(s"test_run_dir/${BlackBoxSourceHelper.FileListName}").exists should be (true)
diff --git a/src/test/scala/firrtlTests/transforms/DedupTests.scala b/src/test/scala/firrtlTests/transforms/DedupTests.scala
index 7148dd11..74c4b4e7 100644
--- a/src/test/scala/firrtlTests/transforms/DedupTests.scala
+++ b/src/test/scala/firrtlTests/transforms/DedupTests.scala
@@ -46,8 +46,7 @@ class DedupModuleTests extends HighTransformSpec {
| output x: UInt<1>
| x <= UInt(1)
""".stripMargin
- val aMap = new AnnotationMap(Nil)
- execute(aMap, input, check)
+ execute(input, check, Seq.empty)
}
"The module A and B" should "be deduped" in {
val input =
@@ -83,8 +82,7 @@ class DedupModuleTests extends HighTransformSpec {
| output x: UInt<1>
| x <= UInt(1)
""".stripMargin
- val aMap = new AnnotationMap(Nil)
- execute(aMap, input, check)
+ execute(input, check, Seq.empty)
}
"The module A and B with comments" should "be deduped" in {
val input =
@@ -120,8 +118,7 @@ class DedupModuleTests extends HighTransformSpec {
| output x: UInt<1>
| x <= UInt(1)
""".stripMargin
- val aMap = new AnnotationMap(Nil)
- execute(aMap, input, check)
+ execute(input, check, Seq.empty)
}
"The module B, but not A, with comments" should "be deduped if not annotated" in {
val input =
@@ -148,8 +145,7 @@ class DedupModuleTests extends HighTransformSpec {
| output x: UInt<1> @[xx 1:1]
| x <= UInt(1)
""".stripMargin
- val aMap = new AnnotationMap(Seq(NoDedupAnnotation(ModuleName("A", CircuitName("Top")))))
- execute(aMap, input, check)
+ execute(input, check, Seq(dontDedup("A")))
}
}