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_tb_05_08.json @ 3fd18385

History | View | Annotate | Download (8.95 KB)

1
{
2
  "DESIGN_FILE" : {
3
    "design_units" : [{
4
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
5
        "name" : ["IDENTIFIER", "do_nothing"], "entity" : ["IDENTIFIER", "ROM"], "ARCHITECTURE_DECLARATIVE_PART" : [], "ARCHITECTURE_STATEMENT_PART" : []}
6
      ]}
7
    , {
8
      "contexts" : [], "library" : ["ENTITY_DECLARATION", {
9
        "name" : ["IDENTIFIER", "tb_05_08"], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
10
      ]}
11
    , {
12
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
13
        "name" : ["IDENTIFIER", "test"], "entity" : ["IDENTIFIER", "tb_05_08"], "ARCHITECTURE_DECLARATIVE_PART" : [{
14
          "declaration" : ["SIGNAL_DECLARATION", {
15
            "names" : [["IDENTIFIER", "address"]], "typ" : {
16
              "name" : ["SIMPLE_NAME", "natural"]}
17
            , "init_val" : ["EXPRESSION", {
18
              "args" : [["EXPRESSION", {
19
                "args" : [["EXPRESSION", {
20
                  "args" : [["EXPRESSION", {
21
                    "args" : [["CONSTANT_VALUE", {
22
                      "value" : ["CST_LITERAL", "0"]}
23
                    ]]}
24
                  ]]}
25
                ]]}
26
              ]]}
27
            ]}
28
          ]}
29
        , {
30
          "declaration" : ["SIGNAL_DECLARATION", {
31
            "names" : [["IDENTIFIER", "data"]], "typ" : {
32
              "name" : ["SIMPLE_NAME", "bit_vector"], "const" : ["INDEX_CONSTRAINT", {
33
                "ranges" : [["RANGE_WITH_DIRECTION", {
34
                  "direction" : "to", "from" : ["EXPRESSION", {
35
                    "args" : [["EXPRESSION", {
36
                      "args" : [["CONSTANT_VALUE", {
37
                        "value" : ["CST_LITERAL", "0"]}
38
                      ]]}
39
                    ]]}
40
                  ], "_to" : ["EXPRESSION", {
41
                    "args" : [["EXPRESSION", {
42
                      "args" : [["CONSTANT_VALUE", {
43
                        "value" : ["CST_LITERAL", "7"]}
44
                      ]]}
45
                    ]]}
46
                  ]}
47
                ]]}
48
              ]}
49
            }
50
          ]}
51
        , {
52
          "declaration" : ["SIGNAL_DECLARATION", {
53
            "names" : [["IDENTIFIER", "enable"]], "typ" : {
54
              "name" : ["SIMPLE_NAME", "bit"]}
55
            , "init_val" : ["EXPRESSION", {
56
              "args" : [["EXPRESSION", {
57
                "args" : [["EXPRESSION", {
58
                  "args" : [["EXPRESSION", {
59
                    "args" : [["CONSTANT_VALUE", {
60
                      "value" : ["CST_LITERAL", "'0'"]}
61
                    ]]}
62
                  ]]}
63
                ]]}
64
              ]]}
65
            ]}
66
          ]}
67
        ], "ARCHITECTURE_STATEMENT_PART" : [["COMPONENT_INSTANTIATION_STATEMENT", {
68
          "name" : ["IDENTIFIER", "dut"], "inst_unit" : ["SELECTED_NAME", [["SIMPLE_NAME", "work"], ["IDENTIFIER", "ROM"]]], "inst_unit_type" : "entity", "archi_name" : ["IDENTIFIER", "do_nothing"], "port_map" : [{
69
            "formal_name" : ["SIMPLE_NAME", "address"], "actual_designator" : ["SIMPLE_NAME", "address"]}
70
          , {
71
            "formal_name" : ["SIMPLE_NAME", "data"], "actual_designator" : ["SIMPLE_NAME", "data"]}
72
          , {
73
            "formal_name" : ["SIMPLE_NAME", "enable"], "actual_designator" : ["SIMPLE_NAME", "enable"]}
74
          ]}
75
        ], ["PROCESS_STATEMENT", {
76
          "id" : ["IDENTIFIER", "stimulus"], "PROCESS_STATEMENT_PART" : [["WAIT_STATEMENT"], ["SIGNAL_ASSIGNMENT_STATEMENT", {
77
            "lhs" : ["SIMPLE_NAME", "address"], "rhs" : [{
78
              "value" : ["EXPRESSION", {
79
                "args" : [["EXPRESSION", {
80
                  "args" : [["EXPRESSION", {
81
                    "args" : [["EXPRESSION", {
82
                      "args" : [["CONSTANT_VALUE", {
83
                        "value" : ["CST_LITERAL", "1000"]}
84
                      ]]}
85
                    ]]}
86
                  ]]}
87
                ]]}
88
              ]}
89
            ]}
90
          ], ["WAIT_STATEMENT"], ["SIGNAL_ASSIGNMENT_STATEMENT", {
91
            "lhs" : ["SIMPLE_NAME", "enable"], "rhs" : [{
92
              "value" : ["EXPRESSION", {
93
                "args" : [["EXPRESSION", {
94
                  "args" : [["EXPRESSION", {
95
                    "args" : [["EXPRESSION", {
96
                      "args" : [["CONSTANT_VALUE", {
97
                        "value" : ["CST_LITERAL", "'1'"]}
98
                      ]]}
99
                    ]]}
100
                  ]]}
101
                ]]}
102
              ]}
103
            , {
104
              "value" : ["EXPRESSION", {
105
                "args" : [["EXPRESSION", {
106
                  "args" : [["EXPRESSION", {
107
                    "args" : [["EXPRESSION", {
108
                      "args" : [["CONSTANT_VALUE", {
109
                        "value" : ["CST_LITERAL", "'0'"]}
110
                      ]]}
111
                    ]]}
112
                  ]]}
113
                ]]}
114
              ], "delay" : ["EXPRESSION", {
115
                "args" : [["EXPRESSION", {
116
                  "args" : [["EXPRESSION", {
117
                    "args" : [["EXPRESSION", {
118
                      "args" : [["CONSTANT_VALUE", {
119
                        "value" : ["CST_LITERAL", "10"], "unit_name" : ["SIMPLE_NAME", "ns"]}
120
                      ]]}
121
                    ]]}
122
                  ]]}
123
                ]]}
124
              ]}
125
            ]}
126
          ], ["WAIT_STATEMENT"], ["SIGNAL_ASSIGNMENT_STATEMENT", {
127
            "lhs" : ["SIMPLE_NAME", "address"], "rhs" : [{
128
              "value" : ["EXPRESSION", {
129
                "args" : [["EXPRESSION", {
130
                  "args" : [["EXPRESSION", {
131
                    "args" : [["EXPRESSION", {
132
                      "args" : [["CONSTANT_VALUE", {
133
                        "value" : ["CST_LITERAL", "1004"]}
134
                      ]]}
135
                    ]]}
136
                  ]]}
137
                ]]}
138
              ]}
139
            ]}
140
          ], ["WAIT_STATEMENT"], ["SIGNAL_ASSIGNMENT_STATEMENT", {
141
            "lhs" : ["SIMPLE_NAME", "enable"], "rhs" : [{
142
              "value" : ["EXPRESSION", {
143
                "args" : [["EXPRESSION", {
144
                  "args" : [["EXPRESSION", {
145
                    "args" : [["EXPRESSION", {
146
                      "args" : [["CONSTANT_VALUE", {
147
                        "value" : ["CST_LITERAL", "'1'"]}
148
                      ]]}
149
                    ]]}
150
                  ]]}
151
                ]]}
152
              ]}
153
            , {
154
              "value" : ["EXPRESSION", {
155
                "args" : [["EXPRESSION", {
156
                  "args" : [["EXPRESSION", {
157
                    "args" : [["EXPRESSION", {
158
                      "args" : [["CONSTANT_VALUE", {
159
                        "value" : ["CST_LITERAL", "'0'"]}
160
                      ]]}
161
                    ]]}
162
                  ]]}
163
                ]]}
164
              ], "delay" : ["EXPRESSION", {
165
                "args" : [["EXPRESSION", {
166
                  "args" : [["EXPRESSION", {
167
                    "args" : [["EXPRESSION", {
168
                      "args" : [["CONSTANT_VALUE", {
169
                        "value" : ["CST_LITERAL", "10"], "unit_name" : ["SIMPLE_NAME", "ns"]}
170
                      ]]}
171
                    ]]}
172
                  ]]}
173
                ]]}
174
              ]}
175
            ]}
176
          ], ["WAIT_STATEMENT"], ["SIGNAL_ASSIGNMENT_STATEMENT", {
177
            "lhs" : ["SIMPLE_NAME", "address"], "rhs" : [{
178
              "value" : ["EXPRESSION", {
179
                "args" : [["EXPRESSION", {
180
                  "args" : [["EXPRESSION", {
181
                    "args" : [["EXPRESSION", {
182
                      "args" : [["CONSTANT_VALUE", {
183
                        "value" : ["CST_LITERAL", "1008"]}
184
                      ]]}
185
                    ]]}
186
                  ]]}
187
                ]]}
188
              ]}
189
            ]}
190
          ], ["WAIT_STATEMENT"], ["SIGNAL_ASSIGNMENT_STATEMENT", {
191
            "lhs" : ["SIMPLE_NAME", "enable"], "rhs" : [{
192
              "value" : ["EXPRESSION", {
193
                "args" : [["EXPRESSION", {
194
                  "args" : [["EXPRESSION", {
195
                    "args" : [["EXPRESSION", {
196
                      "args" : [["CONSTANT_VALUE", {
197
                        "value" : ["CST_LITERAL", "'1'"]}
198
                      ]]}
199
                    ]]}
200
                  ]]}
201
                ]]}
202
              ]}
203
            , {
204
              "value" : ["EXPRESSION", {
205
                "args" : [["EXPRESSION", {
206
                  "args" : [["EXPRESSION", {
207
                    "args" : [["EXPRESSION", {
208
                      "args" : [["CONSTANT_VALUE", {
209
                        "value" : ["CST_LITERAL", "'0'"]}
210
                      ]]}
211
                    ]]}
212
                  ]]}
213
                ]]}
214
              ], "delay" : ["EXPRESSION", {
215
                "args" : [["EXPRESSION", {
216
                  "args" : [["EXPRESSION", {
217
                    "args" : [["EXPRESSION", {
218
                      "args" : [["CONSTANT_VALUE", {
219
                        "value" : ["CST_LITERAL", "10"], "unit_name" : ["SIMPLE_NAME", "ns"]}
220
                      ]]}
221
                    ]]}
222
                  ]]}
223
                ]]}
224
              ]}
225
            ]}
226
          ], ["WAIT_STATEMENT"], ["WAIT_STATEMENT"]]}
227
        ]]}
228
      ]}
229
    ]}
230
  }