Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / vhdl_json / vhdl_files / 2-exportOK / ghdl / ghdl / testsuite / gna / ticket94 / tb1.json @ 3fd18385

History | View | Annotate | Download (5.79 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_CLAUSE", [["IDENTIFIER", "alib"]]], ["USE_CLAUSE", [["SELECTED_NAME", [["SIMPLE_NAME", "alib"], ["IDENTIFIER", "acomp"]]]]]], "library" : ["ENTITY_DECLARATION", {
5
        "name" : ["IDENTIFIER", "tb1"], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
6
      ]}
7
    , {
8
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
9
        "name" : ["IDENTIFIER", "arch"], "entity" : ["IDENTIFIER", "tb1"], "ARCHITECTURE_DECLARATIVE_PART" : [{
10
          "declaration" : ["SIGNAL_DECLARATION", {
11
            "names" : [["IDENTIFIER", "a"], ["IDENTIFIER", "b"]], "typ" : {
12
              "name" : ["SIMPLE_NAME", "std_logic"]}
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" : ["COMPONENT_DECLARATION", {
27
            "name" : ["IDENTIFIER", "acomp"], "ports" : [{
28
              "names" : [["IDENTIFIER", "x"]], "mode" : ["in"], "typ" : {
29
                "name" : ["SIMPLE_NAME", "std_ulogic"]}
30
              }
31
            , {
32
              "names" : [["IDENTIFIER", "y"]], "mode" : ["out"], "typ" : {
33
                "name" : ["SIMPLE_NAME", "std_ulogic"]}
34
              }
35
            ]}
36
          ]}
37
        ], "ARCHITECTURE_STATEMENT_PART" : [["COMPONENT_INSTANTIATION_STATEMENT", {
38
          "name" : ["IDENTIFIER", "ainst"], "inst_unit" : ["SIMPLE_NAME", "acomp"], "inst_unit_type" : "component", "port_map" : [{
39
            "actual_designator" : ["SIMPLE_NAME", "a"]}
40
          , {
41
            "actual_designator" : ["SIMPLE_NAME", "b"]}
42
          ]}
43
        ], ["PROCESS_STATEMENT", {
44
          "PROCESS_STATEMENT_PART" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
45
            "lhs" : ["SIMPLE_NAME", "a"], "rhs" : [{
46
              "value" : ["EXPRESSION", {
47
                "args" : [["EXPRESSION", {
48
                  "args" : [["EXPRESSION", {
49
                    "args" : [["EXPRESSION", {
50
                      "args" : [["CONSTANT_VALUE", {
51
                        "value" : ["CST_LITERAL", "'0'"]}
52
                      ]]}
53
                    ]]}
54
                  ]]}
55
                ]]}
56
              ]}
57
            ]}
58
          ], ["WAIT_STATEMENT"], ["ASSERTION_STATEMENT", {
59
            "cond" : ["EXPRESSION", {
60
              "id" : "=", "args" : [["EXPRESSION", {
61
                "args" : [["EXPRESSION", {
62
                  "args" : [["EXPRESSION", {
63
                    "args" : [["CALL", ["SIMPLE_NAME", "b"]]]}
64
                  ]]}
65
                ]]}
66
              ], ["EXPRESSION", {
67
                "args" : [["EXPRESSION", {
68
                  "args" : [["EXPRESSION", {
69
                    "args" : [["CONSTANT_VALUE", {
70
                      "value" : ["CST_LITERAL", "'0'"]}
71
                    ]]}
72
                  ]]}
73
                ]]}
74
              ]]}
75
            ], "report" : ["EXPRESSION", {
76
              "args" : [["EXPRESSION", {
77
                "args" : [["EXPRESSION", {
78
                  "args" : [["EXPRESSION", {
79
                    "args" : [["CONSTANT_VALUE", {
80
                      "value" : ["CST_LITERAL", "\"component is missing\""]}
81
                    ]]}
82
                  ]]}
83
                ]]}
84
              ]]}
85
            ], "severity" : ["EXPRESSION", {
86
              "args" : [["EXPRESSION", {
87
                "args" : [["EXPRESSION", {
88
                  "args" : [["EXPRESSION", {
89
                    "args" : [["CALL", ["SIMPLE_NAME", "failure"]]]}
90
                  ]]}
91
                ]]}
92
              ]]}
93
            ]}
94
          ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
95
            "lhs" : ["SIMPLE_NAME", "a"], "rhs" : [{
96
              "value" : ["EXPRESSION", {
97
                "args" : [["EXPRESSION", {
98
                  "args" : [["EXPRESSION", {
99
                    "args" : [["EXPRESSION", {
100
                      "args" : [["CONSTANT_VALUE", {
101
                        "value" : ["CST_LITERAL", "'1'"]}
102
                      ]]}
103
                    ]]}
104
                  ]]}
105
                ]]}
106
              ]}
107
            ]}
108
          ], ["WAIT_STATEMENT"], ["ASSERTION_STATEMENT", {
109
            "cond" : ["EXPRESSION", {
110
              "id" : "=", "args" : [["EXPRESSION", {
111
                "args" : [["EXPRESSION", {
112
                  "args" : [["EXPRESSION", {
113
                    "args" : [["CALL", ["SIMPLE_NAME", "b"]]]}
114
                  ]]}
115
                ]]}
116
              ], ["EXPRESSION", {
117
                "args" : [["EXPRESSION", {
118
                  "args" : [["EXPRESSION", {
119
                    "args" : [["CONSTANT_VALUE", {
120
                      "value" : ["CST_LITERAL", "'1'"]}
121
                    ]]}
122
                  ]]}
123
                ]]}
124
              ]]}
125
            ], "report" : ["EXPRESSION", {
126
              "args" : [["EXPRESSION", {
127
                "args" : [["EXPRESSION", {
128
                  "args" : [["EXPRESSION", {
129
                    "args" : [["CONSTANT_VALUE", {
130
                      "value" : ["CST_LITERAL", "\"component is missing\""]}
131
                    ]]}
132
                  ]]}
133
                ]]}
134
              ]]}
135
            ], "severity" : ["EXPRESSION", {
136
              "args" : [["EXPRESSION", {
137
                "args" : [["EXPRESSION", {
138
                  "args" : [["EXPRESSION", {
139
                    "args" : [["CALL", ["SIMPLE_NAME", "failure"]]]}
140
                  ]]}
141
                ]]}
142
              ]]}
143
            ]}
144
          ], ["WAIT_STATEMENT"]]}
145
        ]]}
146
      ]}
147
    ]}
148
  }