Skip to content

feat(code-index): add Verilog/VHDL parsers for HDL codebases #871

@itomek

Description

@itomek

Context

Reviewer on #721 suggested supporting hardware design languages so AMD's HDL codebases can be indexed with the same tool.

Goal

Add parsers for Verilog / SystemVerilog / VHDL to src/gaia/code_index/parsers.py. Extract module, entity, architecture, and always-block boundaries as semantic chunks.

Acceptance

  • Tree-sitter grammars (or equivalent) wired in for .v, .sv, .vhd, .vhdl.
  • Unit tests in tests/unit/test_code_index_parsers.py cover sample HDL files and assert chunk boundaries on module/entity/architecture.
  • gaia-code index on a repo containing HDL files indexes them without error and returns sensible results for a query like "clock divider".

References

  • src/gaia/code_index/parsers.py — existing language parsers
  • tests/unit/test_code_index_parsers.py — test patterns to follow

Deferred from #721.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cppdomain:agent-coreFramework, tools, registry, memory, skills, orchestrationenhancementNew feature or requesttrack:platformFoundation that both consumer-app and oem-pc tracks consume

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions