aboutsummaryrefslogtreecommitdiff
path: root/src/test/scala/firrtlTests/execution/VerilogExecution.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/scala/firrtlTests/execution/VerilogExecution.scala')
-rw-r--r--src/test/scala/firrtlTests/execution/VerilogExecution.scala6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test/scala/firrtlTests/execution/VerilogExecution.scala b/src/test/scala/firrtlTests/execution/VerilogExecution.scala
index f80a5ee6..bf3d1461 100644
--- a/src/test/scala/firrtlTests/execution/VerilogExecution.scala
+++ b/src/test/scala/firrtlTests/execution/VerilogExecution.scala
@@ -13,11 +13,15 @@ import firrtl.options.TargetDirAnnotation
*/
trait VerilogExecution extends TestExecution {
this: SimpleExecutionTest =>
+
+ /** can be overwritten to mix-in custom annotations */
+ val customAnnotations: AnnotationSeq = Seq()
+
def runEmittedDUT(c: Circuit, testDir: File): Unit = {
// Run FIRRTL, emit Verilog file
val cAnno = FirrtlCircuitAnnotation(c)
val tdAnno = TargetDirAnnotation(testDir.getAbsolutePath)
- (new FirrtlStage).run(AnnotationSeq(Seq(cAnno, tdAnno)))
+ (new FirrtlStage).run(AnnotationSeq(Seq(cAnno, tdAnno) ++ customAnnotations))
// Copy harness resource to test directory
val harness = new File(testDir, s"top.cpp")