WEBVTT

1
00:00:00.250 --> 00:00:02.350
Start with a standalone buffer.

2
00:00:03.330 --> 00:00:05.650
The testbench offers result A.

3
00:00:06.510 --> 00:00:09.350
The receiver then stalls for three cycles.

4
00:00:10.190 --> 00:00:13.590
The buffer holds A until the receiver
resumes.

5
00:00:14.790 --> 00:00:19.070
A result may be computed long before the
receiver takes it.

6
00:00:20.042 --> 00:00:23.402
Valid means the source has a result
available.

7
00:00:24.342 --> 00:00:28.422
Ready means the receiver can take it on
this rising edge.

8
00:00:29.222 --> 00:00:30.642
Sample both together.

9
00:00:31.662 --> 00:00:37.442
When both are high and reset is inactive,
record exactly one transfer.

10
00:00:38.417 --> 00:00:42.557
No output transfers occur at edges two
through four.

11
00:00:43.237 --> 00:00:48.377
The buffer keeps A available, while the
source already presents B.

12
00:00:49.277 --> 00:00:53.057
Since the buffer is full, B must wait at
the source.

13
00:00:54.097 --> 00:00:59.997
The source can assert valid before ready
and hold its data until acceptance.

14
00:01:01.250 --> 00:01:03.930
An empty buffer can receive a result.

15
00:01:04.690 --> 00:01:08.150
Its register makes the first edge receive
only.

16
00:01:09.370 --> 00:01:13.350
A full buffer holds its contents when the
receiver stalls.

17
00:01:14.370 --> 00:01:18.330
If the receiver takes the old result, the
same rising

18
00:01:18.330 --> 00:01:22.450
edge can also accept the next result into
the slot.

19
00:01:23.500 --> 00:01:26.760
At edge five, the receiver is ready again.

20
00:01:27.740 --> 00:01:32.340
Before the edge, the buffer contains A and
the source presents B.

21
00:01:33.100 --> 00:01:36.720
Log A as the output and B as the input.

22
00:01:37.600 --> 00:01:41.320
After the nonblocking update, the buffer
holds B.

23
00:01:42.208 --> 00:01:44.388
Replay the same stall.

24
00:01:45.368 --> 00:01:49.988
The correct buffer holds A and delivers it
when ready returns.

25
00:01:50.968 --> 00:01:57.488
The overwrite bug replaces A with B during
the stall and delivers the wrong word.

26
00:01:58.408 --> 00:02:02.628
A one-cycle valid pulse drops before
acceptance,

27
00:02:03.188 --> 00:02:05.728
so edge five delivers no result.

28
00:02:06.875 --> 00:02:13.195
Input ready can use free space and the
receiver's ability to take the old word.

29
00:02:14.155 --> 00:02:16.755
Output valid comes from stored state.

30
00:02:18.195 --> 00:02:21.455
When modules are connected, combinational

31
00:02:21.455 --> 00:02:24.675
paths can depend on each other and form a
loop.

32
00:02:25.375 --> 00:02:27.775
Inspect the complete connected path.

33
00:02:28.875 --> 00:02:31.415
Edge seven accepts C.

34
00:02:32.135 --> 00:02:37.715
Reset at the next edge suppresses transfer
even though the receiver is ready.

35
00:02:38.615 --> 00:02:44.015
The buffer and checker both discard the
pending result from the previous epoch.

36
00:02:44.515 --> 00:02:49.655
After reset, the buffer accepts D and then
delivers D.

37
00:02:50.542 --> 00:02:55.862
Outputs A, B, and D mark delivery to the
receiver.

38
00:02:56.822 --> 00:03:01.322
If the collector feeds this buffer, input
acceptance lets

39
00:03:01.322 --> 00:03:04.762
it leave report because the buffer has
taken ownership.

40
00:03:05.842 --> 00:03:08.922
Output acceptance marks downstream
delivery.

41
00:03:09.362 --> 00:03:13.222
An always-ready test can hide stall bugs.

