From 305dd14958e5e712ac92024a8b4d1e0634bb656f Mon Sep 17 00:00:00 2001 From: Schuyler Eldridge Date: Fri, 7 Sep 2018 15:29:57 -0400 Subject: [PATCH] fixup! Add dumpAnnotations method to Driver Signed-off-by: Schuyler Eldridge --- src/main/scala/chisel3/Driver.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/chisel3/Driver.scala b/src/main/scala/chisel3/Driver.scala index 9876c495692..2006a6c79b1 100644 --- a/src/main/scala/chisel3/Driver.scala +++ b/src/main/scala/chisel3/Driver.scala @@ -134,7 +134,7 @@ object Driver extends BackendCompilationUtilities { * @param optName An optional filename (will use s"${ir.name}.json" otherwise) */ def dumpAnnotations(ir: Circuit, optName: Option[File]): File = { - val f = optName.getOrElse(new File(ir.name + ".json")) + val f = optName.getOrElse(new File(ir.name + ".anno.json")) val w = new FileWriter(f) w.write(JsonProtocol.serialize(ir.annotations.map(_.toFirrtl))) w.close()