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

Dump per macro verilog (overridden by final verilog output) #134

Merged
merged 1 commit into from
Oct 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading