aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/scala/firrtl/annotations/LoadMemoryAnnotation.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/scala/firrtl/annotations/LoadMemoryAnnotation.scala b/src/main/scala/firrtl/annotations/LoadMemoryAnnotation.scala
index a5ba22dd..52022f87 100644
--- a/src/main/scala/firrtl/annotations/LoadMemoryAnnotation.scala
+++ b/src/main/scala/firrtl/annotations/LoadMemoryAnnotation.scala
@@ -31,6 +31,8 @@ case class LoadMemoryAnnotation(
throw new Exception(s"empty filename not allowed in LoadMemoryAnnotation")
case name :: Nil =>
(name, "")
+ case "" :: name :: Nil => // this case handles a filename that begins with dot and has no suffix
+ ("." + name, "")
case other =>
(other.reverse.tail.reverse.mkString("."), "." + other.last)
}