Skip to content

Commit 56808e6

Browse files
committed
3 extra
1 parent 1726709 commit 56808e6

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

Diff for: device_driver_and_transmitter.smv

+17-2
Original file line numberDiff line numberDiff line change
@@ -1034,6 +1034,21 @@ SPEC AG (g.RESET = 0b1_1 -> g.open_state != open_idle);
10341034

10351035
SPEC AG(t_smit.td_state != td_idle & g.TEARDOWN = 0b1_1 -> d_rive.stop_state != stop_idle);
10361036

1037+
---------------
1038+
-- Extra 1: transmit is only run after open has already been run
1039+
---------------
1040+
SPEC AG(d_rive.transmit_state = transmit_idle | d_rive.open_has_run);
1041+
1042+
---------------
1043+
-- Extra 2: When the driver is initializing, the transmitter is not tearing down
1044+
---------------
1045+
SPEC AG(g.open_state = open_idle | t_smit.td_state = td_idle);
1046+
1047+
---------------
1048+
-- Extra 3: After stop has run, it is possible to start transmitting
1049+
---------------
1050+
SPEC EF(d_rive.last_run_function = stop & d_rive.transmit_state != transmit_idle)
1051+
10371052
----------------------------------------------------------------------------
10381053
-- 4.7 Safe dvice driver
10391054
----------------------------------------------------------------------------
@@ -1143,8 +1158,8 @@ SPEC AG(
11431158
g.HDP = 0b2_00)
11441159
));
11451160
----------------
1146-
-- Rest... (ironic)
1147-
AG(g.turn = software & g.turn != software)
1161+
-- Rest... (sarcastic)
1162+
SPEC AG(g.turn = software | g.turn != software)
11481163
----------------
11491164

11501165

0 commit comments

Comments
 (0)