Fix InFlightTable lookup assert

This commit is contained in:
Hansung Kim
2024-01-18 01:07:49 -08:00
parent e96836c190
commit eeb92da8a1

View File

@@ -1317,14 +1317,12 @@ class InFlightTable(
// Lookup logic
io.lookup.valid := table(io.lookupSourceId).valid
io.lookup.bits := table(io.lookupSourceId).bits
// under normal circumstances, every lookup to the table should succeed
// as long as the request gets recorded earlier than the response
when(io.lookup.ready) {
assert(table(io.lookupSourceId).valid === true.B,
"table lookup with a valid sourceId failed")
}
// Dequeue as soon as lookup succeeds
when(io.lookup.fire) {
// every lookup to the table should succeed as the request should have
// gotten recorded earlier than the response
assert(table(io.lookupSourceId).valid === true.B,
"table lookup with a valid sourceId failed")
table(io.lookupSourceId).valid := false.B
}
assert(