WEBVTT

1
00:00:00.000 --> 00:00:06.400
A controller must observe four completed
transfers before releasing a result.

2
00:00:06.400 --> 00:00:11.300
Its up counter says four and its down counter
says zero.

3
00:00:11.300 --> 00:00:13.640
Their sum is still four.

4
00:00:13.640 --> 00:00:16.720
Only three transfers actually occurred.

5
00:00:16.720 --> 00:00:20.280
A shared enable has advanced both counters
together.

6
00:00:20.880 --> 00:00:26.680
A cross-counter stores progress in opposite
directions.

7
00:00:26.680 --> 00:00:33.460
Our three-bit registers start at up=0 and down=4.

8
00:00:33.460 --> 00:00:39.220
On each counted step, up increases and down
decreases.

9
00:00:39.220 --> 00:00:44.740
The non-modular sum up+down must remain four.

10
00:00:44.740 --> 00:00:49.420
We use a widened sum to avoid hiding overflow
through truncation.

11
00:00:49.420 --> 00:00:55.000
An isolated change to up usually breaks the sum.

12
00:00:55.000 --> 00:01:00.060
A detector can block completion immediately and
remember the error.

13
00:01:00.060 --> 00:01:06.880
However, a relation that remains true cannot
reveal how the pair reached its values.

14
00:01:06.880 --> 00:01:11.300
A coordinated wrong update is invisible to this
particular check.

15
00:01:12.460 --> 00:01:15.460
OpenTitan publishes a cross-counter primitive.

16
00:01:15.460 --> 00:01:23.020
SYNFI discusses shared increment and clear
signals as boundaries of counter protection.

17
00:01:23.020 --> 00:01:29.560
Our small schedule below illustrates that
mechanism; we did not run SYNFI or reproduce its

18
00:01:29.560 --> 00:01:30.560
netlist experiments.

19
00:01:31.190 --> 00:01:38.290
A genuine step means a transfer was accepted:
valid and ready were both true at the agreed

20
00:01:38.290 --> 00:01:40.010
rising edge.

21
00:01:40.010 --> 00:01:44.050
Waiting through a stall does not complete work.

22
00:01:44.050 --> 00:01:50.530
The independent reference increments only on
those genuine handshakes and remains outside the

23
00:01:50.530 --> 00:01:51.050
fault scope.

24
00:01:51.950 --> 00:01:58.850
In the negative schedule, genuine handshakes
occur at edges 1, 3 and 4.

25
00:01:58.850 --> 00:02:01.190
Edge 2 is idle.

26
00:02:01.190 --> 00:02:09.330
One false common enable after edge 2 advances up
and down despite that idle cycle.

27
00:02:09.330 --> 00:02:15.970
After edge 4, the DUT pair is 4/0 while reference
progress is three.

28
00:02:16.970 --> 00:02:20.270
The result request arrives at edge 5.

29
00:02:20.270 --> 00:02:23.210
Sum-only completion permits it.

30
00:02:23.210 --> 00:02:29.690
The authorization reference requires four genuine
transfers and therefore marks that commit as

31
00:02:29.690 --> 00:02:31.270
unauthorized.

32
00:02:31.270 --> 00:02:37.250
The checker correctly reports no sum error; it is
blind to missing work, not broken arithmetic.

33
00:02:38.450 --> 00:02:45.810
The main witness has one event at the common
enable, no register XOR, and a fixed edge-0-to-5

34
00:02:46.232 --> 00:02:46.592
window.

35
00:02:46.592 --> 00:02:50.912
Both counters stop at their intended endpoints.

36
00:02:50.912 --> 00:02:59.392
Clock/reset, workload, handshake observer,
reference, sum checker and final consumer remain

37
00:02:59.392 --> 00:02:59.932
trusted.

38
00:03:00.972 --> 00:03:04.712
The lab also offers an up-register XOR.

39
00:03:04.712 --> 00:03:07.372
Its mask is restricted to three bits.

40
00:03:07.372 --> 00:03:17.548
Another option substitutes the pair so down=4-up,
only if the proposed up lies in 0.

41
00:03:17.548 --> 00:03:17.669
.

42
00:03:17.669 --> 00:03:18.952
4.

43
00:03:18.952 --> 00:03:22.212
Out-of-range pair proposals have no effect.

44
00:03:22.212 --> 00:03:28.712
This is a constrained correlated substitution,
not two independent bit flips.

45
00:03:28.712 --> 00:03:32.972
Record effective injection separately from a
submitted parameter.

46
00:03:33.712 --> 00:03:40.052
The progress variant additionally compares up
with an independent progress input and remembers

47
00:03:40.052 --> 00:03:40.752
discrepancies.

48
00:03:40.752 --> 00:03:48.912
The executable model uses trusted reference
progress to demonstrate the needed obligation.

49
00:03:48.912 --> 00:03:54.012
A product needs a separately justified
work-completion observation; attaching a

50
00:03:54.012 --> 00:03:57.412
testbench oracle to grant is not a hardware
solution.

51
00:03:57.692 --> 00:04:03.032
Select enable, fault edge 2 and sum policy.

52
00:04:03.032 --> 00:04:04.972
Step through the table.

53
00:04:04.972 --> 00:04:12.772
At edge 3, the pair already reflects the false
step while ref has not advanced.

54
00:04:12.772 --> 00:04:17.992
At edge 5, commit is true and reference is false.

55
00:04:17.992 --> 00:04:23.032
Switching to progress policy blocks this witness
without changing its workload.

56
00:04:23.032 --> 00:04:31.832
The 96 up/pair parameter runs never commit under
progress policy on the three-handshake schedule.

57
00:04:31.832 --> 00:04:37.292
That alone does not prove fault detection:
reference never reaches four.

58
00:04:37.292 --> 00:04:44.972
Separate assertions check the common-enable
progress mismatch, an up XOR breaking the sum,

59
00:04:44.972 --> 00:04:49.792
and a coordinated pair substitution bypassing
sum-only checking.

60
00:04:49.792 --> 00:04:54.332
The fault-free four-handshake control accepts at
edge 5.

61
00:04:55.212 --> 00:04:58.152
Try an injection after edge 5.

62
00:04:58.152 --> 00:05:01.392
No later request exists in this window.

63
00:05:01.392 --> 00:05:07.072
A missing unauthorized commit now proves only
that the observation ended.

64
00:05:07.072 --> 00:05:11.692
Move the request later before claiming the
corrupted progress is harmless.

65
00:05:11.692 --> 00:05:15.472
Also record whether the injection actually
changes the pair.

66
00:05:16.212 --> 00:05:18.132
The RTL sketch is uncompiled.

67
00:05:18.622 --> 00:05:26.822
A production counter needs legal set/clear
behavior, arithmetic widths, saturation or wrap

68
00:05:26.822 --> 00:05:31.022
rules and a bound on outstanding work.

69
00:05:31.022 --> 00:05:36.642
Test the common enable before relying on
duplicated registers.

70
00:05:36.642 --> 00:05:41.802
Lesson 7 asks which state substitutions an
encoding can recognize.

71
00:05:42.602 --> 00:05:50.742
One common-enable event after an idle edge, or
separately bounded register effects, in edges 0.

72
00:05:52.543 --> 00:05:52.621
.

73
00:05:52.621 --> 00:05:52.776
5.

74
00:05:52.776 --> 00:05:56.803
Three genuine handshakes precede the result
request.

75
00:05:57.843 --> 00:06:06.123
Node reproduced early completion and checked 96
storage/substitution parameters; separate

76
00:06:06.123 --> 00:06:10.403
four-step positive and three-step negative
controls ran.

77
00:06:11.383 --> 00:06:16.623
The pair option is a constrained abstract
substitution.

78
00:06:16.623 --> 00:06:19.163
Out-of-range proposals have no effect.

79
00:06:19.163 --> 00:06:27.123
RTL, overflow implementation and physical
shared-enable behavior are unverified.

