Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / vhdl_json / vhdl_files / 2-exportOK / ghdl / ghdl / testsuite / vests / vhdl-93 / ashenden / non_compliant / ch_04_ch_04_09.json @ 3fd18385

History | View | Annotate | Download (8.45 KB)

1
{
2
  "DESIGN_FILE" : {
3
    "design_units" : [{
4
      "contexts" : [], "library" : ["ENTITY_DECLARATION", {
5
        "name" : ["IDENTIFIER", "ch_04_09"], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
6
      ]}
7
    , {
8
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
9
        "name" : ["IDENTIFIER", "test"], "entity" : ["IDENTIFIER", "ch_04_09"], "ARCHITECTURE_DECLARATIVE_PART" : [], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
10
          "id" : ["IDENTIFIER", "process_04_3_c"], "PROCESS_DECLARATIVE_PART" : [{
11
            "definition" : ["SUBTYPE_DECLARATION", {
12
              "name" : ["IDENTIFIER", "name"], "typ" : {
13
                "name" : ["SIMPLE_NAME", "string"], "const" : ["INDEX_CONSTRAINT", {
14
                  "ranges" : [["RANGE_WITH_DIRECTION", {
15
                    "direction" : "to", "from" : ["EXPRESSION", {
16
                      "args" : [["EXPRESSION", {
17
                        "args" : [["CONSTANT_VALUE", {
18
                          "value" : ["CST_LITERAL", "1"]}
19
                        ]]}
20
                      ]]}
21
                    ], "_to" : ["EXPRESSION", {
22
                      "args" : [["EXPRESSION", {
23
                        "args" : [["CONSTANT_VALUE", {
24
                          "value" : ["CST_LITERAL", "20"]}
25
                        ]]}
26
                      ]]}
27
                    ]}
28
                  ]]}
29
                ]}
30
              }
31
            ]}
32
          , {
33
            "definition" : ["TYPE_DECLARATION", {
34
              "name" : ["IDENTIFIER", "display_string"], "definition" : ["ARRAY_TYPE_DEFINITION", {
35
                "const" : ["INDEX_CONSTRAINT", {
36
                  "ranges" : [["SUB_DISCRETE_RANGE", {
37
                    "name" : ["SIMPLE_NAME", "integer"], "const" : ["RANGE_CONSTRAINT", {
38
                      "range" : ["RANGE_WITH_DIRECTION", {
39
                        "direction" : "to", "from" : ["EXPRESSION", {
40
                          "args" : [["EXPRESSION", {
41
                            "args" : [["CONSTANT_VALUE", {
42
                              "value" : ["CST_LITERAL", "0"]}
43
                            ]]}
44
                          ]]}
45
                        ], "_to" : ["EXPRESSION", {
46
                          "args" : [["EXPRESSION", {
47
                            "args" : [["CONSTANT_VALUE", {
48
                              "value" : ["CST_LITERAL", "19"]}
49
                            ]]}
50
                          ]]}
51
                        ]}
52
                      ]}
53
                    ]}
54
                  ]]}
55
                ], "definition" : {
56
                  "name" : ["SIMPLE_NAME", "character"]}
57
                }
58
              ]}
59
            ]}
60
          , {
61
            "declaration" : ["VARIABLE_DECLARATION", {
62
              "names" : [["IDENTIFIER", "item_name"]], "typ" : {
63
                "name" : ["SIMPLE_NAME", "name"]}
64
              }
65
            ]}
66
          , {
67
            "declaration" : ["VARIABLE_DECLARATION", {
68
              "names" : [["IDENTIFIER", "display"]], "typ" : {
69
                "name" : ["SIMPLE_NAME", "display_string"]}
70
              }
71
            ]}
72
          , {
73
            "definition" : ["SUBTYPE_DECLARATION", {
74
              "name" : ["IDENTIFIER", "big_endian_upper_halfword"], "typ" : {
75
                "name" : ["SIMPLE_NAME", "bit_vector"], "const" : ["INDEX_CONSTRAINT", {
76
                  "ranges" : [["RANGE_WITH_DIRECTION", {
77
                    "direction" : "to", "from" : ["EXPRESSION", {
78
                      "args" : [["EXPRESSION", {
79
                        "args" : [["CONSTANT_VALUE", {
80
                          "value" : ["CST_LITERAL", "0"]}
81
                        ]]}
82
                      ]]}
83
                    ], "_to" : ["EXPRESSION", {
84
                      "args" : [["EXPRESSION", {
85
                        "args" : [["CONSTANT_VALUE", {
86
                          "value" : ["CST_LITERAL", "15"]}
87
                        ]]}
88
                      ]]}
89
                    ]}
90
                  ]]}
91
                ]}
92
              }
93
            ]}
94
          , {
95
            "definition" : ["SUBTYPE_DECLARATION", {
96
              "name" : ["IDENTIFIER", "little_endian_upper_halfword"], "typ" : {
97
                "name" : ["SIMPLE_NAME", "bit_vector"], "const" : ["INDEX_CONSTRAINT", {
98
                  "ranges" : [["RANGE_WITH_DIRECTION", {
99
                    "direction" : "downto", "from" : ["EXPRESSION", {
100
                      "args" : [["EXPRESSION", {
101
                        "args" : [["CONSTANT_VALUE", {
102
                          "value" : ["CST_LITERAL", "31"]}
103
                        ]]}
104
                      ]]}
105
                    ], "_to" : ["EXPRESSION", {
106
                      "args" : [["EXPRESSION", {
107
                        "args" : [["CONSTANT_VALUE", {
108
                          "value" : ["CST_LITERAL", "16"]}
109
                        ]]}
110
                      ]]}
111
                    ]}
112
                  ]]}
113
                ]}
114
              }
115
            ]}
116
          , {
117
            "declaration" : ["VARIABLE_DECLARATION", {
118
              "names" : [["IDENTIFIER", "big"]], "typ" : {
119
                "name" : ["SIMPLE_NAME", "big_endian_upper_halfword"]}
120
              }
121
            ]}
122
          , {
123
            "declaration" : ["VARIABLE_DECLARATION", {
124
              "names" : [["IDENTIFIER", "little"]], "typ" : {
125
                "name" : ["SIMPLE_NAME", "little_endian_upper_halfword"]}
126
              }
127
            ]}
128
          ], "PROCESS_STATEMENT_PART" : [["VARIABLE_ASSIGNMENT_STATEMENT", {
129
            "lhs" : ["SIMPLE_NAME", "item_name"], "rhs" : ["EXPRESSION", {
130
              "args" : [["EXPRESSION", {
131
                "args" : [["EXPRESSION", {
132
                  "args" : [["EXPRESSION", {
133
                    "args" : [["AGGREGATE", {
134
                      "elems" : [{
135
                        "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
136
                          "args" : [["EXPRESSION", {
137
                            "args" : [["EXPRESSION", {
138
                              "args" : [["EXPRESSION", {
139
                                "args" : [["CONSTANT_VALUE", {
140
                                  "value" : ["CST_LITERAL", "'A'"]}
141
                                ]]}
142
                              ]]}
143
                            ]]}
144
                          ]]}
145
                        ]}
146
                      ]}
147
                    ]]}
148
                  ]]}
149
                ]]}
150
              ]]}
151
            ]}
152
          ], ["VARIABLE_ASSIGNMENT_STATEMENT", {
153
            "lhs" : ["SIMPLE_NAME", "little"], "rhs" : ["EXPRESSION", {
154
              "args" : [["EXPRESSION", {
155
                "args" : [["EXPRESSION", {
156
                  "args" : [["EXPRESSION", {
157
                    "args" : [["CONSTANT_VALUE", {
158
                      "value" : ["CST_LITERAL", "x\"AAAA\""]}
159
                    ]]}
160
                  ]]}
161
                ]]}
162
              ]]}
163
            ]}
164
          ], ["VARIABLE_ASSIGNMENT_STATEMENT", {
165
            "lhs" : ["SIMPLE_NAME", "display"], "rhs" : ["EXPRESSION", {
166
              "args" : [["EXPRESSION", {
167
                "args" : [["EXPRESSION", {
168
                  "args" : [["EXPRESSION", {
169
                    "args" : [["CALL", ["INDEXED_NAME", {
170
                      "id" : ["SIMPLE_NAME", "display_string"], "exprs" : [["EXPRESSION", {
171
                        "args" : [["EXPRESSION", {
172
                          "args" : [["EXPRESSION", {
173
                            "args" : [["EXPRESSION", {
174
                              "args" : [["CALL", ["SIMPLE_NAME", "item_name"]]]}
175
                            ]]}
176
                          ]]}
177
                        ]]}
178
                      ]]}
179
                    ]]]}
180
                  ]]}
181
                ]]}
182
              ]]}
183
            ]}
184
          ], ["VARIABLE_ASSIGNMENT_STATEMENT", {
185
            "lhs" : ["SIMPLE_NAME", "big"], "rhs" : ["EXPRESSION", {
186
              "args" : [["EXPRESSION", {
187
                "args" : [["EXPRESSION", {
188
                  "args" : [["EXPRESSION", {
189
                    "args" : [["CALL", ["SIMPLE_NAME", "little"]]]}
190
                  ]]}
191
                ]]}
192
              ]]}
193
            ]}
194
          ], ["VARIABLE_ASSIGNMENT_STATEMENT", {
195
            "lhs" : ["SIMPLE_NAME", "little"], "rhs" : ["EXPRESSION", {
196
              "args" : [["EXPRESSION", {
197
                "args" : [["EXPRESSION", {
198
                  "args" : [["EXPRESSION", {
199
                    "args" : [["CALL", ["SIMPLE_NAME", "big"]]]}
200
                  ]]}
201
                ]]}
202
              ]]}
203
            ]}
204
          ], ["WAIT_STATEMENT"]]}
205
        ]]}
206
      ]}
207
    ]}
208
  }