Skip to content

Commit

Permalink
Merge pull request #2420 from chipsalliance/cease-assertion
Browse files Browse the repository at this point in the history
Add assertion on CEASE line
  • Loading branch information
mwachs5 authored Apr 27, 2020
2 parents 8acb224 + 2c9e91b commit e1a5b25
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/scala/tile/Interrupts.scala
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,13 @@ trait SourcesExternalNotifications { this: BaseTile =>
saturated
}
val (cease, _) = ceaseNode.out(0)
cease(0) := could_cease.map(waitForQuiescence(_)).getOrElse(false.B)
cease(0) := could_cease.map{ c =>
val cease = (waitForQuiescence(c))
// Test-Only Code --
val prev_cease = RegNext(c, false.B)
assert(!(prev_cease & !c), "CEASE line can not glitch once raised")
cease
}.getOrElse(false.B)
}

// Report when the tile is waiting for an interrupt
Expand Down

0 comments on commit e1a5b25

Please sign in to comment.