Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / vhdl_json / vhdl_files / 2-exportOK / ghdl / ghdl / testsuite / vests / vhdl-93 / ashenden / compliant / ch_01_fg_01_10.json @ 3fd18385

History | View | Annotate | Download (4.6 KB)

1
{
2
  "DESIGN_FILE" : {
3
    "design_units" : [{
4
      "contexts" : [], "library" : ["ENTITY_DECLARATION", {
5
        "name" : ["IDENTIFIER", "d_latch"], "ports" : [{
6
          "names" : [["IDENTIFIER", "d"], ["IDENTIFIER", "clk"]], "mode" : ["in"], "typ" : {
7
            "name" : ["SIMPLE_NAME", "bit"]}
8
          }
9
        , {
10
          "names" : [["IDENTIFIER", "q"]], "mode" : ["out"], "typ" : {
11
            "name" : ["SIMPLE_NAME", "bit"]}
12
          }
13
        ], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
14
      ]}
15
    , {
16
      "contexts" : [], "library" : ["ENTITY_DECLARATION", {
17
        "name" : ["IDENTIFIER", "and2"], "ports" : [{
18
          "names" : [["IDENTIFIER", "a"], ["IDENTIFIER", "b"]], "mode" : ["in"], "typ" : {
19
            "name" : ["SIMPLE_NAME", "bit"]}
20
          }
21
        , {
22
          "names" : [["IDENTIFIER", "y"]], "mode" : ["out"], "typ" : {
23
            "name" : ["SIMPLE_NAME", "bit"]}
24
          }
25
        ], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
26
      ]}
27
    , {
28
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
29
        "name" : ["IDENTIFIER", "basic"], "entity" : ["IDENTIFIER", "d_latch"], "ARCHITECTURE_DECLARATIVE_PART" : [], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
30
          "id" : ["IDENTIFIER", "latch_behavior"], "PROCESS_STATEMENT_PART" : [["IF_STATEMENT", {
31
            "if_cases" : [{
32
              "if_cond" : ["EXPRESSION", {
33
                "id" : "=", "args" : [["EXPRESSION", {
34
                  "args" : [["EXPRESSION", {
35
                    "args" : [["EXPRESSION", {
36
                      "args" : [["CALL", ["SIMPLE_NAME", "clk"]]]}
37
                    ]]}
38
                  ]]}
39
                ], ["EXPRESSION", {
40
                  "args" : [["EXPRESSION", {
41
                    "args" : [["EXPRESSION", {
42
                      "args" : [["CONSTANT_VALUE", {
43
                        "value" : ["CST_LITERAL", "'1'"]}
44
                      ]]}
45
                    ]]}
46
                  ]]}
47
                ]]}
48
              ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
49
                "lhs" : ["SIMPLE_NAME", "q"], "rhs" : [{
50
                  "value" : ["EXPRESSION", {
51
                    "args" : [["EXPRESSION", {
52
                      "args" : [["EXPRESSION", {
53
                        "args" : [["EXPRESSION", {
54
                          "args" : [["CALL", ["SIMPLE_NAME", "d"]]]}
55
                        ]]}
56
                      ]]}
57
                    ]]}
58
                  ], "delay" : ["EXPRESSION", {
59
                    "args" : [["EXPRESSION", {
60
                      "args" : [["EXPRESSION", {
61
                        "args" : [["EXPRESSION", {
62
                          "args" : [["CONSTANT_VALUE", {
63
                            "value" : ["CST_LITERAL", "2"], "unit_name" : ["SIMPLE_NAME", "ns"]}
64
                          ]]}
65
                        ]]}
66
                      ]]}
67
                    ]]}
68
                  ]}
69
                ]}
70
              ]]}
71
            ]}
72
          ], ["WAIT_STATEMENT"]]}
73
        ]]}
74
      ]}
75
    , {
76
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
77
        "name" : ["IDENTIFIER", "basic"], "entity" : ["IDENTIFIER", "and2"], "ARCHITECTURE_DECLARATIVE_PART" : [], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
78
          "id" : ["IDENTIFIER", "and2_behavior"], "PROCESS_STATEMENT_PART" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
79
            "lhs" : ["SIMPLE_NAME", "y"], "rhs" : [{
80
              "value" : ["EXPRESSION", {
81
                "id" : "and", "args" : [["EXPRESSION", {
82
                  "args" : [["EXPRESSION", {
83
                    "args" : [["EXPRESSION", {
84
                      "args" : [["EXPRESSION", {
85
                        "args" : [["CALL", ["SIMPLE_NAME", "a"]]]}
86
                      ]]}
87
                    ]]}
88
                  ]]}
89
                ], ["EXPRESSION", {
90
                  "args" : [["EXPRESSION", {
91
                    "args" : [["EXPRESSION", {
92
                      "args" : [["EXPRESSION", {
93
                        "args" : [["CALL", ["SIMPLE_NAME", "b"]]]}
94
                      ]]}
95
                    ]]}
96
                  ]]}
97
                ]]}
98
              ], "delay" : ["EXPRESSION", {
99
                "args" : [["EXPRESSION", {
100
                  "args" : [["EXPRESSION", {
101
                    "args" : [["EXPRESSION", {
102
                      "args" : [["CONSTANT_VALUE", {
103
                        "value" : ["CST_LITERAL", "2"], "unit_name" : ["SIMPLE_NAME", "ns"]}
104
                      ]]}
105
                    ]]}
106
                  ]]}
107
                ]]}
108
              ]}
109
            ]}
110
          ], ["WAIT_STATEMENT"]]}
111
        ]]}
112
      ]}
113
    ]}
114
  }