1
0

Remove Option from success flag in coreplex; just use a sane default.

This commit is contained in:
Henry Cook
2016-09-15 12:19:22 -07:00
parent 9e2b0aad65
commit c6f252a913
3 changed files with 9 additions and 8 deletions

View File

@ -136,12 +136,12 @@ class SimDTM(implicit p: Parameters) extends BlackBox {
}
def connect(tbclk: Clock, tbreset: Bool, dutio: uncore.devices.DebugBusIO,
dutsuccess: Option[Bool], tbsuccess: Bool) = {
dutsuccess: Bool, tbsuccess: Bool) = {
io.clk := tbclk
io.reset := tbreset
dutio <> io.debug
tbsuccess := dutsuccess.getOrElse(io.exit === 1)
tbsuccess := dutsuccess || io.exit === 1
when (io.exit >= 2) {
printf("*** FAILED *** (exit code = %d)\n", io.exit >> 1)
stop(1)