GeneratorUtils: support to elaborate a RawModule
This commit is contained in:
parent
d316aeb275
commit
4059d9417f
@ -3,6 +3,7 @@
|
|||||||
package util
|
package util
|
||||||
|
|
||||||
import Chisel._
|
import Chisel._
|
||||||
|
import chisel3.experimental.{RawModule}
|
||||||
import config._
|
import config._
|
||||||
import diplomacy.LazyModule
|
import diplomacy.LazyModule
|
||||||
import java.io.{File, FileWriter}
|
import java.io.{File, FileWriter}
|
||||||
@ -45,7 +46,7 @@ trait HasGeneratorUtilities {
|
|||||||
Class.forName(names.fullTopModuleClass)
|
Class.forName(names.fullTopModuleClass)
|
||||||
.getConstructor(classOf[Parameters])
|
.getConstructor(classOf[Parameters])
|
||||||
.newInstance(params)
|
.newInstance(params)
|
||||||
.asInstanceOf[Module]
|
.asInstanceOf[RawModule]
|
||||||
|
|
||||||
Driver.elaborate(gen)
|
Driver.elaborate(gen)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user