Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / vhdl_json / vhdl_files / 2-exportOK / cnes_guidelines / rule / data / CNE_01400_good.json @ 2051e520

History | View | Annotate | Download (4.94 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" : ["ENTITY_DECLARATION", {
5
        "name" : ["IDENTIFIER", "CNE_01400_good"], "generics" : [{
6
          "names" : [["IDENTIFIER", "g_Width"]], "typ" : {
7
            "name" : ["SIMPLE_NAME", "positive"]}
8
          , "expr" : ["EXPRESSION", {
9
            "args" : [["EXPRESSION", {
10
              "args" : [["EXPRESSION", {
11
                "args" : [["EXPRESSION", {
12
                  "args" : [["CONSTANT_VALUE", {
13
                    "value" : ["CST_LITERAL", "3"]}
14
                  ]]}
15
                ]]}
16
              ]]}
17
            ]]}
18
          ]}
19
        ], "ports" : [{
20
          "names" : [["IDENTIFIER", "i_D0"]], "mode" : ["in"], "typ" : {
21
            "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
22
              "ranges" : [["RANGE_WITH_DIRECTION", {
23
                "direction" : "downto", "from" : ["EXPRESSION", {
24
                  "args" : [["EXPRESSION", {
25
                    "args" : [["CALL", ["SIMPLE_NAME", "g_Width"]]]}
26
                  ]]}
27
                ], "_to" : ["EXPRESSION", {
28
                  "args" : [["EXPRESSION", {
29
                    "args" : [["CONSTANT_VALUE", {
30
                      "value" : ["CST_LITERAL", "0"]}
31
                    ]]}
32
                  ]]}
33
                ]}
34
              ]]}
35
            ]}
36
          }
37
        , {
38
          "names" : [["IDENTIFIER", "i_D1"]], "mode" : ["in"], "typ" : {
39
            "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
40
              "ranges" : [["RANGE_WITH_DIRECTION", {
41
                "direction" : "downto", "from" : ["EXPRESSION", {
42
                  "args" : [["EXPRESSION", {
43
                    "args" : [["CALL", ["SIMPLE_NAME", "g_Width"]]]}
44
                  ]]}
45
                ], "_to" : ["EXPRESSION", {
46
                  "args" : [["EXPRESSION", {
47
                    "args" : [["CONSTANT_VALUE", {
48
                      "value" : ["CST_LITERAL", "0"]}
49
                    ]]}
50
                  ]]}
51
                ]}
52
              ]]}
53
            ]}
54
          }
55
        , {
56
          "names" : [["IDENTIFIER", "i_Sel"]], "mode" : ["in"], "typ" : {
57
            "name" : ["SIMPLE_NAME", "std_logic"]}
58
          }
59
        , {
60
          "names" : [["IDENTIFIER", "o_D"]], "mode" : ["out"], "typ" : {
61
            "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
62
              "ranges" : [["RANGE_WITH_DIRECTION", {
63
                "direction" : "downto", "from" : ["EXPRESSION", {
64
                  "args" : [["EXPRESSION", {
65
                    "args" : [["CALL", ["SIMPLE_NAME", "g_Width"]]]}
66
                  ]]}
67
                ], "_to" : ["EXPRESSION", {
68
                  "args" : [["EXPRESSION", {
69
                    "args" : [["CONSTANT_VALUE", {
70
                      "value" : ["CST_LITERAL", "0"]}
71
                    ]]}
72
                  ]]}
73
                ]}
74
              ]]}
75
            ]}
76
          }
77
        ], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
78
      ]}
79
    , {
80
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
81
        "name" : ["IDENTIFIER", "Behavioral"], "entity" : ["IDENTIFIER", "CNE_01400_good"], "ARCHITECTURE_DECLARATIVE_PART" : [], "ARCHITECTURE_STATEMENT_PART" : [["CONDITIONAL_SIGNAL_ASSIGNMENT", {
82
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "o_D"], "rhs" : [{
83
            "expr" : [{
84
              "value" : ["EXPRESSION", {
85
                "args" : [["EXPRESSION", {
86
                  "args" : [["EXPRESSION", {
87
                    "args" : [["EXPRESSION", {
88
                      "args" : [["CALL", ["SIMPLE_NAME", "i_D1"]]]}
89
                    ]]}
90
                  ]]}
91
                ]]}
92
              ]}
93
            ], "cond" : ["EXPRESSION", {
94
              "id" : "=", "args" : [["EXPRESSION", {
95
                "args" : [["EXPRESSION", {
96
                  "args" : [["EXPRESSION", {
97
                    "args" : [["CALL", ["SIMPLE_NAME", "i_Sel"]]]}
98
                  ]]}
99
                ]]}
100
              ], ["EXPRESSION", {
101
                "args" : [["EXPRESSION", {
102
                  "args" : [["EXPRESSION", {
103
                    "args" : [["CONSTANT_VALUE", {
104
                      "value" : ["CST_LITERAL", "'1'"]}
105
                    ]]}
106
                  ]]}
107
                ]]}
108
              ]]}
109
            ]}
110
          , {
111
            "expr" : [{
112
              "value" : ["EXPRESSION", {
113
                "args" : [["EXPRESSION", {
114
                  "args" : [["EXPRESSION", {
115
                    "args" : [["EXPRESSION", {
116
                      "args" : [["CALL", ["SIMPLE_NAME", "i_D0"]]]}
117
                    ]]}
118
                  ]]}
119
                ]]}
120
              ]}
121
            ]}
122
          ]}
123
        ]]}
124
      ]}
125
    ]}
126
  }