Project

General

Profile

« Previous | Next » 

Revision 222162a5

Added by Arnaud Dieumegard over 3 years ago

Correct version of the two_counters exported json file

View differences:

vhdl_json/vhdl_files/2-exportOK/valencia/two_counters.json
6 6
          "names" : [["IDENTIFIER", "x"]], "mode" : ["in"], "typ" : {
7 7
            "name" : ["SIMPLE_NAME", "boolean"]}
8 8
          }
9
        , {
10
          "names" : [["IDENTIFIER", "clk"]], "mode" : ["in"], "typ" : {
11
            "name" : ["SIMPLE_NAME", "std_logic"]}
12
          }
9 13
        , {
10 14
          "names" : [["IDENTIFIER", "o"]], "mode" : ["out"], "typ" : {
11 15
            "name" : ["SIMPLE_NAME", "boolean"]}
......
28 32
              ]]}
29 33
            ]}
30 34
          ]}
31
        ], "ARCHITECTURE_STATEMENT_PART" : [["CONDITIONAL_SIGNAL_ASSIGNMENT", {
32
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "a"], "rhs" : [{
33
            "expr" : [{
34
              "value" : ["EXPRESSION", {
35
        ], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
36
          "id" : ["IDENTIFIER", "p"], "active_sigs" : [["SIMPLE_NAME", "clk"]], "PROCESS_STATEMENT_PART" : [["IF_STATEMENT", {
37
            "if_cases" : [{
38
              "if_cond" : ["EXPRESSION", {
35 39
                "args" : [["EXPRESSION", {
36 40
                  "args" : [["EXPRESSION", {
37 41
                    "args" : [["EXPRESSION", {
38
                      "args" : [["CALL", ["SIMPLE_NAME", "b"]]]}
42
                      "args" : [["EXPRESSION", {
43
                        "id" : "and", "args" : [["EXPRESSION", {
44
                          "args" : [["EXPRESSION", {
45
                            "args" : [["EXPRESSION", {
46
                              "args" : [["EXPRESSION", {
47
                                "args" : [["CALL", ["ATTRIBUTE_NAME", {
48
                                  "id" : ["SIMPLE_NAME", "clk"], "designator" : ["SIMPLE_NAME", "event"]}
49
                                ]]]}
50
                              ]]}
51
                            ]]}
52
                          ]]}
53
                        ], ["EXPRESSION", {
54
                          "id" : "=", "args" : [["EXPRESSION", {
55
                            "args" : [["EXPRESSION", {
56
                              "args" : [["EXPRESSION", {
57
                                "args" : [["CALL", ["SIMPLE_NAME", "clk"]]]}
58
                              ]]}
59
                            ]]}
60
                          ], ["EXPRESSION", {
61
                            "args" : [["EXPRESSION", {
62
                              "args" : [["EXPRESSION", {
63
                                "args" : [["CONSTANT_VALUE", {
64
                                  "value" : ["CST_LITERAL", "'1'"]}
65
                                ]]}
66
                              ]]}
67
                            ]]}
68
                          ]]}
69
                        ]]}
70
                      ]]}
39 71
                    ]]}
40 72
                  ]]}
41 73
                ]]}
42
              ]}
43
            ]}
44
          ]}
45
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
46
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "b"], "rhs" : [{
47
            "expr" : [{
48
              "value" : ["EXPRESSION", {
49
                "args" : [["EXPRESSION", {
50
                  "args" : [["EXPRESSION", {
74
              ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
75
                "lhs" : ["SIMPLE_NAME", "a"], "rhs" : [{
76
                  "value" : ["EXPRESSION", {
51 77
                    "args" : [["EXPRESSION", {
52
                      "args" : [["CALL", ["SIMPLE_NAME", "a"]]]}
78
                      "args" : [["EXPRESSION", {
79
                        "args" : [["EXPRESSION", {
80
                          "id" : "not", "args" : [["CALL", ["SIMPLE_NAME", "b"]]]}
81
                        ]]}
82
                      ]]}
53 83
                    ]]}
54
                  ]]}
55
                ]]}
56
              ]}
84
                  ]}
85
                ]}
86
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
87
                "lhs" : ["SIMPLE_NAME", "b"], "rhs" : [{
88
                  "value" : ["EXPRESSION", {
89
                    "args" : [["EXPRESSION", {
90
                      "args" : [["EXPRESSION", {
91
                        "args" : [["EXPRESSION", {
92
                          "args" : [["CALL", ["SIMPLE_NAME", "a"]]]}
93
                        ]]}
94
                      ]]}
95
                    ]]}
96
                  ]}
97
                ]}
98
              ]]}
57 99
            ]}
58
          ]}
100
          ]]}
59 101
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
60 102
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "o"], "rhs" : [{
61 103
            "expr" : [{
......
101 143
            ]}
102 144
          ]}
103 145
        ], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
104
          "id" : ["IDENTIFIER", "p"], "active_sigs" : [["SIMPLE_NAME", "t"]], "PROCESS_STATEMENT_PART" : [["IF_STATEMENT", {
146
          "id" : ["IDENTIFIER", "p"], "active_sigs" : [["SIMPLE_NAME", "clk"]], "PROCESS_STATEMENT_PART" : [["IF_STATEMENT", {
105 147
            "if_cases" : [{
106 148
              "if_cond" : ["EXPRESSION", {
107
                "id" : "=", "args" : [["EXPRESSION", {
108
                  "args" : [["EXPRESSION", {
109
                    "args" : [["EXPRESSION", {
110
                      "args" : [["CALL", ["SIMPLE_NAME", "t"]]]}
111
                    ]]}
112
                  ]]}
113
                ], ["EXPRESSION", {
149
                "args" : [["EXPRESSION", {
114 150
                  "args" : [["EXPRESSION", {
115 151
                    "args" : [["EXPRESSION", {
116
                      "args" : [["CONSTANT_VALUE", {
117
                        "value" : ["CST_LITERAL", "3"]}
152
                      "args" : [["EXPRESSION", {
153
                        "id" : "and", "args" : [["EXPRESSION", {
154
                          "args" : [["EXPRESSION", {
155
                            "args" : [["EXPRESSION", {
156
                              "args" : [["EXPRESSION", {
157
                                "args" : [["CALL", ["ATTRIBUTE_NAME", {
158
                                  "id" : ["SIMPLE_NAME", "clk"], "designator" : ["SIMPLE_NAME", "event"]}
159
                                ]]]}
160
                              ]]}
161
                            ]]}
162
                          ]]}
163
                        ], ["EXPRESSION", {
164
                          "id" : "=", "args" : [["EXPRESSION", {
165
                            "args" : [["EXPRESSION", {
166
                              "args" : [["EXPRESSION", {
167
                                "args" : [["CALL", ["SIMPLE_NAME", "clk"]]]}
168
                              ]]}
169
                            ]]}
170
                          ], ["EXPRESSION", {
171
                            "args" : [["EXPRESSION", {
172
                              "args" : [["EXPRESSION", {
173
                                "args" : [["CONSTANT_VALUE", {
174
                                  "value" : ["CST_LITERAL", "'1'"]}
175
                                ]]}
176
                              ]]}
177
                            ]]}
178
                          ]]}
179
                        ]]}
118 180
                      ]]}
119 181
                    ]]}
120 182
                  ]]}
121 183
                ]]}
122
              ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
123
                "lhs" : ["SIMPLE_NAME", "t"], "rhs" : [{
124
                  "value" : ["EXPRESSION", {
125
                    "args" : [["EXPRESSION", {
184
              ], "if_block" : [["IF_STATEMENT", {
185
                "if_cases" : [{
186
                  "if_cond" : ["EXPRESSION", {
187
                    "id" : "=", "args" : [["EXPRESSION", {
126 188
                      "args" : [["EXPRESSION", {
127 189
                        "args" : [["EXPRESSION", {
128
                          "args" : [["CONSTANT_VALUE", {
129
                            "value" : ["CST_LITERAL", "0"]}
130
                          ]]}
190
                          "args" : [["CALL", ["SIMPLE_NAME", "t"]]]}
131 191
                        ]]}
132 192
                      ]]}
133
                    ]]}
134
                  ]}
135
                ]}
136
              ]]}
137
            ], "default" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
138
              "lhs" : ["SIMPLE_NAME", "t"], "rhs" : [{
139
                "value" : ["EXPRESSION", {
140
                  "args" : [["EXPRESSION", {
141
                    "args" : [["EXPRESSION", {
193
                    ], ["EXPRESSION", {
142 194
                      "args" : [["EXPRESSION", {
143
                        "id" : "+", "args" : [["EXPRESSION", {
144
                          "args" : [["CALL", ["SIMPLE_NAME", "t"]]]}
145
                        ], ["EXPRESSION", {
195
                        "args" : [["EXPRESSION", {
146 196
                          "args" : [["CONSTANT_VALUE", {
147
                            "value" : ["CST_LITERAL", "1"]}
197
                            "value" : ["CST_LITERAL", "3"]}
148 198
                          ]]}
149 199
                        ]]}
150 200
                      ]]}
151 201
                    ]]}
202
                  ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
203
                    "lhs" : ["SIMPLE_NAME", "t"], "rhs" : [{
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
                      ]}
215
                    ]}
152 216
                  ]]}
153
                ]}
154
              ]}
155
            ]]}
217
                ], "default" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
218
                  "lhs" : ["SIMPLE_NAME", "t"], "rhs" : [{
219
                    "value" : ["EXPRESSION", {
220
                      "args" : [["EXPRESSION", {
221
                        "args" : [["EXPRESSION", {
222
                          "args" : [["EXPRESSION", {
223
                            "id" : "+", "args" : [["EXPRESSION", {
224
                              "args" : [["CALL", ["SIMPLE_NAME", "t"]]]}
225
                            ], ["EXPRESSION", {
226
                              "args" : [["CONSTANT_VALUE", {
227
                                "value" : ["CST_LITERAL", "1"]}
228
                              ]]}
229
                            ]]}
230
                          ]]}
231
                        ]]}
232
                      ]]}
233
                    ]}
234
                  ]}
235
                ]]}
236
              ]]}
237
            ]}
156 238
          ]]}
157 239
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
158 240
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "o"], "rhs" : [{
......
184 266
          "names" : [["IDENTIFIER", "x"]], "mode" : ["in"], "typ" : {
185 267
            "name" : ["SIMPLE_NAME", "boolean"]}
186 268
          }
269
        , {
270
          "names" : [["IDENTIFIER", "clk"]], "mode" : ["in"], "typ" : {
271
            "name" : ["SIMPLE_NAME", "std_logic"]}
272
          }
187 273
        , {
188 274
          "names" : [["IDENTIFIER", "ok"]], "mode" : ["out"], "typ" : {
189 275
            "name" : ["SIMPLE_NAME", "boolean"]}
......
192 278
      ]}
193 279
    , {
194 280
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
195
        "name" : ["IDENTIFIER", "top_most"], "entity" : ["IDENTIFIER", "top"], "ARCHITECTURE_DECLARATIVE_PART" : [{
281
        "name" : ["IDENTIFIER", "top_behav"], "entity" : ["IDENTIFIER", "top"], "ARCHITECTURE_DECLARATIVE_PART" : [{
196 282
          "declaration" : ["SIGNAL_DECLARATION", {
197 283
            "names" : [["IDENTIFIER", "b"], ["IDENTIFIER", "d"]], "typ" : {
198 284
              "name" : ["SIMPLE_NAME", "boolean"]}
199 285
            }
200 286
          ]}
201 287
        ], "ARCHITECTURE_STATEMENT_PART" : [["COMPONENT_INSTANTIATION_STATEMENT", {
202
          "name" : ["IDENTIFIER", "gc"], "inst_unit" : ["SELECTED_NAME", [["SIMPLE_NAME", "work"], ["IDENTIFIER", "counter"]]], "inst_unit_type" : "entity", "archi_name" : ["IDENTIFIER", "greycounter"], "port_map" : [{
288
          "name" : ["IDENTIFIER", "gcount"], "inst_unit" : ["SELECTED_NAME", [["SIMPLE_NAME", "work"], ["IDENTIFIER", "counter"]]], "inst_unit_type" : "entity", "archi_name" : ["IDENTIFIER", "greycounter"], "port_map" : [{
203 289
            "actual_designator" : ["SIMPLE_NAME", "x"]}
290
          , {
291
            "actual_designator" : ["SIMPLE_NAME", "clk"]}
204 292
          , {
205 293
            "actual_designator" : ["SIMPLE_NAME", "b"]}
206 294
          ]}
207 295
        ], ["COMPONENT_INSTANTIATION_STATEMENT", {
208
          "name" : ["IDENTIFIER", "ilc"], "inst_unit" : ["SELECTED_NAME", [["SIMPLE_NAME", "work"], ["IDENTIFIER", "counter"]]], "inst_unit_type" : "entity", "archi_name" : ["IDENTIFIER", "intloopcounter"], "port_map" : [{
296
          "name" : ["IDENTIFIER", "icount"], "inst_unit" : ["SELECTED_NAME", [["SIMPLE_NAME", "work"], ["IDENTIFIER", "counter"]]], "inst_unit_type" : "entity", "archi_name" : ["IDENTIFIER", "intloopcounter"], "port_map" : [{
209 297
            "actual_designator" : ["SIMPLE_NAME", "x"]}
298
          , {
299
            "actual_designator" : ["SIMPLE_NAME", "clk"]}
210 300
          , {
211 301
            "actual_designator" : ["SIMPLE_NAME", "d"]}
212 302
          ]}

Also available in: Unified diff