00:00:00.000 One job has three stages The collector starts by waiting for a start command. After it accepts the command, it collects four samples. Then it presents the report and waits for acceptance. The state records the stage of the job. The event on each arrow tells the machine when to move on. 00:00:24.250 Define both advance and hold for each state In idle, only a start command advances the state. In collect, the fourth accepted sample advances it. In report, acceptance returns it to idle. Otherwise each state holds. Reset has priority and returns every legal state to idle. 00:00:47.250 Combinational logic decides the next state The state register holds the current state. Combinational logic reads it along with the count and inputs to choose the next state. On the last sample it chooses report. The register stores that selection when the rising edge updates it. 00:01:08.667 The fourth accepted sample enters REPORT The first edge accepts start. Any sample at that edge is ignored. The next six edges replay the work sequence with idle cycles. At edge seven, the old count is three and another sample is accepted. That edge updates both the count and the state. 00:01:32.750 A completed report can wait for acceptance After collection, the report is available. At edges eight and nine, acceptance is low, so the state stays in report. Acceptance arrives at edge ten and returns the state to idle. The count stays at four until the next accepted start clears it. 00:01:54.667 Report availability and acceptance are separate events Report valid depends on the current state. It stays high while the state is report. To decide if delivery happened, check the acceptance event at the edge. At edges eight and nine the report is available, but acceptance is low. 00:02:16.000 Exercise holds, transitions and reset priority Test each transition and each hold. An extra start during collection leaves the job in progress. Reset during report returns the state to idle. Also exercise the RTL recovery branch using an invalid code. Inspect the synthesized circuit before making claims about that recovery path. 00:02:43.583 Connect report acceptance to the interface For now the state machine receives a defined acceptance event. A busy receiver may leave the report waiting for several cycles. The next lesson uses an availability signal and a readiness signal to determine which rising edge actually delivers the result.