Skip to content

Commit

Permalink
fixup! Add dumpAnnotations method to Driver
Browse files Browse the repository at this point in the history
Signed-off-by: Schuyler Eldridge <schuyler.eldridge@ibm.com>
  • Loading branch information
seldridge committed Sep 7, 2018
1 parent 7bab605 commit 305dd14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/chisel3/Driver.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 305dd14

Please sign in to comment.