Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / vhdl_json / vhdl_files / 2-exportOK / ghdl / ghdl / testsuite / gna / ticket9 / index_range_test_B.json @ 3fd18385

History | View | Annotate | Download (4 KB)

1
{
2
  "DESIGN_FILE" : {
3
    "design_units" : [{
4
      "contexts" : [], "library" : ["ENTITY_DECLARATION", {
5
        "name" : ["IDENTIFIER", "index_range_test_B"], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
6
      ]}
7
    , {
8
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
9
        "name" : ["IDENTIFIER", "arch"], "entity" : ["IDENTIFIER", "index_range_test_B"], "ARCHITECTURE_DECLARATIVE_PART" : [{
10
          "declaration" : ["SIGNAL_DECLARATION", {
11
            "names" : [["IDENTIFIER", "a"]], "typ" : {
12
              "name" : ["SIMPLE_NAME", "bit_vector"], "const" : ["INDEX_CONSTRAINT", {
13
                "ranges" : [["RANGE_WITH_DIRECTION", {
14
                  "direction" : "downto", "from" : ["EXPRESSION", {
15
                    "args" : [["EXPRESSION", {
16
                      "args" : [["CONSTANT_VALUE", {
17
                        "value" : ["CST_LITERAL", "15"]}
18
                      ]]}
19
                    ]]}
20
                  ], "_to" : ["EXPRESSION", {
21
                    "args" : [["EXPRESSION", {
22
                      "args" : [["CONSTANT_VALUE", {
23
                        "value" : ["CST_LITERAL", "0"]}
24
                      ]]}
25
                    ]]}
26
                  ]}
27
                ]]}
28
              ]}
29
            }
30
          ]}
31
        , {
32
          "declaration" : ["SIGNAL_DECLARATION", {
33
            "names" : [["IDENTIFIER", "tmp"]], "typ" : {
34
              "name" : ["SIMPLE_NAME", "bit"]}
35
            }
36
          ]}
37
        , {
38
          "declaration" : ["SIGNAL_DECLARATION", {
39
            "names" : [["IDENTIFIER", "i"]], "typ" : {
40
              "name" : ["SIMPLE_NAME", "integer"]}
41
            }
42
          ]}
43
        , {
44
          "declaration" : ["CONSTANT_DECLARATION", {
45
            "names" : [["IDENTIFIER", "DATAPATH"]], "typ" : {
46
              "name" : ["SIMPLE_NAME", "natural"]}
47
            , "init_val" : ["EXPRESSION", {
48
              "args" : [["EXPRESSION", {
49
                "args" : [["EXPRESSION", {
50
                  "args" : [["EXPRESSION", {
51
                    "args" : [["CALL", ["ATTRIBUTE_NAME", {
52
                      "id" : ["SIMPLE_NAME", "a"], "designator" : ["SIMPLE_NAME", "length"]}
53
                    ]]]}
54
                  ]]}
55
                ]]}
56
              ]]}
57
            ]}
58
          ]}
59
        ], "ARCHITECTURE_STATEMENT_PART" : [["CONDITIONAL_SIGNAL_ASSIGNMENT", {
60
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "i"], "rhs" : [{
61
            "expr" : [{
62
              "value" : ["EXPRESSION", {
63
                "args" : [["EXPRESSION", {
64
                  "args" : [["EXPRESSION", {
65
                    "args" : [["EXPRESSION", {
66
                      "id" : "+", "args" : [["EXPRESSION", {
67
                        "args" : [["CALL", ["SIMPLE_NAME", "DATAPATH"]]]}
68
                      ], ["EXPRESSION", {
69
                        "args" : [["CONSTANT_VALUE", {
70
                          "value" : ["CST_LITERAL", "3"]}
71
                        ]]}
72
                      ]]}
73
                    ]]}
74
                  ]]}
75
                ]]}
76
              ]}
77
            ]}
78
          ]}
79
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
80
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "tmp"], "rhs" : [{
81
            "expr" : [{
82
              "value" : ["EXPRESSION", {
83
                "args" : [["EXPRESSION", {
84
                  "args" : [["EXPRESSION", {
85
                    "args" : [["EXPRESSION", {
86
                      "args" : [["CALL", ["INDEXED_NAME", {
87
                        "id" : ["SIMPLE_NAME", "a"], "exprs" : [["EXPRESSION", {
88
                          "args" : [["EXPRESSION", {
89
                            "args" : [["EXPRESSION", {
90
                              "args" : [["EXPRESSION", {
91
                                "args" : [["CALL", ["SIMPLE_NAME", "i"]]]}
92
                              ]]}
93
                            ]]}
94
                          ]]}
95
                        ]]}
96
                      ]]]}
97
                    ]]}
98
                  ]]}
99
                ]]}
100
              ]}
101
            ]}
102
          ]}
103
        ]]}
104
      ]}
105
    ]}
106
  }