Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (4.33 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" : ["ARCHITECTURE_BODY", {
9
        "name" : ["IDENTIFIER", "behav"], "entity" : ["IDENTIFIER", "crash"], "ARCHITECTURE_DECLARATIVE_PART" : [{
10
          "declaration" : ["CONSTANT_DECLARATION", {
11
            "names" : [["IDENTIFIER", "data_width"]], "typ" : {
12
              "name" : ["SIMPLE_NAME", "natural"]}
13
            , "init_val" : ["EXPRESSION", {
14
              "args" : [["EXPRESSION", {
15
                "args" : [["EXPRESSION", {
16
                  "args" : [["EXPRESSION", {
17
                    "args" : [["CONSTANT_VALUE", {
18
                      "value" : ["CST_LITERAL", "8"]}
19
                    ]]}
20
                  ]]}
21
                ]]}
22
              ]]}
23
            ]}
24
          ]}
25
        , {
26
          "definition" : ["TYPE_DECLARATION", {
27
            "name" : ["IDENTIFIER", "data_type"], "definition" : ["RECORD_TYPE_DEFINITION", [{
28
              "names" : [["IDENTIFIER", "data"]], "definition" : {
29
                "name" : ["SIMPLE_NAME", "bit_vector"], "const" : ["INDEX_CONSTRAINT", {
30
                  "ranges" : [["RANGE_WITH_DIRECTION", {
31
                    "direction" : "downto", "from" : ["EXPRESSION", {
32
                      "args" : [["EXPRESSION", {
33
                        "id" : "-", "args" : [["EXPRESSION", {
34
                          "args" : [["CALL", ["SIMPLE_NAME", "data_width"]]]}
35
                        ], ["EXPRESSION", {
36
                          "args" : [["CONSTANT_VALUE", {
37
                            "value" : ["CST_LITERAL", "1"]}
38
                          ]]}
39
                        ]]}
40
                      ]]}
41
                    ], "_to" : ["EXPRESSION", {
42
                      "args" : [["EXPRESSION", {
43
                        "args" : [["CONSTANT_VALUE", {
44
                          "value" : ["CST_LITERAL", "0"]}
45
                        ]]}
46
                      ]]}
47
                    ]}
48
                  ]]}
49
                ]}
50
              }
51
            , {
52
              "names" : [["IDENTIFIER", "enable"]], "definition" : {
53
                "name" : ["SIMPLE_NAME", "bit"]}
54
              }
55
            ]]}
56
          ]}
57
        , {
58
          "definition" : ["TYPE_DECLARATION", {
59
            "name" : ["IDENTIFIER", "port_type"], "definition" : ["ARRAY_TYPE_DEFINITION", {
60
              "const" : ["INDEX_CONSTRAINT", {
61
                "ranges" : [["RANGE_WITH_DIRECTION", {
62
                  "direction" : "to", "from" : ["EXPRESSION", {
63
                    "args" : [["EXPRESSION", {
64
                      "args" : [["CONSTANT_VALUE", {
65
                        "value" : ["CST_LITERAL", "0"]}
66
                      ]]}
67
                    ]]}
68
                  ], "_to" : ["EXPRESSION", {
69
                    "args" : [["EXPRESSION", {
70
                      "args" : [["CONSTANT_VALUE", {
71
                        "value" : ["CST_LITERAL", "15"]}
72
                      ]]}
73
                    ]]}
74
                  ]}
75
                ]]}
76
              ], "definition" : {
77
                "name" : ["SIMPLE_NAME", "data_type"]}
78
              }
79
            ]}
80
          ]}
81
        , {
82
          "declaration" : ["SIGNAL_DECLARATION", {
83
            "names" : [["IDENTIFIER", "s"]], "typ" : {
84
              "name" : ["SIMPLE_NAME", "port_type"]}
85
            }
86
          ]}
87
        ], "ARCHITECTURE_STATEMENT_PART" : [["CONDITIONAL_SIGNAL_ASSIGNMENT", {
88
          "postponed" : false, "lhs" : ["SELECTED_NAME", [["FUNCTION_CALL", {
89
            "id" : ["SIMPLE_NAME", "s"], "assoc_list" : [{
90
              "actual_designator" : ["ATTRIBUTE_NAME", {
91
                "id" : ["SIMPLE_NAME", "s"], "designator" : ["SIMPLE_NAME", "range"]}
92
              ]}
93
            ]}
94
          ], ["IDENTIFIER", "enable"]]], "rhs" : [{
95
            "expr" : [{
96
              "value" : ["EXPRESSION", {
97
                "args" : [["EXPRESSION", {
98
                  "args" : [["EXPRESSION", {
99
                    "args" : [["EXPRESSION", {
100
                      "args" : [["CONSTANT_VALUE", {
101
                        "value" : ["CST_LITERAL", "'0'"]}
102
                      ]]}
103
                    ]]}
104
                  ]]}
105
                ]]}
106
              ]}
107
            ]}
108
          ]}
109
        ]]}
110
      ]}
111
    ]}
112
  }