Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / vhdl_json / vhdl_files / 2-exportOK / cnes_guidelines / rule / data / STD_03800_bad.json @ 3fd18385

History | View | Annotate | Download (5.92 KB)

1
{
2
  "DESIGN_FILE" : {
3
    "design_units" : [{
4
      "contexts" : [["LIBRARY_CLAUSE", [["IDENTIFIER", "IEEE"]]], ["USE_CLAUSE", [["SELECTED_NAME", [["SIMPLE_NAME", "IEEE"], ["SIMPLE_NAME", "std_logic_1164"]]]]], ["USE_CLAUSE", [["SELECTED_NAME", [["SIMPLE_NAME", "IEEE"], ["SIMPLE_NAME", "numeric_std"]]]]]], "library" : ["ENTITY_DECLARATION", {
5
        "name" : ["IDENTIFIER", "STD_03800_bad"], "ports" : [{
6
          "names" : [["IDENTIFIER", "i_Clock"]], "mode" : ["in"], "typ" : {
7
            "name" : ["SIMPLE_NAME", "std_logic"]}
8
          }
9
        , {
10
          "names" : [["IDENTIFIER", "i_Reset_n"]], "mode" : ["in"], "typ" : {
11
            "name" : ["SIMPLE_NAME", "std_logic"]}
12
          }
13
        , {
14
          "names" : [["IDENTIFIER", "i_D"]], "mode" : ["in"], "typ" : {
15
            "name" : ["SIMPLE_NAME", "std_logic"]}
16
          }
17
        , {
18
          "names" : [["IDENTIFIER", "o_Q"]], "mode" : ["out"], "typ" : {
19
            "name" : ["SIMPLE_NAME", "std_logic"]}
20
          }
21
        , {
22
          "names" : [["IDENTIFIER", "o_Q_n"]], "mode" : ["out"], "typ" : {
23
            "name" : ["SIMPLE_NAME", "std_logic"]}
24
          }
25
        ], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
26
      ]}
27
    , {
28
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
29
        "name" : ["IDENTIFIER", "Behavioral"], "entity" : ["IDENTIFIER", "STD_03800_bad"], "ARCHITECTURE_DECLARATIVE_PART" : [{
30
          "declaration" : ["SIGNAL_DECLARATION", {
31
            "names" : [["IDENTIFIER", "Q"]], "typ" : {
32
              "name" : ["SIMPLE_NAME", "std_logic"]}
33
            , "init_val" : ["EXPRESSION", {
34
              "args" : [["EXPRESSION", {
35
                "args" : [["EXPRESSION", {
36
                  "args" : [["EXPRESSION", {
37
                    "args" : [["CONSTANT_VALUE", {
38
                      "value" : ["CST_LITERAL", "'0'"]}
39
                    ]]}
40
                  ]]}
41
                ]]}
42
              ]]}
43
            ]}
44
          ]}
45
        , {
46
          "declaration" : ["SIGNAL_DECLARATION", {
47
            "names" : [["IDENTIFIER", "Q_n"]], "typ" : {
48
              "name" : ["SIMPLE_NAME", "std_logic"]}
49
            , "init_val" : ["EXPRESSION", {
50
              "args" : [["EXPRESSION", {
51
                "args" : [["EXPRESSION", {
52
                  "args" : [["EXPRESSION", {
53
                    "args" : [["CONSTANT_VALUE", {
54
                      "value" : ["CST_LITERAL", "'1'"]}
55
                    ]]}
56
                  ]]}
57
                ]]}
58
              ]]}
59
            ]}
60
          ]}
61
        ], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
62
          "id" : ["IDENTIFIER", "P_FlipFlop"], "active_sigs" : [["SIMPLE_NAME", "i_Clock"]], "PROCESS_STATEMENT_PART" : [["IF_STATEMENT", {
63
            "if_cases" : [{
64
              "if_cond" : ["EXPRESSION", {
65
                "args" : [["EXPRESSION", {
66
                  "args" : [["EXPRESSION", {
67
                    "args" : [["EXPRESSION", {
68
                      "args" : [["EXPRESSION", {
69
                        "args" : [["EXPRESSION", {
70
                          "args" : [["EXPRESSION", {
71
                            "args" : [["EXPRESSION", {
72
                              "args" : [["CALL", ["INDEXED_NAME", {
73
                                "id" : ["SIMPLE_NAME", "rising_edge"], "exprs" : [["EXPRESSION", {
74
                                  "args" : [["EXPRESSION", {
75
                                    "args" : [["EXPRESSION", {
76
                                      "args" : [["EXPRESSION", {
77
                                        "args" : [["CALL", ["SIMPLE_NAME", "i_Clock"]]]}
78
                                      ]]}
79
                                    ]]}
80
                                  ]]}
81
                                ]]}
82
                              ]]]}
83
                            ]]}
84
                          ]]}
85
                        ]]}
86
                      ]]}
87
                    ]]}
88
                  ]]}
89
                ]]}
90
              ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
91
                "lhs" : ["SIMPLE_NAME", "Q"], "rhs" : [{
92
                  "value" : ["EXPRESSION", {
93
                    "args" : [["EXPRESSION", {
94
                      "args" : [["EXPRESSION", {
95
                        "args" : [["EXPRESSION", {
96
                          "args" : [["CALL", ["SIMPLE_NAME", "i_D"]]]}
97
                        ]]}
98
                      ]]}
99
                    ]]}
100
                  ]}
101
                ]}
102
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
103
                "lhs" : ["SIMPLE_NAME", "Q_n"], "rhs" : [{
104
                  "value" : ["EXPRESSION", {
105
                    "args" : [["EXPRESSION", {
106
                      "args" : [["EXPRESSION", {
107
                        "args" : [["EXPRESSION", {
108
                          "id" : "not", "args" : [["CALL", ["SIMPLE_NAME", "i_D"]]]}
109
                        ]]}
110
                      ]]}
111
                    ]]}
112
                  ]}
113
                ]}
114
              ]]}
115
            ]}
116
          ]]}
117
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
118
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "o_Q"], "rhs" : [{
119
            "expr" : [{
120
              "value" : ["EXPRESSION", {
121
                "args" : [["EXPRESSION", {
122
                  "args" : [["EXPRESSION", {
123
                    "args" : [["EXPRESSION", {
124
                      "args" : [["CALL", ["SIMPLE_NAME", "Q"]]]}
125
                    ]]}
126
                  ]]}
127
                ]]}
128
              ]}
129
            ]}
130
          ]}
131
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
132
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "o_Q_n"], "rhs" : [{
133
            "expr" : [{
134
              "value" : ["EXPRESSION", {
135
                "args" : [["EXPRESSION", {
136
                  "args" : [["EXPRESSION", {
137
                    "args" : [["EXPRESSION", {
138
                      "args" : [["CALL", ["SIMPLE_NAME", "Q_n"]]]}
139
                    ]]}
140
                  ]]}
141
                ]]}
142
              ]}
143
            ]}
144
          ]}
145
        ]]}
146
      ]}
147
    ]}
148
  }