{
  "path": "EXAMPLES/sv/param_module.sv",
  "modules": [
    {
      "id": "param_module",
      "name": "param_module",
      "params": [
        {
          "id": "param_module.WIDTH",
          "name": "WIDTH",
          "default": "8",
          "comment": [
            "Width of the input data"
          ],
          "loc": {
            "line": 7,
            "col": 5,
            "end_line": 7,
            "end_col": 24
          }
        },
        {
          "id": "param_module.DEPTH",
          "name": "DEPTH",
          "default": "4",
          "loc": {
            "line": 8,
            "col": 5,
            "end_line": 8,
            "end_col": 24
          }
        },
        {
          "id": "param_module.INIT_VAL",
          "name": "INIT_VAL",
          "dim": "[7:0]",
          "default": "8'hFF",
          "loc": {
            "line": 9,
            "col": 5,
            "end_line": 9,
            "end_col": 37
          }
        },
        {
          "id": "param_module.ENABLE_FEATURE",
          "ptype": "logic",
          "name": "ENABLE_FEATURE",
          "default": "1'b1",
          "loc": {
            "line": 10,
            "col": 5,
            "end_line": 10,
            "end_col": 42
          }
        }
      ],
      "ports": [
        {
          "id": "param_module.clk",
          "direction": "input",
          "ptype": "wire",
          "name": "clk",
          "loc": {
            "line": 12,
            "col": 5,
            "end_line": 12,
            "end_col": 19
          }
        },
        {
          "id": "param_module.rst_n",
          "direction": "input",
          "ptype": "wire",
          "name": "rst_n",
          "comment": [
            "active-low reset"
          ],
          "loc": {
            "line": 13,
            "col": 5,
            "end_line": 13,
            "end_col": 21
          }
        },
        {
          "id": "param_module.data_in",
          "direction": "input",
          "ptype": "wire",
          "name": "data_in",
          "dim": "[WIDTH-1:0]",
          "comment": [
            "Input data",
            "other comment"
          ],
          "loc": {
            "line": 14,
            "col": 5,
            "end_line": 14,
            "end_col": 35
          }
        },
        {
          "id": "param_module.data_out",
          "direction": "output",
          "ptype": "reg",
          "name": "data_out",
          "dim": "[WIDTH-1:0]",
          "loc": {
            "line": 16,
            "col": 5,
            "end_line": 16,
            "end_col": 36
          }
        },
        {
          "id": "param_module.bidir_bus",
          "direction": "inout",
          "ptype": "wire",
          "name": "bidir_bus",
          "dim": "[DEPTH-1:0]",
          "loc": {
            "line": 17,
            "col": 5,
            "end_line": 17,
            "end_col": 37
          }
        }
      ],
      "signals": [
        {
          "id": "param_module.internal_reg",
          "ptype": "logic",
          "name": "internal_reg",
          "dim": "[WIDTH-1:0]",
          "loc": {
            "line": 21,
            "col": 5,
            "end_line": 21,
            "end_col": 36
          }
        },
        {
          "id": "param_module.internal_wire",
          "ptype": "wire",
          "name": "internal_wire",
          "dim": "[DEPTH-1:0]",
          "loc": {
            "line": 22,
            "col": 5,
            "end_line": 22,
            "end_col": 36
          }
        }
      ],
      "processes": [
        {
          "id": "param_module.#always1",
          "kind": "always",
          "events": [
            {
              "edge": "posedge",
              "signal": "clk"
            },
            {
              "edge": "negedge",
              "signal": "rst_n"
            }
          ],
          "clock": "clk",
          "clock_edge": "posedge",
          "reset": "rst_n",
          "reset_edge": "negedge",
          "loc": {
            "line": 49,
            "col": 5,
            "end_line": 58,
            "end_col": 8
          }
        }
      ],
      "insts": [
        {
          "id": "param_module.u_sub_module",
          "name": "u_sub_module",
          "module": "sub_module",
          "params": [
            {
              "id": "param_module.u_sub_module.DATA_WIDTH",
              "port": "DATA_WIDTH",
              "con": "WIDTH",
              "loc": {
                "line": 26,
                "col": 9,
                "end_line": 26,
                "end_col": 27
              }
            },
            {
              "id": "param_module.u_sub_module.INIT_VALUE",
              "port": "INIT_VALUE",
              "con": "INIT_VAL",
              "loc": {
                "line": 27,
                "col": 9,
                "end_line": 27,
                "end_col": 30
              }
            }
          ],
          "connections": [
            {
              "id": "param_module.u_sub_module.clk",
              "port": "clk",
              "con": "clk",
              "comment": [
                "comment",
                "other comment"
              ],
              "loc": {
                "line": 29,
                "col": 9,
                "end_line": 29,
                "end_col": 18
              }
            },
            {
              "id": "param_module.u_sub_module.reset",
              "port": "reset",
              "con": "rst_n",
              "loc": {
                "line": 31,
                "col": 9,
                "end_line": 31,
                "end_col": 22
              }
            },
            {
              "id": "param_module.u_sub_module.input_data",
              "port": "input_data",
              "con": "data_in",
              "loc": {
                "line": 32,
                "col": 9,
                "end_line": 32,
                "end_col": 29
              }
            },
            {
              "id": "param_module.u_sub_module.output_data",
              "port": "output_data",
              "con": "internal_wire",
              "loc": {
                "line": 33,
                "col": 9,
                "end_line": 33,
                "end_col": 36
              }
            },
            {
              "id": "param_module.u_sub_module.config_bus",
              "port": "config_bus",
              "con": "bidir_bus",
              "loc": {
                "line": 34,
                "col": 9,
                "end_line": 34,
                "end_col": 31
              }
            }
          ],
          "loc": {
            "line": 25,
            "col": 5,
            "end_line": 35,
            "end_col": 7
          }
        },
        {
          "id": "param_module.u_sub_module2",
          "name": "u_sub_module2",
          "module": "sub_module",
          "params": [
            {
              "id": "param_module.u_sub_module2.DATA_WIDTH",
              "port": "DATA_WIDTH",
              "con": "4",
              "loc": {
                "line": 39,
                "col": 9,
                "end_line": 39,
                "end_col": 23
              }
            },
            {
              "id": "param_module.u_sub_module2.INIT_VALUE",
              "port": "INIT_VALUE",
              "con": "8'h0F",
              "loc": {
                "line": 40,
                "col": 9,
                "end_line": 40,
                "end_col": 27
              }
            }
          ],
          "connections": [
            {
              "id": "param_module.u_sub_module2.clk",
              "port": "clk",
              "con": "clk",
              "loc": {
                "line": 42,
                "col": 9,
                "end_line": 42,
                "end_col": 18
              }
            },
            {
              "id": "param_module.u_sub_module2.reset",
              "port": "reset",
              "con": "rst_n",
              "loc": {
                "line": 43,
                "col": 9,
                "end_line": 43,
                "end_col": 22
              }
            },
            {
              "id": "param_module.u_sub_module2.input_data",
              "port": "input_data",
              "con": "data_in[3:0]",
              "loc": {
                "line": 44,
                "col": 9,
                "end_line": 44,
                "end_col": 34
              }
            },
            {
              "id": "param_module.u_sub_module2.output_data",
              "port": "output_data",
              "loc": {
                "line": 45,
                "col": 9,
                "end_line": 45,
                "end_col": 23
              }
            },
            {
              "id": "param_module.u_sub_module2.config_bus",
              "port": "config_bus",
              "con": "bidir_bus[1:0]",
              "loc": {
                "line": 46,
                "col": 9,
                "end_line": 46,
                "end_col": 36
              }
            }
          ],
          "loc": {
            "line": 38,
            "col": 5,
            "end_line": 47,
            "end_col": 7
          }
        }
      ],
      "imports": [
        "test_pack::*"
      ],
      "loc": {
        "line": 4,
        "col": 1,
        "end_line": 68,
        "end_col": 10
      }
    },
    {
      "id": "sub_module",
      "name": "sub_module",
      "params": [
        {
          "id": "sub_module.DATA_WIDTH",
          "name": "DATA_WIDTH",
          "default": "8",
          "loc": {
            "line": 72,
            "col": 5,
            "end_line": 72,
            "end_col": 29
          }
        },
        {
          "id": "sub_module.INIT_VALUE",
          "name": "INIT_VALUE",
          "dim": "[7:0]",
          "default": "0",
          "loc": {
            "line": 73,
            "col": 5,
            "end_line": 73,
            "end_col": 35
          }
        }
      ],
      "ports": [
        {
          "id": "sub_module.clk",
          "direction": "input",
          "ptype": "wire",
          "name": "clk",
          "loc": {
            "line": 75,
            "col": 5,
            "end_line": 75,
            "end_col": 19
          }
        },
        {
          "id": "sub_module.reset",
          "direction": "input",
          "ptype": "wire",
          "name": "reset",
          "loc": {
            "line": 76,
            "col": 5,
            "end_line": 76,
            "end_col": 21
          }
        },
        {
          "id": "sub_module.input_data",
          "direction": "input",
          "ptype": "wire",
          "name": "input_data",
          "dim": "[DATA_WIDTH-1:0]",
          "loc": {
            "line": 77,
            "col": 5,
            "end_line": 77,
            "end_col": 43
          }
        },
        {
          "id": "sub_module.output_data",
          "direction": "output",
          "ptype": "wire",
          "name": "output_data",
          "dim": "[DATA_WIDTH-1:0]",
          "loc": {
            "line": 78,
            "col": 5,
            "end_line": 78,
            "end_col": 45
          }
        },
        {
          "id": "sub_module.config_bus",
          "direction": "inout",
          "ptype": "wire",
          "name": "config_bus",
          "dim": "[DATA_WIDTH/2-1:0]",
          "loc": {
            "line": 79,
            "col": 5,
            "end_line": 79,
            "end_col": 45
          }
        }
      ],
      "loc": {
        "line": 71,
        "col": 1,
        "end_line": 82,
        "end_col": 10
      }
    }
  ]
}
{
  "path": "EXAMPLES/sv/adder.sv",
  "modules": [
    {
      "id": "adder",
      "name": "adder",
      "params": [
        {
          "id": "adder.DATA_WIDTH",
          "ptype": "integer",
          "name": "DATA_WIDTH",
          "default": "8",
          "comment": [
            "Width of input operands"
          ],
          "loc": {
            "line": 4,
            "col": 3,
            "end_line": 4,
            "end_col": 35
          }
        },
        {
          "id": "adder.OUTPUT_WIDTH",
          "ptype": "integer",
          "name": "OUTPUT_WIDTH",
          "default": "4",
          "comment": [
            "Test configuration value"
          ],
          "loc": {
            "line": 5,
            "col": 3,
            "end_line": 5,
            "end_col": 37
          }
        }
      ],
      "ports": [
        {
          "id": "adder.A",
          "direction": "input",
          "ptype": "logic",
          "dtype": "unsigned",
          "name": "A",
          "dim": "[DATA_WIDTH-1:0]",
          "comment": [
            "Packed input operand A"
          ],
          "loc": {
            "line": 7,
            "col": 3,
            "end_line": 7,
            "end_col": 43
          }
        },
        {
          "id": "adder.B",
          "direction": "input",
          "ptype": "logic",
          "dtype": "unsigned",
          "name": "B",
          "dim": "[DATA_WIDTH-1:0]",
          "comment": [
            "Packed input operand B"
          ],
          "loc": {
            "line": 8,
            "col": 3,
            "end_line": 8,
            "end_col": 43
          }
        },
        {
          "id": "adder.X",
          "direction": "output",
          "ptype": "logic",
          "dtype": "unsigned",
          "name": "X",
          "dim": "[DATA_WIDTH:0]",
          "comment": [
            "Packed sum output"
          ],
          "loc": {
            "line": 9,
            "col": 3,
            "end_line": 9,
            "end_col": 43
          }
        },
        {
          "id": "adder.byte_p",
          "direction": "input",
          "ptype": "logic",
          "name": "byte_p",
          "dim": "[7:0]",
          "comment": [
            "Packed byte input"
          ],
          "loc": {
            "line": 10,
            "col": 3,
            "end_line": 10,
            "end_col": 48
          }
        },
        {
          "id": "adder.word_p",
          "direction": "input",
          "ptype": "logic",
          "name": "word_p",
          "dim": "[3:0][7:0]",
          "comment": [
            "Packed 32-bit word (4 bytes)"
          ],
          "loc": {
            "line": 11,
            "col": 3,
            "end_line": 11,
            "end_col": 48
          }
        },
        {
          "id": "adder.flag_u",
          "direction": "input",
          "ptype": "logic",
          "name": "flag_u",
          "comment": [
            "Unpacked single bit"
          ],
          "loc": {
            "line": 12,
            "col": 3,
            "end_line": 12,
            "end_col": 48
          }
        },
        {
          "id": "adder.arr_u",
          "direction": "input",
          "ptype": "logic",
          "name": "arr_u",
          "dim": "[7:0]",
          "dim_unpacked": "[0:3]",
          "comment": [
            "Unpacked byte array"
          ],
          "loc": {
            "line": 13,
            "col": 3,
            "end_line": 13,
            "end_col": 53
          }
        }
      ],
      "localparams": [
        {
          "id": "adder.SUM_WIDTH",
          "name": "SUM_WIDTH",
          "default": "DATA_WIDTH + 1",
          "loc": {
            "line": 16,
            "col": 3,
            "end_line": 16,
            "end_col": 41
          }
        }
      ],
      "signals": [
        {
          "id": "adder.a_port",
          "ptype": "logic",
          "name": "a_port",
          "comment": [
            "Test port A"
          ],
          "loc": {
            "line": 20,
            "col": 3,
            "end_line": 20,
            "end_col": 16
          }
        },
        {
          "id": "adder.b_port",
          "ptype": "logic",
          "name": "b_port",
          "comment": [
            "Test port B"
          ],
          "loc": {
            "line": 21,
            "col": 3,
            "end_line": 21,
            "end_col": 16
          }
        }
      ],
      "insts": [
        {
          "id": "adder.u_test_module",
          "name": "u_test_module",
          "module": "test_module",
          "connections": [
            {
              "id": "adder.u_test_module.test_input",
              "port": "test_input",
              "con": "a_port",
              "comment": [
                "Connected to a_port"
              ],
              "loc": {
                "line": 25,
                "col": 7,
                "end_line": 25,
                "end_col": 26
              }
            },
            {
              "id": "adder.u_test_module.test_output",
              "port": "test_output",
              "con": "b_port",
              "comment": [
                "Connected to b_port"
              ],
              "loc": {
                "line": 26,
                "col": 7,
                "end_line": 26,
                "end_col": 27
              }
            }
          ],
          "loc": {
            "line": 24,
            "col": 3,
            "end_line": 27,
            "end_col": 9
          }
        }
      ],
      "loc": {
        "line": 3,
        "col": 1,
        "end_line": 35,
        "end_col": 10
      }
    }
  ]
}
{
  "path": "EXAMPLES/sv/bcd_adder.sv",
  "modules": [
    {
      "id": "bcd_adder",
      "name": "bcd_adder",
      "ports": [
        {
          "id": "bcd_adder.a",
          "direction": "input",
          "name": "a",
          "dim": "[3:0]",
          "loc": {
            "line": 2,
            "col": 5,
            "end_line": 2,
            "end_col": 22
          }
        },
        {
          "id": "bcd_adder.b",
          "direction": "input",
          "name": "b",
          "dim": "[3:0]",
          "loc": {
            "line": 2,
            "col": 5,
            "end_line": 2,
            "end_col": 22
          }
        },
        {
          "id": "bcd_adder.cin",
          "direction": "input",
          "name": "cin",
          "loc": {
            "line": 3,
            "col": 5,
            "end_line": 3,
            "end_col": 15
          }
        },
        {
          "id": "bcd_adder.sum",
          "direction": "output",
          "name": "sum",
          "dim": "[3:0]",
          "loc": {
            "line": 4,
            "col": 5,
            "end_line": 4,
            "end_col": 22
          }
        },
        {
          "id": "bcd_adder.cout",
          "direction": "output",
          "name": "cout",
          "loc": {
            "line": 5,
            "col": 5,
            "end_line": 5,
            "end_col": 17
          }
        }
      ],
      "signals": [
        {
          "id": "bcd_adder.temp",
          "ptype": "reg",
          "name": "temp",
          "dim": "[4:0]",
          "loc": {
            "line": 7,
            "col": 5,
            "end_line": 7,
            "end_col": 20
          }
        }
      ],
      "processes": [
        {
          "id": "bcd_adder.#always1",
          "kind": "always",
          "events": [
            {
              "signal": "a"
            },
            {
              "signal": "b"
            },
            {
              "signal": "cin"
            }
          ],
          "loc": {
            "line": 11,
            "col": 5,
            "end_line": 22,
            "end_col": 8
          }
        }
      ],
      "loc": {
        "line": 1,
        "col": 1,
        "end_line": 23,
        "end_col": 10
      }
    },
    {
      "id": "tb_bcdadder",
      "name": "tb_bcdadder",
      "signals": [
        {
          "id": "tb_bcdadder.a",
          "ptype": "reg",
          "name": "a",
          "dim": "[3:0]",
          "loc": {
            "line": 26,
            "col": 5,
            "end_line": 26,
            "end_col": 17
          }
        },
        {
          "id": "tb_bcdadder.b",
          "ptype": "reg",
          "name": "b",
          "dim": "[3:0]",
          "loc": {
            "line": 27,
            "col": 5,
            "end_line": 27,
            "end_col": 17
          }
        },
        {
          "id": "tb_bcdadder.cin",
          "ptype": "reg",
          "name": "cin",
          "loc": {
            "line": 28,
            "col": 5,
            "end_line": 28,
            "end_col": 13
          }
        },
        {
          "id": "tb_bcdadder.sum",
          "ptype": "wire",
          "name": "sum",
          "dim": "[3:0]",
          "loc": {
            "line": 30,
            "col": 5,
            "end_line": 30,
            "end_col": 20
          }
        },
        {
          "id": "tb_bcdadder.cout",
          "ptype": "wire",
          "name": "cout",
          "loc": {
            "line": 31,
            "col": 5,
            "end_line": 31,
            "end_col": 15
          }
        }
      ],
      "insts": [
        {
          "id": "tb_bcdadder.uut",
          "name": "uut",
          "module": "bcd_adder",
          "params": [
            {
              "id": "tb_bcdadder.uut.TEST",
              "port": "TEST",
              "con": "TEST",
              "loc": {
                "line": 34,
                "col": 18,
                "end_line": 34,
                "end_col": 29
              }
            },
            {
              "id": "tb_bcdadder.uut.CAR",
              "port": "CAR",
              "con": "40'd0",
              "loc": {
                "line": 35,
                "col": 5,
                "end_line": 35,
                "end_col": 16
              }
            }
          ],
          "connections": [
            {
              "id": "tb_bcdadder.uut.a",
              "port": "a",
              "con": "a",
              "loc": {
                "line": 38,
                "col": 9,
                "end_line": 38,
                "end_col": 14
              }
            },
            {
              "id": "tb_bcdadder.uut.b",
              "port": "b",
              "con": "b",
              "loc": {
                "line": 39,
                "col": 9,
                "end_line": 39,
                "end_col": 14
              }
            },
            {
              "id": "tb_bcdadder.uut.cin",
              "port": "cin",
              "con": "cin",
              "loc": {
                "line": 40,
                "col": 9,
                "end_line": 40,
                "end_col": 18
              }
            },
            {
              "id": "tb_bcdadder.uut.sum",
              "port": "sum",
              "con": "sum",
              "loc": {
                "line": 41,
                "col": 9,
                "end_line": 41,
                "end_col": 18
              }
            },
            {
              "id": "tb_bcdadder.uut.cout",
              "port": "cout",
              "con": "cout",
              "loc": {
                "line": 42,
                "col": 9,
                "end_line": 42,
                "end_col": 20
              }
            }
          ],
          "loc": {
            "line": 34,
            "col": 5,
            "end_line": 43,
            "end_col": 7
          }
        }
      ],
      "loc": {
        "line": 25,
        "col": 1,
        "end_line": 63,
        "end_col": 10
      }
    }
  ]
}
