Project

General

Profile

Download (5.08 KB) Statistics
| Branch: | Tag: | Revision:
1
{
2
  "DESIGN_FILE" : {
3
    "design_units" : [{
4
      "contexts" : [], "library" : ["ENTITY_DECLARATION", {
5
        "name" : ["IDENTIFIER", "comp2"], "ports" : [{
6
          "names" : [["IDENTIFIER", "a"]], "mode" : ["in"], "typ" : {
7
            "name" : ["SIMPLE_NAME", "bit_vector"]}
8
          }
9
        ], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
10
      ]}
11
    , {
12
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
13
        "name" : ["IDENTIFIER", "arch"], "entity" : ["IDENTIFIER", "comp2"], "ARCHITECTURE_DECLARATIVE_PART" : [{
14
          "declaration" : ["CONSTANT_DECLARATION", {
15
            "names" : [["IDENTIFIER", "DATAPATH"]], "typ" : {
16
              "name" : ["SIMPLE_NAME", "natural"]}
17
            , "init_val" : ["EXPRESSION", {
18
              "args" : [["EXPRESSION", {
19
                "args" : [["EXPRESSION", {
20
                  "args" : [["EXPRESSION", {
21
                    "args" : [["CALL", ["ATTRIBUTE_NAME", {
22
                      "id" : ["SIMPLE_NAME", "a"], "designator" : ["SIMPLE_NAME", "length"]}
23
                    ]]]}
24
                  ]]}
25
                ]]}
26
              ]]}
27
            ]}
28
          ]}
29
        , {
30
          "declaration" : ["SIGNAL_DECLARATION", {
31
            "names" : [["IDENTIFIER", "tmp"]], "typ" : {
32
              "name" : ["SIMPLE_NAME", "bit"]}
33
            }
34
          ]}
35
        ], "ARCHITECTURE_STATEMENT_PART" : [["CONDITIONAL_SIGNAL_ASSIGNMENT", {
36
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "tmp"], "rhs" : [{
37
            "expr" : [{
38
              "value" : ["EXPRESSION", {
39
                "args" : [["EXPRESSION", {
40
                  "args" : [["EXPRESSION", {
41
                    "args" : [["EXPRESSION", {
42
                      "args" : [["CALL", ["FUNCTION_CALL", {
43
                        "id" : ["SIMPLE_NAME", "a"], "assoc_list" : [{
44
                          "actual_expr" : ["EXPRESSION", {
45
                            "args" : [["EXPRESSION", {
46
                              "args" : [["EXPRESSION", {
47
                                "args" : [["EXPRESSION", {
48
                                  "id" : "+", "args" : [["EXPRESSION", {
49
                                    "args" : [["CALL", ["SIMPLE_NAME", "DATAPATH"]]]}
50
                                  ], ["EXPRESSION", {
51
                                    "args" : [["CONSTANT_VALUE", {
52
                                      "value" : ["CST_LITERAL", "3"]}
53
                                    ]]}
54
                                  ]]}
55
                                ]]}
56
                              ]]}
57
                            ]]}
58
                          ]}
59
                        ]}
60
                      ]]]}
61
                    ]]}
62
                  ]]}
63
                ]]}
64
              ]}
65
            ]}
66
          ]}
67
        ]]}
68
      ]}
69
    , {
70
      "contexts" : [], "library" : ["ENTITY_DECLARATION", {
71
        "name" : ["IDENTIFIER", "index_range_test_A"], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
72
      ]}
73
    , {
74
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
75
        "name" : ["IDENTIFIER", "arch"], "entity" : ["IDENTIFIER", "index_range_test_A"], "ARCHITECTURE_DECLARATIVE_PART" : [{
76
          "declaration" : ["CONSTANT_DECLARATION", {
77
            "names" : [["IDENTIFIER", "DATAPATH"]], "typ" : {
78
              "name" : ["SIMPLE_NAME", "natural"]}
79
            , "init_val" : ["EXPRESSION", {
80
              "args" : [["EXPRESSION", {
81
                "args" : [["EXPRESSION", {
82
                  "args" : [["EXPRESSION", {
83
                    "args" : [["CONSTANT_VALUE", {
84
                      "value" : ["CST_LITERAL", "16"]}
85
                    ]]}
86
                  ]]}
87
                ]]}
88
              ]]}
89
            ]}
90
          ]}
91
        , {
92
          "declaration" : ["SIGNAL_DECLARATION", {
93
            "names" : [["IDENTIFIER", "a"]], "typ" : {
94
              "name" : ["SIMPLE_NAME", "bit_vector"], "const" : ["INDEX_CONSTRAINT", {
95
                "ranges" : [["RANGE_WITH_DIRECTION", {
96
                  "direction" : "downto", "from" : ["EXPRESSION", {
97
                    "args" : [["EXPRESSION", {
98
                      "id" : "-", "args" : [["EXPRESSION", {
99
                        "args" : [["CALL", ["SIMPLE_NAME", "DATAPATH"]]]}
100
                      ], ["EXPRESSION", {
101
                        "args" : [["CONSTANT_VALUE", {
102
                          "value" : ["CST_LITERAL", "1"]}
103
                        ]]}
104
                      ]]}
105
                    ]]}
106
                  ], "_to" : ["EXPRESSION", {
107
                    "args" : [["EXPRESSION", {
108
                      "args" : [["CONSTANT_VALUE", {
109
                        "value" : ["CST_LITERAL", "0"]}
110
                      ]]}
111
                    ]]}
112
                  ]}
113
                ]]}
114
              ]}
115
            }
116
          ]}
117
        ], "ARCHITECTURE_STATEMENT_PART" : [["COMPONENT_INSTANTIATION_STATEMENT", {
118
          "name" : ["IDENTIFIER", "i_comp"], "inst_unit" : ["SELECTED_NAME", [["SIMPLE_NAME", "work"], ["IDENTIFIER", "comp2"]]], "inst_unit_type" : "entity", "port_map" : [{
119
            "actual_designator" : ["SIMPLE_NAME", "a"]}
120
          ]}
121
        ]]}
122
      ]}
123
    ]}
124
  }
(1-1/4)