Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / vhdl_json / vhdl_files / 2-exportOK / ghdl / ghdl / testsuite / vests / vhdl-93 / ashenden / compliant / ch_06_accr-b.json @ 3fd18385

History | View | Annotate | Download (5.75 KB)

1
{
2
  "DESIGN_FILE" : {
3
    "design_units" : [{
4
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
5
        "name" : ["IDENTIFIER", "behavioral"], "entity" : ["IDENTIFIER", "accumulator_reg"], "ARCHITECTURE_DECLARATIVE_PART" : [], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
6
          "id" : ["IDENTIFIER", "behavior"], "PROCESS_DECLARATIVE_PART" : [{
7
            "declaration" : ["CONSTANT_DECLARATION", {
8
              "names" : [["IDENTIFIER", "Tpd_clk_out"]], "typ" : {
9
                "name" : ["SIMPLE_NAME", "time"]}
10
              , "init_val" : ["EXPRESSION", {
11
                "args" : [["EXPRESSION", {
12
                  "args" : [["EXPRESSION", {
13
                    "args" : [["EXPRESSION", {
14
                      "args" : [["CONSTANT_VALUE", {
15
                        "value" : ["CST_LITERAL", "3"], "unit_name" : ["SIMPLE_NAME", "ns"]}
16
                      ]]}
17
                    ]]}
18
                  ]]}
19
                ]]}
20
              ]}
21
            ]}
22
          ], "active_sigs" : [["SIMPLE_NAME", "clk"]], "PROCESS_STATEMENT_PART" : [["IF_STATEMENT", {
23
            "if_cases" : [{
24
              "if_cond" : ["EXPRESSION", {
25
                "args" : [["EXPRESSION", {
26
                  "args" : [["EXPRESSION", {
27
                    "args" : [["EXPRESSION", {
28
                      "args" : [["CALL", ["INDEXED_NAME", {
29
                        "id" : ["SIMPLE_NAME", "rising_edge"], "exprs" : [["EXPRESSION", {
30
                          "args" : [["EXPRESSION", {
31
                            "args" : [["EXPRESSION", {
32
                              "args" : [["EXPRESSION", {
33
                                "args" : [["CALL", ["SIMPLE_NAME", "clk"]]]}
34
                              ]]}
35
                            ]]}
36
                          ]]}
37
                        ]]}
38
                      ]]]}
39
                    ]]}
40
                  ]]}
41
                ]]}
42
              ], "if_block" : [["IF_STATEMENT", {
43
                "if_cases" : [{
44
                  "if_cond" : ["EXPRESSION", {
45
                    "id" : "=", "args" : [["EXPRESSION", {
46
                      "args" : [["EXPRESSION", {
47
                        "args" : [["EXPRESSION", {
48
                          "args" : [["CALL", ["INDEXED_NAME", {
49
                            "id" : ["SIMPLE_NAME", "To_X01"], "exprs" : [["EXPRESSION", {
50
                              "args" : [["EXPRESSION", {
51
                                "args" : [["EXPRESSION", {
52
                                  "args" : [["EXPRESSION", {
53
                                    "args" : [["CALL", ["SIMPLE_NAME", "clr"]]]}
54
                                  ]]}
55
                                ]]}
56
                              ]]}
57
                            ]]}
58
                          ]]]}
59
                        ]]}
60
                      ]]}
61
                    ], ["EXPRESSION", {
62
                      "args" : [["EXPRESSION", {
63
                        "args" : [["EXPRESSION", {
64
                          "args" : [["CONSTANT_VALUE", {
65
                            "value" : ["CST_LITERAL", "'1'"]}
66
                          ]]}
67
                        ]]}
68
                      ]]}
69
                    ]]}
70
                  ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
71
                    "lhs" : ["SIMPLE_NAME", "q"], "rhs" : [{
72
                      "value" : ["EXPRESSION", {
73
                        "args" : [["EXPRESSION", {
74
                          "args" : [["EXPRESSION", {
75
                            "args" : [["EXPRESSION", {
76
                              "args" : [["AGGREGATE", {
77
                                "elems" : [{
78
                                  "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
79
                                    "args" : [["EXPRESSION", {
80
                                      "args" : [["EXPRESSION", {
81
                                        "args" : [["EXPRESSION", {
82
                                          "args" : [["CONSTANT_VALUE", {
83
                                            "value" : ["CST_LITERAL", "'0'"]}
84
                                          ]]}
85
                                        ]]}
86
                                      ]]}
87
                                    ]]}
88
                                  ]}
89
                                ]}
90
                              ]]}
91
                            ]]}
92
                          ]]}
93
                        ]]}
94
                      ], "delay" : ["EXPRESSION", {
95
                        "args" : [["EXPRESSION", {
96
                          "args" : [["EXPRESSION", {
97
                            "args" : [["EXPRESSION", {
98
                              "args" : [["CALL", ["SIMPLE_NAME", "Tpd_clk_out"]]]}
99
                            ]]}
100
                          ]]}
101
                        ]]}
102
                      ]}
103
                    ]}
104
                  ]]}
105
                ], "default" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
106
                  "lhs" : ["SIMPLE_NAME", "q"], "rhs" : [{
107
                    "value" : ["EXPRESSION", {
108
                      "args" : [["EXPRESSION", {
109
                        "args" : [["EXPRESSION", {
110
                          "args" : [["EXPRESSION", {
111
                            "args" : [["CALL", ["SIMPLE_NAME", "d"]]]}
112
                          ]]}
113
                        ]]}
114
                      ]]}
115
                    ], "delay" : ["EXPRESSION", {
116
                      "args" : [["EXPRESSION", {
117
                        "args" : [["EXPRESSION", {
118
                          "args" : [["EXPRESSION", {
119
                            "args" : [["CALL", ["SIMPLE_NAME", "Tpd_clk_out"]]]}
120
                          ]]}
121
                        ]]}
122
                      ]]}
123
                    ]}
124
                  ]}
125
                ]]}
126
              ]]}
127
            ]}
128
          ]]}
129
        ]]}
130
      ]}
131
    ]}
132
  }