diff options
| author | chick | 2016-09-25 18:23:07 -0700 |
|---|---|---|
| committer | jackkoenig | 2016-09-27 13:14:58 -0700 |
| commit | 3f8e1536ff2f4b5090cd2c074ada5d7a413d169f (patch) | |
| tree | c327771170e4438661b4d654e93960b92b31b023 /src/main/scala/firrtl/passes/AnnotateValidMemConfigs.scala | |
| parent | 39f06c4cff41030e7802c7b371123e040d9c447b (diff) | |
remove unnecessary parentheses
Diffstat (limited to 'src/main/scala/firrtl/passes/AnnotateValidMemConfigs.scala')
| -rw-r--r-- | src/main/scala/firrtl/passes/AnnotateValidMemConfigs.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/scala/firrtl/passes/AnnotateValidMemConfigs.scala b/src/main/scala/firrtl/passes/AnnotateValidMemConfigs.scala index d229aaf3..e77955ed 100644 --- a/src/main/scala/firrtl/passes/AnnotateValidMemConfigs.scala +++ b/src/main/scala/firrtl/passes/AnnotateValidMemConfigs.scala @@ -193,7 +193,7 @@ case class SRAMCompiler( val squarestAspectRatio = validMinConfigsSquareness.unzip._1.min val validConfig = validMinConfigsSquareness(squarestAspectRatio) val validRules = defaultSearchOrdering filter (r => - (validConfig.width <= r.getValidWidths.max && validConfig.depth <= r.getValidDepths.max)) + validConfig.width <= r.getValidWidths.max && validConfig.depth <= r.getValidDepths.max) // TODO: don't just take first option // TODO: More optimal split if particular value is in range but not supported // TODO: Support up to 2 read ports, 2 write ports; should be power of 2? @@ -271,7 +271,7 @@ class AnnotateValidMemConfigs(reader: Option[YamlFileReader]) extends Pass { def updateStmts(s: Statement): Statement = s match { case m: DefMemory if containsInfo(m.info, "useMacro") => sramCompilers match { case None => m - case Some(compiler) if (m.readwriters.length == 1) => + case Some(compiler) if m.readwriters.length == 1 => compiler.sp match { case None => error("Design needs RW port memory compiler!") case Some(p) => p append m @@ -285,5 +285,5 @@ class AnnotateValidMemConfigs(reader: Option[YamlFileReader]) extends Pass { case s => s map updateStmts } - def run(c: Circuit) = c copy (modules = (c.modules map (_ map updateStmts))) + def run(c: Circuit) = c copy (modules = c.modules map (_ map updateStmts)) } |
