Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / vhdl_json / vhdl_files / 2-exportOK / ghdl / ghdl / testsuite / vests / vhdl-93 / billowitch / compliant / tc2139.json @ 3fd18385

History | View | Annotate | Download (9 KB)

1
{
2
  "DESIGN_FILE" : {
3
    "design_units" : [{
4
      "contexts" : [], "library" : ["ENTITY_DECLARATION", {
5
        "name" : ["IDENTIFIER", "c07s02b04x00p21n01i02139ent"], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
6
      ]}
7
    , {
8
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
9
        "name" : ["IDENTIFIER", "c07s02b04x00p21n01i02139arch"], "entity" : ["IDENTIFIER", "c07s02b04x00p21n01i02139ent"], "ARCHITECTURE_DECLARATIVE_PART" : [{
10
          "definition" : ["TYPE_DECLARATION", {
11
            "name" : ["IDENTIFIER", "positive_v"], "definition" : ["ARRAY_TYPE_DEFINITION", {
12
              "indexes" : [["SIMPLE_NAME", "integer"]], "definition" : {
13
                "name" : ["SIMPLE_NAME", "positive"]}
14
              }
15
            ]}
16
          ]}
17
        , {
18
          "definition" : ["SUBTYPE_DECLARATION", {
19
            "name" : ["IDENTIFIER", "positive_1"], "typ" : {
20
              "name" : ["SIMPLE_NAME", "positive_v"], "const" : ["INDEX_CONSTRAINT", {
21
                "ranges" : [["RANGE_WITH_DIRECTION", {
22
                  "direction" : "to", "from" : ["EXPRESSION", {
23
                    "args" : [["EXPRESSION", {
24
                      "args" : [["CONSTANT_VALUE", {
25
                        "value" : ["CST_LITERAL", "1"]}
26
                      ]]}
27
                    ]]}
28
                  ], "_to" : ["EXPRESSION", {
29
                    "args" : [["EXPRESSION", {
30
                      "args" : [["CONSTANT_VALUE", {
31
                        "value" : ["CST_LITERAL", "1"]}
32
                      ]]}
33
                    ]]}
34
                  ]}
35
                ]]}
36
              ]}
37
            }
38
          ]}
39
        , {
40
          "definition" : ["SUBTYPE_DECLARATION", {
41
            "name" : ["IDENTIFIER", "positive_null"], "typ" : {
42
              "name" : ["SIMPLE_NAME", "positive_v"], "const" : ["INDEX_CONSTRAINT", {
43
                "ranges" : [["RANGE_WITH_DIRECTION", {
44
                  "direction" : "to", "from" : ["EXPRESSION", {
45
                    "args" : [["EXPRESSION", {
46
                      "args" : [["CONSTANT_VALUE", {
47
                        "value" : ["CST_LITERAL", "1"]}
48
                      ]]}
49
                    ]]}
50
                  ], "_to" : ["EXPRESSION", {
51
                    "args" : [["EXPRESSION", {
52
                      "args" : [["CONSTANT_VALUE", {
53
                        "value" : ["CST_LITERAL", "0"]}
54
                      ]]}
55
                    ]]}
56
                  ]}
57
                ]]}
58
              ]}
59
            }
60
          ]}
61
        ], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
62
          "id" : ["IDENTIFIER", "TESTING"], "PROCESS_DECLARATIVE_PART" : [{
63
            "declaration" : ["VARIABLE_DECLARATION", {
64
              "names" : [["IDENTIFIER", "result"]], "typ" : {
65
                "name" : ["SIMPLE_NAME", "positive_1"]}
66
              }
67
            ]}
68
          , {
69
            "declaration" : ["VARIABLE_DECLARATION", {
70
              "names" : [["IDENTIFIER", "l_operand"]], "typ" : {
71
                "name" : ["SIMPLE_NAME", "positive_null"]}
72
              }
73
            ]}
74
          , {
75
            "declaration" : ["VARIABLE_DECLARATION", {
76
              "names" : [["IDENTIFIER", "r_operand"]], "typ" : {
77
                "name" : ["SIMPLE_NAME", "positive"]}
78
              , "init_val" : ["EXPRESSION", {
79
                "args" : [["EXPRESSION", {
80
                  "args" : [["EXPRESSION", {
81
                    "args" : [["EXPRESSION", {
82
                      "args" : [["CONSTANT_VALUE", {
83
                        "value" : ["CST_LITERAL", "1"]}
84
                      ]]}
85
                    ]]}
86
                  ]]}
87
                ]]}
88
              ]}
89
            ]}
90
          ], "PROCESS_STATEMENT_PART" : [["VARIABLE_ASSIGNMENT_STATEMENT", {
91
            "lhs" : ["SIMPLE_NAME", "result"], "rhs" : ["EXPRESSION", {
92
              "args" : [["EXPRESSION", {
93
                "args" : [["EXPRESSION", {
94
                  "args" : [["EXPRESSION", {
95
                    "id" : "&", "args" : [["EXPRESSION", {
96
                      "args" : [["CALL", ["SIMPLE_NAME", "l_operand"]]]}
97
                    ], ["EXPRESSION", {
98
                      "args" : [["CALL", ["SIMPLE_NAME", "r_operand"]]]}
99
                    ]]}
100
                  ]]}
101
                ]]}
102
              ]]}
103
            ]}
104
          ], ["WAIT_STATEMENT"], ["ASSERTION_STATEMENT", {
105
            "cond" : ["EXPRESSION", {
106
              "args" : [["EXPRESSION", {
107
                "args" : [["EXPRESSION", {
108
                  "args" : [["EXPRESSION", {
109
                    "id" : "NOT", "args" : [["EXPRESSION", {
110
                      "id" : "=", "args" : [["EXPRESSION", {
111
                        "args" : [["EXPRESSION", {
112
                          "args" : [["EXPRESSION", {
113
                            "args" : [["CALL", ["INDEXED_NAME", {
114
                              "id" : ["SIMPLE_NAME", "result"], "exprs" : [["EXPRESSION", {
115
                                "args" : [["EXPRESSION", {
116
                                  "args" : [["EXPRESSION", {
117
                                    "args" : [["EXPRESSION", {
118
                                      "args" : [["CONSTANT_VALUE", {
119
                                        "value" : ["CST_LITERAL", "1"]}
120
                                      ]]}
121
                                    ]]}
122
                                  ]]}
123
                                ]]}
124
                              ]]}
125
                            ]]]}
126
                          ]]}
127
                        ]]}
128
                      ], ["EXPRESSION", {
129
                        "args" : [["EXPRESSION", {
130
                          "args" : [["EXPRESSION", {
131
                            "args" : [["CONSTANT_VALUE", {
132
                              "value" : ["CST_LITERAL", "1"]}
133
                            ]]}
134
                          ]]}
135
                        ]]}
136
                      ]]}
137
                    ]]}
138
                  ]]}
139
                ]]}
140
              ]]}
141
            ], "report" : ["EXPRESSION", {
142
              "args" : [["EXPRESSION", {
143
                "args" : [["EXPRESSION", {
144
                  "args" : [["EXPRESSION", {
145
                    "args" : [["CONSTANT_VALUE", {
146
                      "value" : ["CST_LITERAL", "\"***PASSED TEST: c07s02b04x00p21n01i02139\""]}
147
                    ]]}
148
                  ]]}
149
                ]]}
150
              ]]}
151
            ], "severity" : ["EXPRESSION", {
152
              "args" : [["EXPRESSION", {
153
                "args" : [["EXPRESSION", {
154
                  "args" : [["EXPRESSION", {
155
                    "args" : [["CALL", ["SIMPLE_NAME", "NOTE"]]]}
156
                  ]]}
157
                ]]}
158
              ]]}
159
            ]}
160
          ], ["ASSERTION_STATEMENT", {
161
            "cond" : ["EXPRESSION", {
162
              "args" : [["EXPRESSION", {
163
                "args" : [["EXPRESSION", {
164
                  "args" : [["EXPRESSION", {
165
                    "args" : [["EXPRESSION", {
166
                      "id" : "=", "args" : [["EXPRESSION", {
167
                        "args" : [["EXPRESSION", {
168
                          "args" : [["EXPRESSION", {
169
                            "args" : [["CALL", ["INDEXED_NAME", {
170
                              "id" : ["SIMPLE_NAME", "result"], "exprs" : [["EXPRESSION", {
171
                                "args" : [["EXPRESSION", {
172
                                  "args" : [["EXPRESSION", {
173
                                    "args" : [["EXPRESSION", {
174
                                      "args" : [["CONSTANT_VALUE", {
175
                                        "value" : ["CST_LITERAL", "1"]}
176
                                      ]]}
177
                                    ]]}
178
                                  ]]}
179
                                ]]}
180
                              ]]}
181
                            ]]]}
182
                          ]]}
183
                        ]]}
184
                      ], ["EXPRESSION", {
185
                        "args" : [["EXPRESSION", {
186
                          "args" : [["EXPRESSION", {
187
                            "args" : [["CONSTANT_VALUE", {
188
                              "value" : ["CST_LITERAL", "1"]}
189
                            ]]}
190
                          ]]}
191
                        ]]}
192
                      ]]}
193
                    ]]}
194
                  ]]}
195
                ]]}
196
              ]]}
197
            ], "report" : ["EXPRESSION", {
198
              "args" : [["EXPRESSION", {
199
                "args" : [["EXPRESSION", {
200
                  "args" : [["EXPRESSION", {
201
                    "args" : [["CONSTANT_VALUE", {
202
                      "value" : ["CST_LITERAL", "\"***FAILED TEST: c07s02b04x00p21n01i02139 - Concatenation of null and POSITIVE element failed.\""]}
203
                    ]]}
204
                  ]]}
205
                ]]}
206
              ]]}
207
            ], "severity" : ["EXPRESSION", {
208
              "args" : [["EXPRESSION", {
209
                "args" : [["EXPRESSION", {
210
                  "args" : [["EXPRESSION", {
211
                    "args" : [["CALL", ["SIMPLE_NAME", "ERROR"]]]}
212
                  ]]}
213
                ]]}
214
              ]]}
215
            ]}
216
          ], ["WAIT_STATEMENT"]]}
217
        ]]}
218
      ]}
219
    ]}
220
  }