Match inner variables

This commit is contained in:
Abraham Gonzalez
2019-11-07 10:17:24 -08:00
committed by GitHub
parent c1004790cc
commit 1e114d0355

View File

@@ -219,7 +219,7 @@ sealed trait GenerateTopAndHarnessApp extends LazyLogging { this: App =>
dump(x, tapeoutOptions.topFir, tapeoutOptions.topAnnoOut)
x.circuitState.circuit.modules.collect{ case e: ExtModule => e }
case x =>
throw new Exception(s"executeTop failed while executing FIRRTL!\n${e}")
throw new Exception(s"executeTop failed while executing FIRRTL!\n${x}")
}
}
@@ -243,7 +243,7 @@ sealed trait GenerateTopAndHarnessApp extends LazyLogging { this: App =>
val harnessResult = firrtl.Driver.execute(optionsManager)
harnessResult match {
case x: FirrtlExecutionSuccess => dump(x, tapeoutOptions.harnessFir, tapeoutOptions.harnessAnnoOut)
case x => throw new Exception(s"executeHarness failed while executing FIRRTL!\n${e}")
case x => throw new Exception(s"executeHarness failed while executing FIRRTL!\n${x}")
}
}
}