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

History | View | Annotate | Download (6.05 KB)

1
{
2
  "DESIGN_FILE" : {
3
    "design_units" : [{
4
      "contexts" : [["LIBRARY_CLAUSE", [["IDENTIFIER", "ieee"]]], ["USE_CLAUSE", [["SELECTED_NAME", [["SIMPLE_NAME", "ieee"], ["SIMPLE_NAME", "std_logic_1164"]]]]]], "library" : ["ARCHITECTURE_BODY", {
5
        "name" : ["IDENTIFIER", "bench"], "entity" : ["IDENTIFIER", "to_vector_test"], "ARCHITECTURE_DECLARATIVE_PART" : [{
6
          "declaration" : ["SIGNAL_DECLARATION", {
7
            "names" : [["IDENTIFIER", "vec"]], "typ" : {
8
              "name" : ["SIMPLE_NAME", "std_ulogic_vector"], "const" : ["INDEX_CONSTRAINT", {
9
                "ranges" : [["RANGE_WITH_DIRECTION", {
10
                  "direction" : "downto", "from" : ["EXPRESSION", {
11
                    "args" : [["EXPRESSION", {
12
                      "args" : [["CONSTANT_VALUE", {
13
                        "value" : ["CST_LITERAL", "15"]}
14
                      ]]}
15
                    ]]}
16
                  ], "_to" : ["EXPRESSION", {
17
                    "args" : [["EXPRESSION", {
18
                      "args" : [["CONSTANT_VALUE", {
19
                        "value" : ["CST_LITERAL", "0"]}
20
                      ]]}
21
                    ]]}
22
                  ]}
23
                ]]}
24
              ]}
25
            }
26
          ]}
27
        , {
28
          "declaration" : ["SIGNAL_DECLARATION", {
29
            "names" : [["IDENTIFIER", "r"]], "typ" : {
30
              "name" : ["SIMPLE_NAME", "real"]}
31
            , "init_val" : ["EXPRESSION", {
32
              "args" : [["EXPRESSION", {
33
                "args" : [["EXPRESSION", {
34
                  "args" : [["EXPRESSION", {
35
                    "args" : [["CONSTANT_VALUE", {
36
                      "value" : ["CST_LITERAL", "0.0"]}
37
                    ]]}
38
                  ]]}
39
                ]]}
40
              ]]}
41
            ]}
42
          ]}
43
        ], "ARCHITECTURE_STATEMENT_PART" : [["COMPONENT_INSTANTIATION_STATEMENT", {
44
          "name" : ["IDENTIFIER", "dut"], "inst_unit" : ["SELECTED_NAME", [["SIMPLE_NAME", "work"], ["IDENTIFIER", "to_vector"]]], "inst_unit_type" : "entity", "archi_name" : ["IDENTIFIER", "behavioral"], "port_map" : [{
45
            "actual_designator" : ["SIMPLE_NAME", "r"]}
46
          , {
47
            "actual_designator" : ["SIMPLE_NAME", "vec"]}
48
          ]}
49
        ], ["PROCESS_STATEMENT", {
50
          "id" : ["IDENTIFIER", "stimulus"], "PROCESS_STATEMENT_PART" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
51
            "lhs" : ["SIMPLE_NAME", "r"], "rhs" : [{
52
              "value" : ["EXPRESSION", {
53
                "args" : [["EXPRESSION", {
54
                  "args" : [["EXPRESSION", {
55
                    "args" : [["EXPRESSION", {
56
                      "args" : [["CONSTANT_VALUE", {
57
                        "value" : ["CST_LITERAL", "0.0"]}
58
                      ]]}
59
                    ]]}
60
                  ]]}
61
                ]]}
62
              ]}
63
            ]}
64
          ], ["WAIT_STATEMENT"], ["SIGNAL_ASSIGNMENT_STATEMENT", {
65
            "lhs" : ["SIMPLE_NAME", "r"], "rhs" : [{
66
              "value" : ["EXPRESSION", {
67
                "args" : [["EXPRESSION", {
68
                  "args" : [["EXPRESSION", {
69
                    "id" : "-", "args" : [["EXPRESSION", {
70
                      "args" : [["CONSTANT_VALUE", {
71
                        "value" : ["CST_LITERAL", "1.0"]}
72
                      ]]}
73
                    ]]}
74
                  ]]}
75
                ]]}
76
              ]}
77
            ]}
78
          ], ["WAIT_STATEMENT"], ["SIGNAL_ASSIGNMENT_STATEMENT", {
79
            "lhs" : ["SIMPLE_NAME", "r"], "rhs" : [{
80
              "value" : ["EXPRESSION", {
81
                "args" : [["EXPRESSION", {
82
                  "args" : [["EXPRESSION", {
83
                    "id" : "-", "args" : [["EXPRESSION", {
84
                      "args" : [["CONSTANT_VALUE", {
85
                        "value" : ["CST_LITERAL", "2.0"]}
86
                      ]]}
87
                    ]]}
88
                  ]]}
89
                ]]}
90
              ]}
91
            ]}
92
          ], ["WAIT_STATEMENT"], ["SIGNAL_ASSIGNMENT_STATEMENT", {
93
            "lhs" : ["SIMPLE_NAME", "r"], "rhs" : [{
94
              "value" : ["EXPRESSION", {
95
                "args" : [["EXPRESSION", {
96
                  "args" : [["EXPRESSION", {
97
                    "id" : "+", "args" : [["EXPRESSION", {
98
                      "args" : [["CONSTANT_VALUE", {
99
                        "value" : ["CST_LITERAL", "0.9999"]}
100
                      ]]}
101
                    ]]}
102
                  ]]}
103
                ]]}
104
              ]}
105
            ]}
106
          ], ["WAIT_STATEMENT"], ["SIGNAL_ASSIGNMENT_STATEMENT", {
107
            "lhs" : ["SIMPLE_NAME", "r"], "rhs" : [{
108
              "value" : ["EXPRESSION", {
109
                "args" : [["EXPRESSION", {
110
                  "args" : [["EXPRESSION", {
111
                    "id" : "+", "args" : [["EXPRESSION", {
112
                      "args" : [["CONSTANT_VALUE", {
113
                        "value" : ["CST_LITERAL", "2.0"]}
114
                      ]]}
115
                    ]]}
116
                  ]]}
117
                ]]}
118
              ]}
119
            ]}
120
          ], ["WAIT_STATEMENT"], ["SIGNAL_ASSIGNMENT_STATEMENT", {
121
            "lhs" : ["SIMPLE_NAME", "r"], "rhs" : [{
122
              "value" : ["EXPRESSION", {
123
                "args" : [["EXPRESSION", {
124
                  "args" : [["EXPRESSION", {
125
                    "id" : "-", "args" : [["EXPRESSION", {
126
                      "args" : [["CONSTANT_VALUE", {
127
                        "value" : ["CST_LITERAL", "0.5"]}
128
                      ]]}
129
                    ]]}
130
                  ]]}
131
                ]]}
132
              ]}
133
            ]}
134
          ], ["WAIT_STATEMENT"], ["SIGNAL_ASSIGNMENT_STATEMENT", {
135
            "lhs" : ["SIMPLE_NAME", "r"], "rhs" : [{
136
              "value" : ["EXPRESSION", {
137
                "args" : [["EXPRESSION", {
138
                  "args" : [["EXPRESSION", {
139
                    "id" : "+", "args" : [["EXPRESSION", {
140
                      "args" : [["CONSTANT_VALUE", {
141
                        "value" : ["CST_LITERAL", "0.5"]}
142
                      ]]}
143
                    ]]}
144
                  ]]}
145
                ]]}
146
              ]}
147
            ]}
148
          ], ["WAIT_STATEMENT"], ["WAIT_STATEMENT"]]}
149
        ]]}
150
      ]}
151
    ]}
152
  }