summaryrefslogtreecommitdiff
path: root/src/main/scala/chisel3/verilog.scala
blob: b926a15c469c737b297b9d88a545848af40b0718 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package chisel3

import chisel3.stage.ChiselStage
import firrtl.AnnotationSeq

object getVerilogString {
  def apply(gen: => RawModule): String = ChiselStage.emitVerilog(gen)
}

object emitVerilog {
  def apply(gen: => RawModule, args: Array[String] = Array.empty, annotations: AnnotationSeq = Seq.empty): Unit = {
    (new ChiselStage).emitVerilog(gen, args, annotations)
  }
}