Change cost to double from BigInt and fix default metric
I don't think it was adding anything and now we can get rid of the weird +1/-1
This commit is contained in:
committed by
Colin Schmidt
parent
45278a6de0
commit
a0510e6664
@@ -565,7 +565,7 @@ class MacroCompilerPass(mems: Option[Seq[Macro]],
|
||||
|
||||
// Try to compile mem against each lib in libs, keeping track of the
|
||||
// best compiled version, external lib used, and cost.
|
||||
val (best, cost) = (libs foldLeft (None: Option[(Module, ExtModule)], BigInt(Long.MaxValue))){
|
||||
val (best, cost) = (fullLibs foldLeft (None: Option[(Module, ExtModule)], Double.MaxValue)){
|
||||
case ((best, cost), lib) if mem.src.ports.size != lib.src.ports.size =>
|
||||
/* Palmer: FIXME: This just assumes the Chisel and vendor ports are in the same
|
||||
* order, but I'm starting with what actually gets generated. */
|
||||
|
||||
Reference in New Issue
Block a user