Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #134 from ucb-bar/intermediate-dump-vlog
Browse files Browse the repository at this point in the history
Dump per macro verilog (overridden by final verilog output)
  • Loading branch information
abejgonzalez authored Oct 16, 2023
2 parents 887c1c9 + eef5efb commit 60a1be9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/scala/barstools/macros/MacroCompiler.scala
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,7 @@ object MacroCompiler extends App {
.execute(
Array.empty,
Seq(
OutputFileAnnotation(params.get(Verilog).get),
RunFirrtlTransformAnnotation(new VerilogEmitter),
EmitCircuitAnnotation(classOf[VerilogEmitter]),
FirrtlSourceAnnotation(circuit.serialize)
Expand All @@ -922,6 +923,7 @@ object MacroCompiler extends App {
.value
}
.mkString("\n")

val verilogWriter = new FileWriter(new File(params.get(Verilog).get))
verilogWriter.write(verilog)
verilogWriter.close()
Expand Down

0 comments on commit 60a1be9

Please sign in to comment.