diff --git a/src/main/scala/firrtl/backends/experimental/rtlil/RtlilEmitter.scala b/src/main/scala/firrtl/backends/experimental/rtlil/RtlilEmitter.scala index 5c78e8584a..2e1322c954 100644 --- a/src/main/scala/firrtl/backends/experimental/rtlil/RtlilEmitter.scala +++ b/src/main/scala/firrtl/backends/experimental/rtlil/RtlilEmitter.scala @@ -756,7 +756,7 @@ private[firrtl] class RtlilEmitter extends SeqTransform with Emitter with Depend } case MemoryScalarInit(value) => - for (addr <- (0 until depth.intValue())) { + for (addr <- (0 until depth.intValue)) { initials ++= emit_cell( i, "$meminit_v2",