Commit 896634de authored by Jens Korinth's avatar Jens Korinth
Browse files

ModuleBuilder: add explicit top-level-module name

parent 41fa107a
......@@ -27,7 +27,7 @@ abstract class ModuleBuilder(packagingDir: String = "packaging") {
val fm = modules filter (m => args.length == 0 || args.map(_.toLowerCase).contains(m.core.name.toLowerCase))
assert (fm.length > 0, "no matching cores found for: " + args.mkString(", "))
fm foreach { m =>
Driver.execute(chiselArgs ++ Array("--target-dir", m.core.root), m.constr)
Driver.execute(chiselArgs ++ Array("--target-dir", m.core.root, "--top-name", m.core.name), m.constr)
m.core.postBuildActions map (fn => fn.apply(m.config))
val json = "%s/%s.json".format(m.core.root, m.core.name)
m.core.write(json)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment