Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (7.5 KB)

1
{
2
  "DESIGN_FILE" : {
3
    "design_units" : [{
4
      "contexts" : [], "library" : ["ENTITY_DECLARATION", {
5
        "name" : ["IDENTIFIER", "ch_05_06"], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
6
      ]}
7
    , {
8
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
9
        "name" : ["IDENTIFIER", "test"], "entity" : ["IDENTIFIER", "ch_05_06"], "ARCHITECTURE_DECLARATIVE_PART" : [{
10
          "declaration" : ["SIGNAL_DECLARATION", {
11
            "names" : [["IDENTIFIER", "y"]], "typ" : {
12
              "name" : ["SIMPLE_NAME", "bit"]}
13
            , "init_val" : ["EXPRESSION", {
14
              "args" : [["EXPRESSION", {
15
                "args" : [["EXPRESSION", {
16
                  "args" : [["EXPRESSION", {
17
                    "args" : [["CONSTANT_VALUE", {
18
                      "value" : ["CST_LITERAL", "'0'"]}
19
                    ]]}
20
                  ]]}
21
                ]]}
22
              ]]}
23
            ]}
24
          ]}
25
        , {
26
          "declaration" : ["SIGNAL_DECLARATION", {
27
            "names" : [["IDENTIFIER", "or_a_b"]], "typ" : {
28
              "name" : ["SIMPLE_NAME", "bit"]}
29
            , "init_val" : ["EXPRESSION", {
30
              "args" : [["EXPRESSION", {
31
                "args" : [["EXPRESSION", {
32
                  "args" : [["EXPRESSION", {
33
                    "args" : [["CONSTANT_VALUE", {
34
                      "value" : ["CST_LITERAL", "'0'"]}
35
                    ]]}
36
                  ]]}
37
                ]]}
38
              ]]}
39
            ]}
40
          ]}
41
        , {
42
          "declaration" : ["SIGNAL_DECLARATION", {
43
            "names" : [["IDENTIFIER", "clk"]], "typ" : {
44
              "name" : ["SIMPLE_NAME", "bit"]}
45
            , "init_val" : ["EXPRESSION", {
46
              "args" : [["EXPRESSION", {
47
                "args" : [["EXPRESSION", {
48
                  "args" : [["EXPRESSION", {
49
                    "args" : [["CONSTANT_VALUE", {
50
                      "value" : ["CST_LITERAL", "'0'"]}
51
                    ]]}
52
                  ]]}
53
                ]]}
54
              ]]}
55
            ]}
56
          ]}
57
        ], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
58
          "id" : ["IDENTIFIER", "process_05_3_a"], "PROCESS_STATEMENT_PART" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
59
            "lhs" : ["SIMPLE_NAME", "y"], "rhs" : [{
60
              "value" : ["EXPRESSION", {
61
                "args" : [["EXPRESSION", {
62
                  "args" : [["EXPRESSION", {
63
                    "args" : [["EXPRESSION", {
64
                      "id" : "not", "args" : [["CALL", ["SIMPLE_NAME", "or_a_b"]]]}
65
                    ]]}
66
                  ]]}
67
                ]]}
68
              ], "delay" : ["EXPRESSION", {
69
                "args" : [["EXPRESSION", {
70
                  "args" : [["EXPRESSION", {
71
                    "args" : [["EXPRESSION", {
72
                      "args" : [["CONSTANT_VALUE", {
73
                        "value" : ["CST_LITERAL", "5"], "unit_name" : ["SIMPLE_NAME", "ns"]}
74
                      ]]}
75
                    ]]}
76
                  ]]}
77
                ]]}
78
              ]}
79
            ]}
80
          ], ["WAIT_STATEMENT"]]}
81
        ], ["PROCESS_STATEMENT", {
82
          "id" : ["IDENTIFIER", "stimulus_05_3_a"], "PROCESS_STATEMENT_PART" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
83
            "lhs" : ["SIMPLE_NAME", "or_a_b"], "rhs" : [{
84
              "value" : ["EXPRESSION", {
85
                "args" : [["EXPRESSION", {
86
                  "args" : [["EXPRESSION", {
87
                    "args" : [["EXPRESSION", {
88
                      "args" : [["CONSTANT_VALUE", {
89
                        "value" : ["CST_LITERAL", "'1'"]}
90
                      ]]}
91
                    ]]}
92
                  ]]}
93
                ]]}
94
              ], "delay" : ["EXPRESSION", {
95
                "args" : [["EXPRESSION", {
96
                  "args" : [["EXPRESSION", {
97
                    "args" : [["EXPRESSION", {
98
                      "args" : [["CONSTANT_VALUE", {
99
                        "value" : ["CST_LITERAL", "20"], "unit_name" : ["SIMPLE_NAME", "ns"]}
100
                      ]]}
101
                    ]]}
102
                  ]]}
103
                ]]}
104
              ]}
105
            , {
106
              "value" : ["EXPRESSION", {
107
                "args" : [["EXPRESSION", {
108
                  "args" : [["EXPRESSION", {
109
                    "args" : [["EXPRESSION", {
110
                      "args" : [["CONSTANT_VALUE", {
111
                        "value" : ["CST_LITERAL", "'0'"]}
112
                      ]]}
113
                    ]]}
114
                  ]]}
115
                ]]}
116
              ], "delay" : ["EXPRESSION", {
117
                "args" : [["EXPRESSION", {
118
                  "args" : [["EXPRESSION", {
119
                    "args" : [["EXPRESSION", {
120
                      "args" : [["CONSTANT_VALUE", {
121
                        "value" : ["CST_LITERAL", "40"], "unit_name" : ["SIMPLE_NAME", "ns"]}
122
                      ]]}
123
                    ]]}
124
                  ]]}
125
                ]]}
126
              ]}
127
            ]}
128
          ], ["WAIT_STATEMENT"]]}
129
        ], ["PROCESS_STATEMENT", {
130
          "id" : ["IDENTIFIER", "process_05_3_b"], "PROCESS_DECLARATIVE_PART" : [{
131
            "declaration" : ["CONSTANT_DECLARATION", {
132
              "names" : [["IDENTIFIER", "T_pw"]], "typ" : {
133
                "name" : ["SIMPLE_NAME", "delay_length"]}
134
              , "init_val" : ["EXPRESSION", {
135
                "args" : [["EXPRESSION", {
136
                  "args" : [["EXPRESSION", {
137
                    "args" : [["EXPRESSION", {
138
                      "args" : [["CONSTANT_VALUE", {
139
                        "value" : ["CST_LITERAL", "10"], "unit_name" : ["SIMPLE_NAME", "ns"]}
140
                      ]]}
141
                    ]]}
142
                  ]]}
143
                ]]}
144
              ]}
145
            ]}
146
          ], "PROCESS_STATEMENT_PART" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
147
            "lhs" : ["SIMPLE_NAME", "clk"], "rhs" : [{
148
              "value" : ["EXPRESSION", {
149
                "args" : [["EXPRESSION", {
150
                  "args" : [["EXPRESSION", {
151
                    "args" : [["EXPRESSION", {
152
                      "args" : [["CONSTANT_VALUE", {
153
                        "value" : ["CST_LITERAL", "'1'"]}
154
                      ]]}
155
                    ]]}
156
                  ]]}
157
                ]]}
158
              ], "delay" : ["EXPRESSION", {
159
                "args" : [["EXPRESSION", {
160
                  "args" : [["EXPRESSION", {
161
                    "args" : [["EXPRESSION", {
162
                      "args" : [["CALL", ["SIMPLE_NAME", "T_pw"]]]}
163
                    ]]}
164
                  ]]}
165
                ]]}
166
              ]}
167
            , {
168
              "value" : ["EXPRESSION", {
169
                "args" : [["EXPRESSION", {
170
                  "args" : [["EXPRESSION", {
171
                    "args" : [["EXPRESSION", {
172
                      "args" : [["CONSTANT_VALUE", {
173
                        "value" : ["CST_LITERAL", "'0'"]}
174
                      ]]}
175
                    ]]}
176
                  ]]}
177
                ]]}
178
              ], "delay" : ["EXPRESSION", {
179
                "args" : [["EXPRESSION", {
180
                  "args" : [["EXPRESSION", {
181
                    "args" : [["EXPRESSION", {
182
                      "id" : "*", "args" : [["EXPRESSION", {
183
                        "args" : [["CONSTANT_VALUE", {
184
                          "value" : ["CST_LITERAL", "2"]}
185
                        ]]}
186
                      ], ["EXPRESSION", {
187
                        "args" : [["CALL", ["SIMPLE_NAME", "T_pw"]]]}
188
                      ]]}
189
                    ]]}
190
                  ]]}
191
                ]]}
192
              ]}
193
            ]}
194
          ], ["WAIT_STATEMENT"]]}
195
        ]]}
196
      ]}
197
    ]}
198
  }