| name | gf-scan | |||
|---|---|---|---|---|
| description | Index project | |||
| allowed-tools |
|
Index all SystemVerilog files in the current project to build a module database.
-
Use Verilator to quickly parse all SV files and surface modules:
verilator --lint-only -Wall *.sv 2>&1 | head -50
-
Alternatively, manually discover SV files:
- Use Glob to find all
**/*.svand**/*.svhfiles - Read each file to extract module declarations
- Report the module hierarchy
- Use Glob to find all
-
Present results showing:
- Total files found
- Module names and their locations
- Include file dependencies
- Any parsing errors encountered