Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (9.06 KB)

1
{
2
  "DESIGN_FILE" : {
3
    "design_units" : [{
4
      "contexts" : [["LIBRARY_CLAUSE", [["IDENTIFIER", "qsim"]]], ["LIBRARY_CLAUSE", [["IDENTIFIER", "random"]]], ["USE_CLAUSE", [["SELECTED_NAME", [["SIMPLE_NAME", "std"], ["SIMPLE_NAME", "textio"]]]]]], "library" : ["ARCHITECTURE_BODY", {
5
        "name" : ["IDENTIFIER", "sink"], "entity" : ["IDENTIFIER", "test_bench"], "ARCHITECTURE_DECLARATIVE_PART" : [{
6
          "use_clause" : ["USE_CLAUSE", [["SELECTED_NAME", [["SIMPLE_NAME", "qsim"], ["SIMPLE_NAME", "qsim_types"]]]]]}
7
        , {
8
          "use_clause" : ["USE_CLAUSE", [["SELECTED_NAME", [["SIMPLE_NAME", "random"], ["SIMPLE_NAME", "random"]]]]]}
9
        , {
10
          "declaration" : ["SIGNAL_DECLARATION", {
11
            "names" : [["IDENTIFIER", "a"]], "typ" : {
12
              "name" : ["SIMPLE_NAME", "arc_type"]}
13
            }
14
          ]}
15
        , {
16
          "declaration" : ["SIGNAL_DECLARATION", {
17
            "names" : [["IDENTIFIER", "info_detail"]], "typ" : {
18
              "name" : ["SIMPLE_NAME", "info_detail_type"]}
19
            , "init_val" : ["EXPRESSION", {
20
              "args" : [["EXPRESSION", {
21
                "args" : [["EXPRESSION", {
22
                  "args" : [["EXPRESSION", {
23
                    "args" : [["CALL", ["SIMPLE_NAME", "trace"]]]}
24
                  ]]}
25
                ]]}
26
              ]]}
27
            ]}
28
          ]}
29
        ], "ARCHITECTURE_STATEMENT_PART" : [["COMPONENT_INSTANTIATION_STATEMENT", {
30
          "name" : ["IDENTIFIER", "source1"], "inst_unit" : ["SELECTED_NAME", [["SIMPLE_NAME", "qsim"], ["IDENTIFIER", "source"]]], "inst_unit_type" : "entity", "archi_name" : ["IDENTIFIER", "behavior"], "generic_map" : [{
31
            "formal_name" : ["SIMPLE_NAME", "name"], "actual_expr" : ["EXPRESSION", {
32
              "args" : [["EXPRESSION", {
33
                "args" : [["EXPRESSION", {
34
                  "args" : [["EXPRESSION", {
35
                    "args" : [["CONSTANT_VALUE", {
36
                      "value" : ["CST_LITERAL", "\"source1\""]}
37
                    ]]}
38
                  ]]}
39
                ]]}
40
              ]]}
41
            ]}
42
          , {
43
            "formal_name" : ["SIMPLE_NAME", "distribution"], "actual_designator" : ["SIMPLE_NAME", "fixed"]}
44
          , {
45
            "formal_name" : ["SIMPLE_NAME", "mean_inter_arrival_time"], "actual_expr" : ["EXPRESSION", {
46
              "args" : [["EXPRESSION", {
47
                "args" : [["EXPRESSION", {
48
                  "args" : [["EXPRESSION", {
49
                    "args" : [["CONSTANT_VALUE", {
50
                      "value" : ["CST_LITERAL", "100"], "unit_name" : ["SIMPLE_NAME", "ns"]}
51
                    ]]}
52
                  ]]}
53
                ]]}
54
              ]]}
55
            ]}
56
          , {
57
            "formal_name" : ["SIMPLE_NAME", "seed"], "actual_designator" : ["INDEXED_NAME", {
58
              "id" : ["SIMPLE_NAME", "sample_seeds"], "exprs" : [["EXPRESSION", {
59
                "args" : [["EXPRESSION", {
60
                  "args" : [["EXPRESSION", {
61
                    "args" : [["EXPRESSION", {
62
                      "args" : [["CONSTANT_VALUE", {
63
                        "value" : ["CST_LITERAL", "1"]}
64
                      ]]}
65
                    ]]}
66
                  ]]}
67
                ]]}
68
              ]]}
69
            ]}
70
          , {
71
            "formal_name" : ["SIMPLE_NAME", "time_unit"], "actual_designator" : ["SIMPLE_NAME", "ns"]}
72
          , {
73
            "formal_name" : ["SIMPLE_NAME", "info_file_name"], "actual_expr" : ["EXPRESSION", {
74
              "args" : [["EXPRESSION", {
75
                "args" : [["EXPRESSION", {
76
                  "args" : [["EXPRESSION", {
77
                    "args" : [["CONSTANT_VALUE", {
78
                      "value" : ["CST_LITERAL", "\"source1.dat\""]}
79
                    ]]}
80
                  ]]}
81
                ]]}
82
              ]]}
83
            ]}
84
          ], "port_map" : [{
85
            "formal_name" : ["SIMPLE_NAME", "out_arc"], "actual_designator" : ["SIMPLE_NAME", "a"]}
86
          , {
87
            "formal_name" : ["SIMPLE_NAME", "info_detail"], "actual_designator" : ["SIMPLE_NAME", "info_detail"]}
88
          ]}
89
        ], ["COMPONENT_INSTANTIATION_STATEMENT", {
90
          "name" : ["IDENTIFIER", "sink1"], "inst_unit" : ["SELECTED_NAME", [["SIMPLE_NAME", "qsim"], ["IDENTIFIER", "sink"]]], "inst_unit_type" : "entity", "archi_name" : ["IDENTIFIER", "behavior"], "generic_map" : [{
91
            "formal_name" : ["SIMPLE_NAME", "name"], "actual_expr" : ["EXPRESSION", {
92
              "args" : [["EXPRESSION", {
93
                "args" : [["EXPRESSION", {
94
                  "args" : [["EXPRESSION", {
95
                    "args" : [["CONSTANT_VALUE", {
96
                      "value" : ["CST_LITERAL", "\"sink1\""]}
97
                    ]]}
98
                  ]]}
99
                ]]}
100
              ]]}
101
            ]}
102
          , {
103
            "formal_name" : ["SIMPLE_NAME", "time_unit"], "actual_designator" : ["SIMPLE_NAME", "ns"]}
104
          , {
105
            "formal_name" : ["SIMPLE_NAME", "info_file_name"], "actual_expr" : ["EXPRESSION", {
106
              "args" : [["EXPRESSION", {
107
                "args" : [["EXPRESSION", {
108
                  "args" : [["EXPRESSION", {
109
                    "args" : [["CONSTANT_VALUE", {
110
                      "value" : ["CST_LITERAL", "\"sink1.dat\""]}
111
                    ]]}
112
                  ]]}
113
                ]]}
114
              ]]}
115
            ]}
116
          ], "port_map" : [{
117
            "formal_name" : ["SIMPLE_NAME", "in_arc"], "actual_designator" : ["SIMPLE_NAME", "a"]}
118
          , {
119
            "formal_name" : ["SIMPLE_NAME", "info_detail"], "actual_designator" : ["SIMPLE_NAME", "info_detail"]}
120
          ]}
121
        ], ["PROCESS_STATEMENT", {
122
          "id" : ["IDENTIFIER", "monitor"], "PROCESS_DECLARATIVE_PART" : [{
123
            "declaration" : ["VARIABLE_DECLARATION", {
124
              "names" : [["IDENTIFIER", "L"]], "typ" : {
125
                "name" : ["SIMPLE_NAME", "line"]}
126
              }
127
            ]}
128
          ], "PROCESS_STATEMENT_PART" : [["WAIT_STATEMENT"], ["PROCEDURE_CALL_STATEMENT", {
129
            "name" : ["IDENTIFIER", "write"], "assocs" : [{
130
              "actual_designator" : ["SIMPLE_NAME", "L"]}
131
            , {
132
              "actual_expr" : ["EXPRESSION", {
133
                "args" : [["EXPRESSION", {
134
                  "args" : [["EXPRESSION", {
135
                    "args" : [["EXPRESSION", {
136
                      "args" : [["QUALIFIED_EXPRESSION", {
137
                        "type_mark" : ["SIMPLE_NAME", "string"], "expression" : ["EXPRESSION", {
138
                          "args" : [["EXPRESSION", {
139
                            "args" : [["EXPRESSION", {
140
                              "args" : [["EXPRESSION", {
141
                                "args" : [["CONSTANT_VALUE", {
142
                                  "value" : ["CST_LITERAL", "\"monitor: at \""]}
143
                                ]]}
144
                              ]]}
145
                            ]]}
146
                          ]]}
147
                        ]}
148
                      ]]}
149
                    ]]}
150
                  ]]}
151
                ]]}
152
              ]}
153
            ]}
154
          ], ["PROCEDURE_CALL_STATEMENT", {
155
            "name" : ["IDENTIFIER", "write"], "assocs" : [{
156
              "actual_designator" : ["SIMPLE_NAME", "L"]}
157
            , {
158
              "actual_designator" : ["SIMPLE_NAME", "now"]}
159
            , {
160
              "formal_name" : ["SIMPLE_NAME", "unit"], "actual_designator" : ["SIMPLE_NAME", "ns"]}
161
            ]}
162
          ], ["PROCEDURE_CALL_STATEMENT", {
163
            "name" : ["IDENTIFIER", "write"], "assocs" : [{
164
              "actual_designator" : ["SIMPLE_NAME", "L"]}
165
            , {
166
              "actual_expr" : ["EXPRESSION", {
167
                "args" : [["EXPRESSION", {
168
                  "args" : [["EXPRESSION", {
169
                    "args" : [["EXPRESSION", {
170
                      "args" : [["QUALIFIED_EXPRESSION", {
171
                        "type_mark" : ["SIMPLE_NAME", "string"], "expression" : ["EXPRESSION", {
172
                          "args" : [["EXPRESSION", {
173
                            "args" : [["EXPRESSION", {
174
                              "args" : [["EXPRESSION", {
175
                                "args" : [["CONSTANT_VALUE", {
176
                                  "value" : ["CST_LITERAL", "\" received \""]}
177
                                ]]}
178
                              ]]}
179
                            ]]}
180
                          ]]}
181
                        ]}
182
                      ]]}
183
                    ]]}
184
                  ]]}
185
                ]]}
186
              ]}
187
            ]}
188
          ], ["PROCEDURE_CALL_STATEMENT", {
189
            "name" : ["IDENTIFIER", "write"], "assocs" : [{
190
              "actual_designator" : ["SIMPLE_NAME", "L"]}
191
            , {
192
              "actual_designator" : ["SELECTED_NAME", [["SIMPLE_NAME", "a"], ["IDENTIFIER", "token"]]]}
193
            , {
194
              "actual_designator" : ["SIMPLE_NAME", "ns"]}
195
            ]}
196
          ], ["PROCEDURE_CALL_STATEMENT", {
197
            "name" : ["IDENTIFIER", "writeline"], "assocs" : [{
198
              "actual_designator" : ["SIMPLE_NAME", "output"]}
199
            , {
200
              "actual_designator" : ["SIMPLE_NAME", "L"]}
201
            ]}
202
          ]]}
203
        ]]}
204
      ]}
205
    ]}
206
  }