Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (9.63 KB)

1
{
2
  "DESIGN_FILE" : {
3
    "design_units" : [{
4
      "contexts" : [], "library" : ["ENTITY_DECLARATION", {
5
        "name" : ["IDENTIFIER", "c04s03b02x02p14n01i00150ent"], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
6
      ]}
7
    , {
8
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
9
        "name" : ["IDENTIFIER", "c04s03b02x02p14n01i00150arch"], "entity" : ["IDENTIFIER", "c04s03b02x02p14n01i00150ent"], "ARCHITECTURE_DECLARATIVE_PART" : [{
10
          "declaration" : ["SUBPROGRAM_BODY", {
11
            "spec" : {
12
              "name" : "FLOAT", "subprogram_type" : "function", "parameters" : [{
13
                "names" : [["IDENTIFIER", "ival"]], "mode" : ["in"], "typ" : {
14
                  "name" : ["SIMPLE_NAME", "integer"]}
15
                }
16
              ], "typeMark" : ["SIMPLE_NAME", "real"], "isPure" : false}
17
            , "decl_part" : [["VARIABLE_DECLARATION", {
18
              "names" : [["IDENTIFIER", "v1"]], "typ" : {
19
                "name" : ["SIMPLE_NAME", "real"]}
20
              , "init_val" : ["EXPRESSION", {
21
                "args" : [["EXPRESSION", {
22
                  "args" : [["EXPRESSION", {
23
                    "args" : [["EXPRESSION", {
24
                      "args" : [["CONSTANT_VALUE", {
25
                        "value" : ["CST_LITERAL", "543.0"]}
26
                      ]]}
27
                    ]]}
28
                  ]]}
29
                ]]}
30
              ]}
31
            ]], "stmts" : [["RETURN_STATEMENT", {
32
              "expr" : ["EXPRESSION", {
33
                "args" : [["EXPRESSION", {
34
                  "args" : [["EXPRESSION", {
35
                    "args" : [["EXPRESSION", {
36
                      "args" : [["CALL", ["SIMPLE_NAME", "v1"]]]}
37
                    ]]}
38
                  ]]}
39
                ]]}
40
              ]}
41
            ]]}
42
          ]}
43
        , {
44
          "declaration" : ["SUBPROGRAM_BODY", {
45
            "spec" : {
46
              "name" : "ROUND", "subprogram_type" : "function", "parameters" : [{
47
                "names" : [["IDENTIFIER", "rval"]], "mode" : ["in"], "typ" : {
48
                  "name" : ["SIMPLE_NAME", "real"]}
49
                }
50
              ], "typeMark" : ["SIMPLE_NAME", "integer"], "isPure" : false}
51
            , "decl_part" : [["VARIABLE_DECLARATION", {
52
              "names" : [["IDENTIFIER", "v1"]], "typ" : {
53
                "name" : ["SIMPLE_NAME", "integer"]}
54
              , "init_val" : ["EXPRESSION", {
55
                "args" : [["EXPRESSION", {
56
                  "args" : [["EXPRESSION", {
57
                    "args" : [["EXPRESSION", {
58
                      "args" : [["CONSTANT_VALUE", {
59
                        "value" : ["CST_LITERAL", "543"]}
60
                      ]]}
61
                    ]]}
62
                  ]]}
63
                ]]}
64
              ]}
65
            ]], "stmts" : [["RETURN_STATEMENT", {
66
              "expr" : ["EXPRESSION", {
67
                "args" : [["EXPRESSION", {
68
                  "args" : [["EXPRESSION", {
69
                    "args" : [["EXPRESSION", {
70
                      "args" : [["CALL", ["SIMPLE_NAME", "v1"]]]}
71
                    ]]}
72
                  ]]}
73
                ]]}
74
              ]}
75
            ]]}
76
          ]}
77
        , {
78
          "declaration" : ["SUBPROGRAM_BODY", {
79
            "spec" : {
80
              "name" : "test_bed", "subprogram_type" : "procedure", "parameters" : [{
81
                "names" : [["IDENTIFIER", "in1"]], "mode" : ["in"], "typ" : {
82
                  "name" : ["SIMPLE_NAME", "integer"]}
83
                }
84
              , {
85
                "names" : [["IDENTIFIER", "out1"]], "mode" : ["out"], "typ" : {
86
                  "name" : ["SIMPLE_NAME", "real"]}
87
                }
88
              ]}
89
            , "stmts" : [["VARIABLE_ASSIGNMENT_STATEMENT", {
90
              "lhs" : ["SIMPLE_NAME", "out1"], "rhs" : ["EXPRESSION", {
91
                "args" : [["EXPRESSION", {
92
                  "args" : [["EXPRESSION", {
93
                    "args" : [["EXPRESSION", {
94
                      "args" : [["CALL", ["INDEXED_NAME", {
95
                        "id" : ["SIMPLE_NAME", "FLOAT"], "exprs" : [["EXPRESSION", {
96
                          "args" : [["EXPRESSION", {
97
                            "args" : [["EXPRESSION", {
98
                              "args" : [["EXPRESSION", {
99
                                "args" : [["CALL", ["SIMPLE_NAME", "in1"]]]}
100
                              ]]}
101
                            ]]}
102
                          ]]}
103
                        ]]}
104
                      ]]]}
105
                    ]]}
106
                  ]]}
107
                ]]}
108
              ]}
109
            ]]}
110
          ]}
111
        ], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
112
          "id" : ["IDENTIFIER", "TESTING"], "PROCESS_DECLARATIVE_PART" : [{
113
            "declaration" : ["VARIABLE_DECLARATION", {
114
              "names" : [["IDENTIFIER", "var1"]], "typ" : {
115
                "name" : ["SIMPLE_NAME", "real"]}
116
              }
117
            ]}
118
          , {
119
            "declaration" : ["VARIABLE_DECLARATION", {
120
              "names" : [["IDENTIFIER", "var2"]], "typ" : {
121
                "name" : ["SIMPLE_NAME", "real"]}
122
              , "init_val" : ["EXPRESSION", {
123
                "args" : [["EXPRESSION", {
124
                  "args" : [["EXPRESSION", {
125
                    "args" : [["EXPRESSION", {
126
                      "args" : [["CONSTANT_VALUE", {
127
                        "value" : ["CST_LITERAL", "543.2"]}
128
                      ]]}
129
                    ]]}
130
                  ]]}
131
                ]]}
132
              ]}
133
            ]}
134
          ], "PROCESS_STATEMENT_PART" : [["PROCEDURE_CALL_STATEMENT", {
135
            "name" : ["IDENTIFIER", "test_bed"], "assocs" : [{
136
              "actual_designator" : ["INDEXED_NAME", {
137
                "id" : ["SIMPLE_NAME", "ROUND"], "exprs" : [["EXPRESSION", {
138
                  "args" : [["EXPRESSION", {
139
                    "args" : [["EXPRESSION", {
140
                      "args" : [["EXPRESSION", {
141
                        "args" : [["CALL", ["SIMPLE_NAME", "var2"]]]}
142
                      ]]}
143
                    ]]}
144
                  ]]}
145
                ]]}
146
              ]}
147
            , {
148
              "actual_designator" : ["SIMPLE_NAME", "var1"]}
149
            ]}
150
          ], ["ASSERTION_STATEMENT", {
151
            "cond" : ["EXPRESSION", {
152
              "args" : [["EXPRESSION", {
153
                "args" : [["EXPRESSION", {
154
                  "args" : [["EXPRESSION", {
155
                    "id" : "NOT", "args" : [["EXPRESSION", {
156
                      "id" : "=", "args" : [["EXPRESSION", {
157
                        "args" : [["EXPRESSION", {
158
                          "args" : [["EXPRESSION", {
159
                            "args" : [["CALL", ["SIMPLE_NAME", "var1"]]]}
160
                          ]]}
161
                        ]]}
162
                      ], ["EXPRESSION", {
163
                        "args" : [["EXPRESSION", {
164
                          "args" : [["EXPRESSION", {
165
                            "args" : [["CONSTANT_VALUE", {
166
                              "value" : ["CST_LITERAL", "543.0"]}
167
                            ]]}
168
                          ]]}
169
                        ]]}
170
                      ]]}
171
                    ]]}
172
                  ]]}
173
                ]]}
174
              ]]}
175
            ], "report" : ["EXPRESSION", {
176
              "args" : [["EXPRESSION", {
177
                "args" : [["EXPRESSION", {
178
                  "args" : [["EXPRESSION", {
179
                    "args" : [["CONSTANT_VALUE", {
180
                      "value" : ["CST_LITERAL", "\"***PASSED TEST:c04s03b02x02p14n01i00150\""]}
181
                    ]]}
182
                  ]]}
183
                ]]}
184
              ]]}
185
            ], "severity" : ["EXPRESSION", {
186
              "args" : [["EXPRESSION", {
187
                "args" : [["EXPRESSION", {
188
                  "args" : [["EXPRESSION", {
189
                    "args" : [["CALL", ["SIMPLE_NAME", "NOTE"]]]}
190
                  ]]}
191
                ]]}
192
              ]]}
193
            ]}
194
          ], ["ASSERTION_STATEMENT", {
195
            "cond" : ["EXPRESSION", {
196
              "args" : [["EXPRESSION", {
197
                "args" : [["EXPRESSION", {
198
                  "args" : [["EXPRESSION", {
199
                    "args" : [["EXPRESSION", {
200
                      "id" : "=", "args" : [["EXPRESSION", {
201
                        "args" : [["EXPRESSION", {
202
                          "args" : [["EXPRESSION", {
203
                            "args" : [["CALL", ["SIMPLE_NAME", "var1"]]]}
204
                          ]]}
205
                        ]]}
206
                      ], ["EXPRESSION", {
207
                        "args" : [["EXPRESSION", {
208
                          "args" : [["EXPRESSION", {
209
                            "args" : [["CONSTANT_VALUE", {
210
                              "value" : ["CST_LITERAL", "543.0"]}
211
                            ]]}
212
                          ]]}
213
                        ]]}
214
                      ]]}
215
                    ]]}
216
                  ]]}
217
                ]]}
218
              ]]}
219
            ], "report" : ["EXPRESSION", {
220
              "args" : [["EXPRESSION", {
221
                "args" : [["EXPRESSION", {
222
                  "args" : [["EXPRESSION", {
223
                    "args" : [["CONSTANT_VALUE", {
224
                      "value" : ["CST_LITERAL", "\"***FAILED TEST:c04s03b02x02p14n01i00150 - The actual part of a named element association may be in the form of a function call.\""]}
225
                    ]]}
226
                  ]]}
227
                ]]}
228
              ]]}
229
            ], "severity" : ["EXPRESSION", {
230
              "args" : [["EXPRESSION", {
231
                "args" : [["EXPRESSION", {
232
                  "args" : [["EXPRESSION", {
233
                    "args" : [["CALL", ["SIMPLE_NAME", "ERROR"]]]}
234
                  ]]}
235
                ]]}
236
              ]]}
237
            ]}
238
          ], ["WAIT_STATEMENT"]]}
239
        ]]}
240
      ]}
241
    ]}
242
  }