Fix cost metric for non Compiler libs

Also a small fix from reviewer
This commit is contained in:
Colin Schmidt
2019-03-17 14:05:51 -07:00
committed by Colin Schmidt
parent 6cdf978a6d
commit 44e97826d4
2 changed files with 10 additions and 2 deletions

View File

@@ -569,7 +569,6 @@ class MacroCompilerPass(mems: Option[Seq[Macro]],
val memMask = mem.ports map (_.maskGran) find (_.isDefined) map (_.get)
val libMask = group.ports map (_.maskGran) find (_.isDefined) map (_.get)
(memMask, libMask) match {
case (_, Some(1)) => true
case (None, _) => true
case (Some(_), None) => false
case (Some(m), Some(l)) => l <= m //Ignore memories that don't have nice mask