Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (2.67 KB)

1
{
2
  "DESIGN_FILE" : {
3
    "design_units" : [{
4
      "contexts" : [["LIBRARY_CLAUSE", [["IDENTIFIER", "ieee"]]], ["USE_CLAUSE", [["SELECTED_NAME", [["SIMPLE_NAME", "ieee"], ["SIMPLE_NAME", "std_logic_1164"]]]]]], "library" : ["ENTITY_DECLARATION", {
5
        "name" : ["IDENTIFIER", "subBlock"], "ports" : [{
6
          "names" : [["IDENTIFIER", "outPort"]], "mode" : ["out"], "typ" : {
7
            "name" : ["SIMPLE_NAME", "std_logic"]}
8
          }
9
        , {
10
          "names" : [["IDENTIFIER", "inPort"]], "mode" : ["in"], "typ" : {
11
            "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
12
              "ranges" : [["RANGE_WITH_DIRECTION", {
13
                "direction" : "downto", "from" : ["EXPRESSION", {
14
                  "args" : [["EXPRESSION", {
15
                    "args" : [["CONSTANT_VALUE", {
16
                      "value" : ["CST_LITERAL", "3"]}
17
                    ]]}
18
                  ]]}
19
                ], "_to" : ["EXPRESSION", {
20
                  "args" : [["EXPRESSION", {
21
                    "args" : [["CONSTANT_VALUE", {
22
                      "value" : ["CST_LITERAL", "0"]}
23
                    ]]}
24
                  ]]}
25
                ]}
26
              ]]}
27
            ]}
28
          }
29
        ], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
30
      ]}
31
    , {
32
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
33
        "name" : ["IDENTIFIER", "behavioral"], "entity" : ["IDENTIFIER", "subBlock"], "ARCHITECTURE_DECLARATIVE_PART" : [], "ARCHITECTURE_STATEMENT_PART" : [["CONDITIONAL_SIGNAL_ASSIGNMENT", {
34
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "outPort"], "rhs" : [{
35
            "expr" : [{
36
              "value" : ["EXPRESSION", {
37
                "args" : [["EXPRESSION", {
38
                  "args" : [["EXPRESSION", {
39
                    "args" : [["EXPRESSION", {
40
                      "args" : [["CALL", ["FUNCTION_CALL", {
41
                        "id" : ["SIMPLE_NAME", "inPort"], "assoc_list" : [{
42
                          "actual_expr" : ["EXPRESSION", {
43
                            "args" : [["EXPRESSION", {
44
                              "args" : [["EXPRESSION", {
45
                                "args" : [["EXPRESSION", {
46
                                  "args" : [["CONSTANT_VALUE", {
47
                                    "value" : ["CST_LITERAL", "0"]}
48
                                  ]]}
49
                                ]]}
50
                              ]]}
51
                            ]]}
52
                          ]}
53
                        ]}
54
                      ]]]}
55
                    ]]}
56
                  ]]}
57
                ]]}
58
              ]}
59
            ]}
60
          ]}
61
        ]]}
62
      ]}
63
    ]}
64
  }