Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (4.89 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_CLAUSE", [["IDENTIFIER", "work"]]], ["USE_CLAUSE", [["SELECTED_NAME", [["SIMPLE_NAME", "work"], ["SIMPLE_NAME", "pkg_HBK"]]]]]], "library" : ["ENTITY_DECLARATION", {
5
        "name" : ["IDENTIFIER", "STD_05600_good"], "ports" : [{
6
          "names" : [["IDENTIFIER", "i_Clock"]], "mode" : ["in"], "typ" : {
7
            "name" : ["SIMPLE_NAME", "std_logic"]}
8
          }
9
        , {
10
          "names" : [["IDENTIFIER", "i_Reset_n"]], "mode" : ["in"], "typ" : {
11
            "name" : ["SIMPLE_NAME", "std_logic"]}
12
          }
13
        , {
14
          "names" : [["IDENTIFIER", "i_A"]], "mode" : ["in"], "typ" : {
15
            "name" : ["SIMPLE_NAME", "std_logic"]}
16
          }
17
        , {
18
          "names" : [["IDENTIFIER", "i_B"]], "mode" : ["in"], "typ" : {
19
            "name" : ["SIMPLE_NAME", "std_logic"]}
20
          }
21
        , {
22
          "names" : [["IDENTIFIER", "i_Sel"]], "mode" : ["in"], "typ" : {
23
            "name" : ["SIMPLE_NAME", "std_logic"]}
24
          }
25
        , {
26
          "names" : [["IDENTIFIER", "o_O"]], "mode" : ["out"], "typ" : {
27
            "name" : ["SIMPLE_NAME", "std_logic"]}
28
          }
29
        ], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
30
      ]}
31
    , {
32
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
33
        "name" : ["IDENTIFIER", "Behavioral"], "entity" : ["IDENTIFIER", "STD_05600_good"], "ARCHITECTURE_DECLARATIVE_PART" : [{
34
          "declaration" : ["SIGNAL_DECLARATION", {
35
            "names" : [["IDENTIFIER", "Mux_Sel"]], "typ" : {
36
              "name" : ["SIMPLE_NAME", "std_logic"]}
37
            }
38
          ]}
39
        , {
40
          "declaration" : ["SIGNAL_DECLARATION", {
41
            "names" : [["IDENTIFIER", "Mux_Sel_r"]], "typ" : {
42
              "name" : ["SIMPLE_NAME", "std_logic"]}
43
            }
44
          ]}
45
        , {
46
          "declaration" : ["SIGNAL_DECLARATION", {
47
            "names" : [["IDENTIFIER", "O"]], "typ" : {
48
              "name" : ["SIMPLE_NAME", "std_logic"]}
49
            }
50
          ]}
51
        ], "ARCHITECTURE_STATEMENT_PART" : [["CONDITIONAL_SIGNAL_ASSIGNMENT", {
52
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "Mux_Sel"], "rhs" : [{
53
            "expr" : [{
54
              "value" : ["EXPRESSION", {
55
                "id" : "and", "args" : [["EXPRESSION", {
56
                  "args" : [["EXPRESSION", {
57
                    "args" : [["EXPRESSION", {
58
                      "args" : [["EXPRESSION", {
59
                        "args" : [["CALL", ["SIMPLE_NAME", "i_Sel"]]]}
60
                      ]]}
61
                    ]]}
62
                  ]]}
63
                ], ["EXPRESSION", {
64
                  "args" : [["EXPRESSION", {
65
                    "args" : [["EXPRESSION", {
66
                      "args" : [["EXPRESSION", {
67
                        "args" : [["CALL", ["SIMPLE_NAME", "O"]]]}
68
                      ]]}
69
                    ]]}
70
                  ]]}
71
                ]]}
72
              ]}
73
            ]}
74
          ]}
75
        ], ["COMPONENT_INSTANTIATION_STATEMENT", {
76
          "name" : ["IDENTIFIER", "DFF"], "inst_unit" : ["SIMPLE_NAME", "DFlipFlop"], "port_map" : [{
77
            "formal_name" : ["SIMPLE_NAME", "i_Clock"], "actual_designator" : ["SIMPLE_NAME", "i_Clock"]}
78
          , {
79
            "formal_name" : ["SIMPLE_NAME", "i_Reset_n"], "actual_designator" : ["SIMPLE_NAME", "i_Reset_n"]}
80
          , {
81
            "formal_name" : ["SIMPLE_NAME", "i_D"], "actual_designator" : ["SIMPLE_NAME", "Mux_Sel"]}
82
          , {
83
            "formal_name" : ["SIMPLE_NAME", "o_Q"], "actual_designator" : ["SIMPLE_NAME", "Mux_Sel_r"]}
84
          ]}
85
        ], ["COMPONENT_INSTANTIATION_STATEMENT", {
86
          "name" : ["IDENTIFIER", "Mux1"], "inst_unit" : ["SIMPLE_NAME", "Mux"], "port_map" : [{
87
            "formal_name" : ["SIMPLE_NAME", "i_A"], "actual_designator" : ["SIMPLE_NAME", "i_A"]}
88
          , {
89
            "formal_name" : ["SIMPLE_NAME", "i_B"], "actual_designator" : ["SIMPLE_NAME", "i_B"]}
90
          , {
91
            "formal_name" : ["SIMPLE_NAME", "i_S"], "actual_designator" : ["SIMPLE_NAME", "Mux_Sel_r"]}
92
          , {
93
            "formal_name" : ["SIMPLE_NAME", "o_O"], "actual_designator" : ["SIMPLE_NAME", "O"]}
94
          ]}
95
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
96
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "o_O"], "rhs" : [{
97
            "expr" : [{
98
              "value" : ["EXPRESSION", {
99
                "args" : [["EXPRESSION", {
100
                  "args" : [["EXPRESSION", {
101
                    "args" : [["EXPRESSION", {
102
                      "args" : [["CALL", ["SIMPLE_NAME", "O"]]]}
103
                    ]]}
104
                  ]]}
105
                ]]}
106
              ]}
107
            ]}
108
          ]}
109
        ]]}
110
      ]}
111
    ]}
112
  }