Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

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