Print the firrtl exception if we get one

Fixes #67
This commit is contained in:
Colin Schmidt
2019-10-24 14:55:03 -07:00
committed by GitHub
parent 26096e07f6
commit c96a5e5f44

View File

@@ -218,8 +218,8 @@ sealed trait GenerateTopAndHarnessApp extends LazyLogging { this: App =>
case x: FirrtlExecutionSuccess =>
dump(x, tapeoutOptions.topFir, tapeoutOptions.topAnnoOut)
x.circuitState.circuit.modules.collect{ case e: ExtModule => e }
case _ =>
throw new Exception("executeTop failed on illegal FIRRTL input!")
case e =>
throw new Exception(s"executeTop failed while executing FIRRTL!\n${e}")
}
}
@@ -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 _ =>
case e => throw new Exception(s"executeHarness failed while executing FIRRTL!\n${e}")
}
}
}