make sure to use AND not OR for combining finished signals
This commit is contained in:
parent
d77d0ddc5d
commit
24ef4e6dea
@ -192,7 +192,7 @@ object ValidMux {
|
|||||||
object DebugCombiner {
|
object DebugCombiner {
|
||||||
def apply(debugs: Seq[GroundTestStatus]): GroundTestStatus = {
|
def apply(debugs: Seq[GroundTestStatus]): GroundTestStatus = {
|
||||||
val out = Wire(new GroundTestStatus)
|
val out = Wire(new GroundTestStatus)
|
||||||
out.finished := debugs.map(_.finished).reduce(_ || _)
|
out.finished := debugs.map(_.finished).reduce(_ && _)
|
||||||
out.timeout := ValidMux(debugs.map(_.timeout))
|
out.timeout := ValidMux(debugs.map(_.timeout))
|
||||||
out.error := ValidMux(debugs.map(_.error))
|
out.error := ValidMux(debugs.map(_.error))
|
||||||
out
|
out
|
||||||
|
Loading…
Reference in New Issue
Block a user