summaryrefslogtreecommitdiff
blob: 09ef98b823410a05368913008a100868c9fcb9be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
(tag_existing
   (
      (reg waveform STRUCT_SIMPLE_FLIP_FLOP_OUTPUT)
      (clk waveform STRUCT_SIMPLE_FLIP_FLOP_CLOCK)
      (ps process STRUCT_SIMPLE_FLIP_FLOP_PROCESS)
   )
   (and
      (not (eq clk reg))
      (is_explicit_process ps)
      (is_in_sensitivity_list clk ps)
      (CTL_verifies ps
         (AU
            (not (expr_writes reg))
            (and
               (kind "if")
               (or
                  (and
                     (is_read_structure "(??)")
                     (or
                        (is_read_element "0" "falling_edge")
                        (is_read_element "0" "rising_edge")
                     )
                     (is_read_element "1" clk)
                  )
                  (and
                     (is_read_structure "(?(??)(???))")
                     (is_read_element "0" "and")
                     (is_read_element "1" "event")
                     (is_read_element "2" clk)
                     (is_read_element "3" "=")
                     (or
                        (is_read_element "4" clk)
                        (is_read_element "5" clk)
                     )
                  )
                  (and
                     (is_read_structure "(?(???)(??))")
                     (is_read_element "0" "and")
                     (is_read_element "1" "=")
                     (or
                        (is_read_element "2" clk)
                        (is_read_element "3" clk)
                     )
                     (is_read_element "4" "event")
                     (is_read_element "5" clk)
                  )
               )
               (EX
                  (and
                     (has_option "cond_was_true")
                     (does_not_reach_parent_before
                        (and
                           (expr_writes reg)
                           (AX
                              (not
                                 (EF
                                    (expr_writes reg)
                                 )
                              )
                           )
                        )
                     )
                  )
               )
            )
         )
      )
   )
)