blob: 0151a288b35e50dcd77a4e1897058dd63665d94e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// See LICENSE for license details.
package Chisel
import java.io.File
@deprecated("chiselMain doesn't exist in Chisel3", "3.0") object chiselMain {
def apply[T <: Module](args: Array[String], gen: () => T): Unit =
Predef.assert(false)
def run[T <: Module] (args: Array[String], gen: () => T): Unit = {
def circuit = Driver.elaborate(gen)
def output_file = new File(Driver.targetDir + "/" + circuit.name + ".fir")
Driver.parseArgs(args)
Driver.dumpFirrtl(circuit, Option(output_file))
}
}
|