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

History | View | Annotate | Download (7.48 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"]]]]], ["USE_CLAUSE", [["SELECTED_NAME", [["SIMPLE_NAME", "qsim"], ["SIMPLE_NAME", "qsim_types"]]]]], ["USE_CLAUSE", [["SELECTED_NAME", [["SIMPLE_NAME", "random"], ["SIMPLE_NAME", "random"]]]]]], "library" : ["ARCHITECTURE_BODY", {
5
        "name" : ["IDENTIFIER", "source"], "entity" : ["IDENTIFIER", "test_bench"], "ARCHITECTURE_DECLARATIVE_PART" : [{
6
          "declaration" : ["SIGNAL_DECLARATION", {
7
            "names" : [["IDENTIFIER", "a"]], "typ" : {
8
              "name" : ["SIMPLE_NAME", "arc_type"]}
9
            }
10
          ]}
11
        , {
12
          "declaration" : ["SIGNAL_DECLARATION", {
13
            "names" : [["IDENTIFIER", "info_detail"]], "typ" : {
14
              "name" : ["SIMPLE_NAME", "info_detail_type"]}
15
            , "init_val" : ["EXPRESSION", {
16
              "args" : [["EXPRESSION", {
17
                "args" : [["EXPRESSION", {
18
                  "args" : [["EXPRESSION", {
19
                    "args" : [["CALL", ["SIMPLE_NAME", "trace"]]]}
20
                  ]]}
21
                ]]}
22
              ]]}
23
            ]}
24
          ]}
25
        ], "ARCHITECTURE_STATEMENT_PART" : [["COMPONENT_INSTANTIATION_STATEMENT", {
26
          "name" : ["IDENTIFIER", "source1"], "inst_unit" : ["SELECTED_NAME", [["SIMPLE_NAME", "qsim"], ["IDENTIFIER", "source"]]], "inst_unit_type" : "entity", "archi_name" : ["IDENTIFIER", "behavior"], "generic_map" : [{
27
            "formal_name" : ["SIMPLE_NAME", "name"], "actual_expr" : ["EXPRESSION", {
28
              "args" : [["EXPRESSION", {
29
                "args" : [["EXPRESSION", {
30
                  "args" : [["EXPRESSION", {
31
                    "args" : [["CONSTANT_VALUE", {
32
                      "value" : ["CST_LITERAL", "\"source1\""]}
33
                    ]]}
34
                  ]]}
35
                ]]}
36
              ]]}
37
            ]}
38
          , {
39
            "formal_name" : ["SIMPLE_NAME", "distribution"], "actual_designator" : ["SIMPLE_NAME", "fixed"]}
40
          , {
41
            "formal_name" : ["SIMPLE_NAME", "mean_inter_arrival_time"], "actual_expr" : ["EXPRESSION", {
42
              "args" : [["EXPRESSION", {
43
                "args" : [["EXPRESSION", {
44
                  "args" : [["EXPRESSION", {
45
                    "args" : [["CONSTANT_VALUE", {
46
                      "value" : ["CST_LITERAL", "100"], "unit_name" : ["SIMPLE_NAME", "ns"]}
47
                    ]]}
48
                  ]]}
49
                ]]}
50
              ]]}
51
            ]}
52
          , {
53
            "formal_name" : ["SIMPLE_NAME", "seed"], "actual_designator" : ["INDEXED_NAME", {
54
              "id" : ["SIMPLE_NAME", "sample_seeds"], "exprs" : [["EXPRESSION", {
55
                "args" : [["EXPRESSION", {
56
                  "args" : [["EXPRESSION", {
57
                    "args" : [["EXPRESSION", {
58
                      "args" : [["CONSTANT_VALUE", {
59
                        "value" : ["CST_LITERAL", "0"]}
60
                      ]]}
61
                    ]]}
62
                  ]]}
63
                ]]}
64
              ]]}
65
            ]}
66
          , {
67
            "formal_name" : ["SIMPLE_NAME", "time_unit"], "actual_designator" : ["SIMPLE_NAME", "ns"]}
68
          , {
69
            "formal_name" : ["SIMPLE_NAME", "info_file_name"], "actual_expr" : ["EXPRESSION", {
70
              "args" : [["EXPRESSION", {
71
                "args" : [["EXPRESSION", {
72
                  "args" : [["EXPRESSION", {
73
                    "args" : [["CONSTANT_VALUE", {
74
                      "value" : ["CST_LITERAL", "\"source1.dat\""]}
75
                    ]]}
76
                  ]]}
77
                ]]}
78
              ]]}
79
            ]}
80
          ], "port_map" : [{
81
            "formal_name" : ["SIMPLE_NAME", "out_arc"], "actual_designator" : ["SIMPLE_NAME", "a"]}
82
          , {
83
            "formal_name" : ["SIMPLE_NAME", "info_detail"], "actual_designator" : ["SIMPLE_NAME", "info_detail"]}
84
          ]}
85
        ], ["PROCESS_STATEMENT", {
86
          "id" : ["IDENTIFIER", "monitor"], "PROCESS_DECLARATIVE_PART" : [{
87
            "declaration" : ["VARIABLE_DECLARATION", {
88
              "names" : [["IDENTIFIER", "L"]], "typ" : {
89
                "name" : ["SIMPLE_NAME", "line"]}
90
              }
91
            ]}
92
          ], "PROCESS_STATEMENT_PART" : [["WAIT_STATEMENT"], ["PROCEDURE_CALL_STATEMENT", {
93
            "name" : ["IDENTIFIER", "write"], "assocs" : [{
94
              "actual_designator" : ["SIMPLE_NAME", "L"]}
95
            , {
96
              "actual_expr" : ["EXPRESSION", {
97
                "args" : [["EXPRESSION", {
98
                  "args" : [["EXPRESSION", {
99
                    "args" : [["EXPRESSION", {
100
                      "args" : [["QUALIFIED_EXPRESSION", {
101
                        "type_mark" : ["SIMPLE_NAME", "string"], "expression" : ["EXPRESSION", {
102
                          "args" : [["EXPRESSION", {
103
                            "args" : [["EXPRESSION", {
104
                              "args" : [["EXPRESSION", {
105
                                "args" : [["CONSTANT_VALUE", {
106
                                  "value" : ["CST_LITERAL", "\"monitor: at \""]}
107
                                ]]}
108
                              ]]}
109
                            ]]}
110
                          ]]}
111
                        ]}
112
                      ]]}
113
                    ]]}
114
                  ]]}
115
                ]]}
116
              ]}
117
            ]}
118
          ], ["PROCEDURE_CALL_STATEMENT", {
119
            "name" : ["IDENTIFIER", "write"], "assocs" : [{
120
              "actual_designator" : ["SIMPLE_NAME", "L"]}
121
            , {
122
              "actual_designator" : ["SIMPLE_NAME", "now"]}
123
            , {
124
              "formal_name" : ["SIMPLE_NAME", "unit"], "actual_designator" : ["SIMPLE_NAME", "ns"]}
125
            ]}
126
          ], ["PROCEDURE_CALL_STATEMENT", {
127
            "name" : ["IDENTIFIER", "write"], "assocs" : [{
128
              "actual_designator" : ["SIMPLE_NAME", "L"]}
129
            , {
130
              "actual_expr" : ["EXPRESSION", {
131
                "args" : [["EXPRESSION", {
132
                  "args" : [["EXPRESSION", {
133
                    "args" : [["EXPRESSION", {
134
                      "args" : [["QUALIFIED_EXPRESSION", {
135
                        "type_mark" : ["SIMPLE_NAME", "string"], "expression" : ["EXPRESSION", {
136
                          "args" : [["EXPRESSION", {
137
                            "args" : [["EXPRESSION", {
138
                              "args" : [["EXPRESSION", {
139
                                "args" : [["CONSTANT_VALUE", {
140
                                  "value" : ["CST_LITERAL", "\" received \""]}
141
                                ]]}
142
                              ]]}
143
                            ]]}
144
                          ]]}
145
                        ]}
146
                      ]]}
147
                    ]]}
148
                  ]]}
149
                ]]}
150
              ]}
151
            ]}
152
          ], ["PROCEDURE_CALL_STATEMENT", {
153
            "name" : ["IDENTIFIER", "write"], "assocs" : [{
154
              "actual_designator" : ["SIMPLE_NAME", "L"]}
155
            , {
156
              "actual_designator" : ["SELECTED_NAME", [["SIMPLE_NAME", "a"], ["IDENTIFIER", "token"]]]}
157
            , {
158
              "actual_designator" : ["SIMPLE_NAME", "ns"]}
159
            ]}
160
          ], ["PROCEDURE_CALL_STATEMENT", {
161
            "name" : ["IDENTIFIER", "writeline"], "assocs" : [{
162
              "actual_designator" : ["SIMPLE_NAME", "output"]}
163
            , {
164
              "actual_designator" : ["SIMPLE_NAME", "L"]}
165
            ]}
166
          ]]}
167
        ]]}
168
      ]}
169
    ]}
170
  }