WEBVTT

1
00:00:00.250 --> 00:00:03.830
The collector starts by waiting for a
start command.

2
00:00:04.890 --> 00:00:09.070
After it accepts the command, it collects
four samples.

3
00:00:10.070 --> 00:00:13.530
Then it presents the report and waits for
acceptance.

4
00:00:14.790 --> 00:00:17.770
The state records the stage of the job.

5
00:00:18.850 --> 00:00:23.350
The event on each arrow tells the machine
when to move on.

6
00:00:24.500 --> 00:00:28.660
In idle, only a start command advances the
state.

7
00:00:29.520 --> 00:00:33.640
In collect, the fourth accepted sample
advances it.

8
00:00:34.440 --> 00:00:37.840
In report, acceptance returns it to idle.

9
00:00:39.060 --> 00:00:40.780
Otherwise each state holds.

10
00:00:41.820 --> 00:00:46.520
Reset has priority and returns every legal
state to idle.

11
00:00:47.500 --> 00:00:50.400
The state register holds the current
state.

12
00:00:51.200 --> 00:00:54.860
Combinational logic reads it along with
the count

13
00:00:54.860 --> 00:00:58.060
and inputs to choose the next state.

14
00:00:59.400 --> 00:01:02.560
On the last sample it chooses report.

15
00:01:03.860 --> 00:01:07.900
The register stores that selection when
the rising edge updates it.

16
00:01:08.917 --> 00:01:11.537
The first edge accepts start.

17
00:01:12.417 --> 00:01:15.057
Any sample at that edge is ignored.

18
00:01:16.237 --> 00:01:21.237
The next six edges replay the work
sequence with idle cycles.

19
00:01:22.417 --> 00:01:27.597
At edge seven, the old count is three and
another sample is accepted.

20
00:01:28.577 --> 00:01:31.917
That edge updates both the count and the
state.

21
00:01:33.000 --> 00:01:35.940
After collection, the report is available.

22
00:01:36.840 --> 00:01:42.800
At edges eight and nine, acceptance is
low, so the state stays in report.

23
00:01:43.720 --> 00:01:48.140
Acceptance arrives at edge ten and returns
the state to idle.

24
00:01:49.040 --> 00:01:53.920
The count stays at four until the next
accepted start clears it.

25
00:01:54.917 --> 00:01:58.097
Report valid depends on the current state.

26
00:01:58.897 --> 00:02:01.797
It stays high while the state is report.

27
00:02:02.777 --> 00:02:08.177
To decide if delivery happened, check the
acceptance event at the edge.

28
00:02:09.257 --> 00:02:15.157
At edges eight and nine the report is
available, but acceptance is low.

29
00:02:16.250 --> 00:02:19.270
Test each transition and each hold.

30
00:02:20.110 --> 00:02:24.670
An extra start during collection leaves
the job in progress.

31
00:02:25.730 --> 00:02:29.630
Reset during report returns the state to
idle.

32
00:02:30.450 --> 00:02:36.050
Also exercise the RTL recovery branch
using an invalid code.

33
00:02:36.890 --> 00:02:42.790
Inspect the synthesized circuit before
making claims about that recovery path.

34
00:02:43.833 --> 00:02:48.433
For now the state machine receives a
defined acceptance event.

35
00:02:49.353 --> 00:02:53.513
A busy receiver may leave the report
waiting for several cycles.

36
00:02:54.533 --> 00:02:59.333
The next lesson uses an availability
signal and a readiness signal

37
00:02:59.333 --> 00:03:03.873
to determine which rising edge actually
delivers the result.

