Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / vhdl_json / vhdl_files / 2-exportOK / ghdl / ghdl / testsuite / gna / bug18659 / crash.json @ 2051e520

History | View | Annotate | Download (4.94 KB)

1
{
2
  "DESIGN_FILE" : {
3
    "design_units" : [{
4
      "contexts" : [], "library" : ["ENTITY_DECLARATION", {
5
        "name" : ["IDENTIFIER", "crash"], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
6
      ]}
7
    , {
8
      "contexts" : [["LIBRARY_CLAUSE", [["IDENTIFIER", "ieee"]]], ["USE_CLAUSE", [["SELECTED_NAME", [["SIMPLE_NAME", "ieee"], ["SIMPLE_NAME", "std_logic_1164"]]]]]], "library" : ["ARCHITECTURE_BODY", {
9
        "name" : ["IDENTIFIER", "test"], "entity" : ["IDENTIFIER", "crash"], "ARCHITECTURE_DECLARATIVE_PART" : [{
10
          "definition" : ["TYPE_DECLARATION", {
11
            "name" : ["IDENTIFIER", "t_mem2D"], "definition" : ["ARRAY_TYPE_DEFINITION", {
12
              "indexes" : [["SIMPLE_NAME", "natural"], ["SIMPLE_NAME", "natural"]], "definition" : {
13
                "name" : ["SIMPLE_NAME", "std_logic"]}
14
              }
15
            ]}
16
          ]}
17
        ], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
18
          "PROCESS_DECLARATIVE_PART" : [{
19
            "declaration" : ["VARIABLE_DECLARATION", {
20
              "names" : [["IDENTIFIER", "var_array"]], "typ" : {
21
                "name" : ["SIMPLE_NAME", "t_mem2D"], "const" : ["INDEX_CONSTRAINT", {
22
                  "ranges" : [["RANGE_WITH_DIRECTION", {
23
                    "direction" : "to", "from" : ["EXPRESSION", {
24
                      "args" : [["EXPRESSION", {
25
                        "args" : [["CONSTANT_VALUE", {
26
                          "value" : ["CST_LITERAL", "0"]}
27
                        ]]}
28
                      ]]}
29
                    ], "_to" : ["EXPRESSION", {
30
                      "args" : [["EXPRESSION", {
31
                        "args" : [["CONSTANT_VALUE", {
32
                          "value" : ["CST_LITERAL", "5"]}
33
                        ]]}
34
                      ]]}
35
                    ]}
36
                  ], ["RANGE_WITH_DIRECTION", {
37
                    "direction" : "downto", "from" : ["EXPRESSION", {
38
                      "args" : [["EXPRESSION", {
39
                        "args" : [["CONSTANT_VALUE", {
40
                          "value" : ["CST_LITERAL", "7"]}
41
                        ]]}
42
                      ]]}
43
                    ], "_to" : ["EXPRESSION", {
44
                      "args" : [["EXPRESSION", {
45
                        "args" : [["CONSTANT_VALUE", {
46
                          "value" : ["CST_LITERAL", "0"]}
47
                        ]]}
48
                      ]]}
49
                    ]}
50
                  ]]}
51
                ]}
52
              }
53
            ]}
54
          ], "PROCESS_STATEMENT_PART" : [["ASSERTION_STATEMENT", {
55
            "cond" : ["EXPRESSION", {
56
              "id" : "=", "args" : [["EXPRESSION", {
57
                "args" : [["EXPRESSION", {
58
                  "args" : [["EXPRESSION", {
59
                    "args" : [["CALL", ["SIMPLE_NAME", "var_array"]]]}
60
                  ]]}
61
                ]]}
62
              ], ["EXPRESSION", {
63
                "args" : [["EXPRESSION", {
64
                  "args" : [["EXPRESSION", {
65
                    "args" : [["QUALIFIED_EXPRESSION", {
66
                      "type_mark" : ["SIMPLE_NAME", "t_mem2D"], "aggregate" : [{
67
                        "expr" : ["EXPRESSION", {
68
                          "args" : [["EXPRESSION", {
69
                            "args" : [["EXPRESSION", {
70
                              "args" : [["EXPRESSION", {
71
                                "args" : [["CONSTANT_VALUE", {
72
                                  "value" : ["CST_LITERAL", "X\"DEAD\""]}
73
                                ]]}
74
                              ]]}
75
                            ]]}
76
                          ]]}
77
                        ]}
78
                      , {
79
                        "expr" : ["EXPRESSION", {
80
                          "args" : [["EXPRESSION", {
81
                            "args" : [["EXPRESSION", {
82
                              "args" : [["EXPRESSION", {
83
                                "args" : [["CONSTANT_VALUE", {
84
                                  "value" : ["CST_LITERAL", "X\"BEEF\""]}
85
                                ]]}
86
                              ]]}
87
                            ]]}
88
                          ]]}
89
                        ]}
90
                      ]}
91
                    ]]}
92
                  ]]}
93
                ]]}
94
              ]]}
95
            ], "report" : ["EXPRESSION", {
96
              "args" : [["EXPRESSION", {
97
                "args" : [["EXPRESSION", {
98
                  "args" : [["EXPRESSION", {
99
                    "args" : [["CONSTANT_VALUE", {
100
                      "value" : ["CST_LITERAL", "\"var array error\""]}
101
                    ]]}
102
                  ]]}
103
                ]]}
104
              ]]}
105
            ], "severity" : ["EXPRESSION", {
106
              "args" : [["EXPRESSION", {
107
                "args" : [["EXPRESSION", {
108
                  "args" : [["EXPRESSION", {
109
                    "args" : [["CALL", ["SIMPLE_NAME", "error"]]]}
110
                  ]]}
111
                ]]}
112
              ]]}
113
            ]}
114
          ], ["WAIT_STATEMENT"]]}
115
        ]]}
116
      ]}
117
    ]}
118
  }