24 / 24 · Check
Final check: lossless stalls and drain
Combine arithmetic, outstanding accounting, and completion conditions.
Lessons are free to read. Enroll to save your learning progress.
The capstone has accepted eight inputs and delivered five. FIFO count is one and both stages are valid. There is no reset or cancellation. From now on no inputs arrive and the sink stays ready.
What are the correct accounting and completion conditions?
8-5=3 matches occupancy 1+1+1=3. Under always-ready drain, deliver the three remaining items in order and empty the FIFO, both stages, and reference queue. Numeric zero can still be a valid result.
✓ Check completed