ucb-bar / chisel2-deprecated

chisel.eecs.berkeley.edu
389 stars 89 forks source link

java.lang.UnsupportedOperationException: empty.init after e8240d2 - improve verilog code generation #545

Closed ucbjrl closed 9 years ago

ucbjrl commented 9 years ago

Modules with no un-commented ports trigger the following crash:

[error] (run-main-0) java.lang.UnsupportedOperationException: empty.init
java.lang.UnsupportedOperationException: empty.init
    at scala.collection.TraversableLike$class.init(TraversableLike.scala:475)
    at scala.collection.mutable.ArrayBuffer.scala$collection$IndexedSeqOptimized$$super$init(ArrayBuffer.scala:47)
    at scala.collection.IndexedSeqOptimized$class.init(IndexedSeqOptimized.scala:129)
    at scala.collection.mutable.ArrayBuffer.init(ArrayBuffer.scala:47)
    at Chisel.VerilogBackend.emitDef(Verilog.scala:205)
    at Chisel.VerilogBackend$$anonfun$emitDefs$2.apply(Verilog.scala:461)
    at Chisel.VerilogBackend$$anonfun$emitDefs$2.apply(Verilog.scala:460)
    at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
 ~
ucbjrl commented 9 years ago

Closed by #546