force Top.main's return type to Unit
This commit is contained in:
parent
5819beed64
commit
4cfa6cd9a8
@ -81,7 +81,7 @@ class Top extends Component
|
|||||||
}
|
}
|
||||||
|
|
||||||
object top_main {
|
object top_main {
|
||||||
def main(args: Array[String]) = {
|
def main(args: Array[String]): Unit = {
|
||||||
chiselMain(args.drop(1), () => Class.forName(args(0)).newInstance.asInstanceOf[Component])
|
chiselMain(args.drop(1), () => Class.forName(args(0)).newInstance.asInstanceOf[Component])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user