diff --git a/rocket/src/main/scala/top.scala b/rocket/src/main/scala/top.scala index 5ee443b6..4ebb94d8 100644 --- a/rocket/src/main/scala/top.scala +++ b/rocket/src/main/scala/top.scala @@ -81,7 +81,7 @@ class Top extends Component } 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]) } }