From 668db17e269a783e5f0028a545d1c8c47e36d8f4 Mon Sep 17 00:00:00 2001 From: Jerry Zhao Date: Tue, 11 Feb 2020 17:06:25 -0800 Subject: Support MemConfs with very deep memories (#1367) Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- src/main/scala/firrtl/passes/memlib/MemConf.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/scala/firrtl/passes/memlib/MemConf.scala b/src/main/scala/firrtl/passes/memlib/MemConf.scala index 75e6b910..4d6ba2c6 100644 --- a/src/main/scala/firrtl/passes/memlib/MemConf.scala +++ b/src/main/scala/firrtl/passes/memlib/MemConf.scala @@ -50,7 +50,7 @@ object MemConf { def fromString(s: String): Seq[MemConf] = { s.split("\n").toSeq.map(_ match { - case MemConf.regex(name, depth, width, ports, maskGran) => Some(MemConf(name, depth.toInt, width.toInt, MemPort.fromString(ports), Option(maskGran).map(_.toInt))) + case MemConf.regex(name, depth, width, ports, maskGran) => Some(MemConf(name, BigInt(depth), width.toInt, MemPort.fromString(ports), Option(maskGran).map(_.toInt))) case "" => None case _ => throw new Exception(s"Error parsing MemConf string : ${s}") }).flatten -- cgit v1.2.3