aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJerry Zhao2020-02-11 17:06:25 -0800
committerGitHub2020-02-12 01:06:25 +0000
commit668db17e269a783e5f0028a545d1c8c47e36d8f4 (patch)
tree8446c739ba06d4b815da150a5d8a70f8d4568901 /src
parent1937cfd58c070774e53e5bffc22bac779f338cdd (diff)
Support MemConfs with very deep memories (#1367)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Diffstat (limited to 'src')
-rw-r--r--src/main/scala/firrtl/passes/memlib/MemConf.scala2
1 files changed, 1 insertions, 1 deletions
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