Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / vhdl_json / vhdl_files / 2-exportOK / ghdl / ghdl / testsuite / gna / issue301 / packages / pkg_param.json @ 2051e520

History | View | Annotate | Download (5.42 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"]]]]], ["USE_CLAUSE", [["SELECTED_NAME", [["SIMPLE_NAME", "ieee"], ["SIMPLE_NAME", "numeric_std"]]]]]], "library" : ["PACKAGE_DECLARATION", {
5
        "name" : ["IDENTIFIER", "pkg_param"], "shared_defs" : [["TYPE_DECLARATION", {
6
          "name" : ["IDENTIFIER", "t_parity"], "definition" : ["ARRAY_TYPE_DEFINITION", {
7
            "const" : ["INDEX_CONSTRAINT", {
8
              "ranges" : [["RANGE_WITH_DIRECTION", {
9
                "direction" : "downto", "from" : ["EXPRESSION", {
10
                  "args" : [["EXPRESSION", {
11
                    "id" : "-", "args" : [["EXPRESSION", {
12
                      "args" : [["CALL", ["SIMPLE_NAME", "NUMBER_PARITY_BITS"]]]}
13
                    ], ["EXPRESSION", {
14
                      "args" : [["CONSTANT_VALUE", {
15
                        "value" : ["CST_LITERAL", "1"]}
16
                      ]]}
17
                    ]]}
18
                  ]]}
19
                ], "_to" : ["EXPRESSION", {
20
                  "args" : [["EXPRESSION", {
21
                    "args" : [["CONSTANT_VALUE", {
22
                      "value" : ["CST_LITERAL", "0"]}
23
                    ]]}
24
                  ]]}
25
                ]}
26
              ]]}
27
            ], "definition" : {
28
              "name" : ["SIMPLE_NAME", "natural"]}
29
            }
30
          ]}
31
        ]], "shared_decls" : [["CONSTANT_DECLARATION", {
32
          "names" : [["IDENTIFIER", "NUMBER_PARITY_BITS"]], "typ" : {
33
            "name" : ["SIMPLE_NAME", "natural"]}
34
          , "init_val" : ["EXPRESSION", {
35
            "args" : [["EXPRESSION", {
36
              "args" : [["EXPRESSION", {
37
                "args" : [["EXPRESSION", {
38
                  "args" : [["CONSTANT_VALUE", {
39
                    "value" : ["CST_LITERAL", "2"]}
40
                  ]]}
41
                ]]}
42
              ]]}
43
            ]]}
44
          ]}
45
        ], ["CONSTANT_DECLARATION", {
46
          "names" : [["IDENTIFIER", "PARITY_POLYNOMIALS"]], "typ" : {
47
            "name" : ["SIMPLE_NAME", "t_parity"]}
48
          , "init_val" : ["EXPRESSION", {
49
            "args" : [["EXPRESSION", {
50
              "args" : [["EXPRESSION", {
51
                "args" : [["EXPRESSION", {
52
                  "args" : [["AGGREGATE", {
53
                    "elems" : [{
54
                      "expr" : ["EXPRESSION", {
55
                        "args" : [["EXPRESSION", {
56
                          "args" : [["EXPRESSION", {
57
                            "args" : [["EXPRESSION", {
58
                              "args" : [["CONSTANT_VALUE", {
59
                                "value" : ["CST_LITERAL", "121"]}
60
                              ]]}
61
                            ]]}
62
                          ]]}
63
                        ]]}
64
                      ]}
65
                    , {
66
                      "expr" : ["EXPRESSION", {
67
                        "args" : [["EXPRESSION", {
68
                          "args" : [["EXPRESSION", {
69
                            "args" : [["EXPRESSION", {
70
                              "args" : [["CONSTANT_VALUE", {
71
                                "value" : ["CST_LITERAL", "91"]}
72
                              ]]}
73
                            ]]}
74
                          ]]}
75
                        ]]}
76
                      ]}
77
                    ]}
78
                  ]]}
79
                ]]}
80
              ]]}
81
            ]]}
82
          ]}
83
        ], ["CONSTANT_DECLARATION", {
84
          "names" : [["IDENTIFIER", "FEEDBACK_POLYNOMIAL"]], "typ" : {
85
            "name" : ["SIMPLE_NAME", "natural"]}
86
          , "init_val" : ["EXPRESSION", {
87
            "args" : [["EXPRESSION", {
88
              "args" : [["EXPRESSION", {
89
                "args" : [["EXPRESSION", {
90
                  "args" : [["CONSTANT_VALUE", {
91
                    "value" : ["CST_LITERAL", "0"]}
92
                  ]]}
93
                ]]}
94
              ]]}
95
            ]]}
96
          ]}
97
        ], ["CONSTANT_DECLARATION", {
98
          "names" : [["IDENTIFIER", "BW_LLR_INPUT"]], "typ" : {
99
            "name" : ["SIMPLE_NAME", "natural"]}
100
          , "init_val" : ["EXPRESSION", {
101
            "args" : [["EXPRESSION", {
102
              "args" : [["EXPRESSION", {
103
                "args" : [["EXPRESSION", {
104
                  "args" : [["CONSTANT_VALUE", {
105
                    "value" : ["CST_LITERAL", "4"]}
106
                  ]]}
107
                ]]}
108
              ]]}
109
            ]]}
110
          ]}
111
        ], ["CONSTANT_DECLARATION", {
112
          "names" : [["IDENTIFIER", "MAX_WINDOW_LENGTH"]], "typ" : {
113
            "name" : ["SIMPLE_NAME", "natural"]}
114
          , "init_val" : ["EXPRESSION", {
115
            "args" : [["EXPRESSION", {
116
              "args" : [["EXPRESSION", {
117
                "args" : [["EXPRESSION", {
118
                  "args" : [["CONSTANT_VALUE", {
119
                    "value" : ["CST_LITERAL", "96"]}
120
                  ]]}
121
                ]]}
122
              ]]}
123
            ]]}
124
          ]}
125
        ], ["CONSTANT_DECLARATION", {
126
          "names" : [["IDENTIFIER", "DISTRIBUTED_RAM"]], "typ" : {
127
            "name" : ["SIMPLE_NAME", "boolean"]}
128
          , "init_val" : ["EXPRESSION", {
129
            "args" : [["EXPRESSION", {
130
              "args" : [["EXPRESSION", {
131
                "args" : [["EXPRESSION", {
132
                  "args" : [["CALL", ["SIMPLE_NAME", "true"]]]}
133
                ]]}
134
              ]]}
135
            ]]}
136
          ]}
137
        ]], "shared_uses" : []}
138
      ]}
139
    ]}
140
  }