Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (5.59 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", "submodule"], "ports" : [{
6
          "names" : [["IDENTIFIER", "clk"]], "mode" : ["in"], "typ" : {
7
            "name" : ["SIMPLE_NAME", "std_logic"]}
8
          }
9
        , {
10
          "names" : [["IDENTIFIER", "arg"]], "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", "7"]}
17
                    ]]}
18
                  ]]}
19
                ], "_to" : ["EXPRESSION", {
20
                  "args" : [["EXPRESSION", {
21
                    "args" : [["CONSTANT_VALUE", {
22
                      "value" : ["CST_LITERAL", "0"]}
23
                    ]]}
24
                  ]]}
25
                ]}
26
              ]]}
27
            ]}
28
          }
29
        , {
30
          "names" : [["IDENTIFIER", "res"]], "mode" : ["out"], "typ" : {
31
            "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
32
              "ranges" : [["RANGE_WITH_DIRECTION", {
33
                "direction" : "downto", "from" : ["EXPRESSION", {
34
                  "args" : [["EXPRESSION", {
35
                    "args" : [["CONSTANT_VALUE", {
36
                      "value" : ["CST_LITERAL", "7"]}
37
                    ]]}
38
                  ]]}
39
                ], "_to" : ["EXPRESSION", {
40
                  "args" : [["EXPRESSION", {
41
                    "args" : [["CONSTANT_VALUE", {
42
                      "value" : ["CST_LITERAL", "0"]}
43
                    ]]}
44
                  ]]}
45
                ]}
46
              ]]}
47
            ]}
48
          }
49
        ], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
50
      ]}
51
    , {
52
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
53
        "name" : ["IDENTIFIER", "rtl"], "entity" : ["IDENTIFIER", "submodule"], "ARCHITECTURE_DECLARATIVE_PART" : [], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
54
          "id" : ["IDENTIFIER", "sub_proc"], "PROCESS_DECLARATIVE_PART" : [{
55
            "declaration" : ["VARIABLE_DECLARATION", {
56
              "names" : [["IDENTIFIER", "last"]], "typ" : {
57
                "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
58
                  "ranges" : [["RANGE_WITH_DIRECTION", {
59
                    "direction" : "downto", "from" : ["EXPRESSION", {
60
                      "args" : [["EXPRESSION", {
61
                        "args" : [["CONSTANT_VALUE", {
62
                          "value" : ["CST_LITERAL", "7"]}
63
                        ]]}
64
                      ]]}
65
                    ], "_to" : ["EXPRESSION", {
66
                      "args" : [["EXPRESSION", {
67
                        "args" : [["CONSTANT_VALUE", {
68
                          "value" : ["CST_LITERAL", "0"]}
69
                        ]]}
70
                      ]]}
71
                    ]}
72
                  ]]}
73
                ]}
74
              }
75
            ]}
76
          ], "active_sigs" : [["SIMPLE_NAME", "clk"]], "PROCESS_STATEMENT_PART" : [["IF_STATEMENT", {
77
            "if_cases" : [{
78
              "if_cond" : ["EXPRESSION", {
79
                "args" : [["EXPRESSION", {
80
                  "args" : [["EXPRESSION", {
81
                    "args" : [["EXPRESSION", {
82
                      "args" : [["CALL", ["INDEXED_NAME", {
83
                        "id" : ["SIMPLE_NAME", "rising_edge"], "exprs" : [["EXPRESSION", {
84
                          "args" : [["EXPRESSION", {
85
                            "args" : [["EXPRESSION", {
86
                              "args" : [["EXPRESSION", {
87
                                "args" : [["CALL", ["SIMPLE_NAME", "clk"]]]}
88
                              ]]}
89
                            ]]}
90
                          ]]}
91
                        ]]}
92
                      ]]]}
93
                    ]]}
94
                  ]]}
95
                ]]}
96
              ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
97
                "lhs" : ["SIMPLE_NAME", "res"], "rhs" : [{
98
                  "value" : ["EXPRESSION", {
99
                    "id" : "XOR", "args" : [["EXPRESSION", {
100
                      "args" : [["EXPRESSION", {
101
                        "args" : [["EXPRESSION", {
102
                          "args" : [["EXPRESSION", {
103
                            "args" : [["CALL", ["SIMPLE_NAME", "arg"]]]}
104
                          ]]}
105
                        ]]}
106
                      ]]}
107
                    ], ["EXPRESSION", {
108
                      "args" : [["EXPRESSION", {
109
                        "args" : [["EXPRESSION", {
110
                          "args" : [["EXPRESSION", {
111
                            "args" : [["CALL", ["SIMPLE_NAME", "last"]]]}
112
                          ]]}
113
                        ]]}
114
                      ]]}
115
                    ]]}
116
                  ]}
117
                ]}
118
              ], ["VARIABLE_ASSIGNMENT_STATEMENT", {
119
                "lhs" : ["SIMPLE_NAME", "last"], "rhs" : ["EXPRESSION", {
120
                  "args" : [["EXPRESSION", {
121
                    "args" : [["EXPRESSION", {
122
                      "args" : [["EXPRESSION", {
123
                        "args" : [["CALL", ["SIMPLE_NAME", "arg"]]]}
124
                      ]]}
125
                    ]]}
126
                  ]]}
127
                ]}
128
              ]]}
129
            ]}
130
          ]]}
131
        ]]}
132
      ]}
133
    ]}
134
  }