スキル一覧に戻る
Devil-SX

autochip-proj-arch

by Devil-SX

0🍴 0📅 2026年1月19日
GitHubで見るManusで実行

SKILL.md


name: autochip_proj_arch description: AutoChip project configuration structure and utilities for managing IC module metadata, including schema validation and extraction tools.

This SKILL describes the AutoChip project configuration. All configurations are contained in a directory named .autochip with the following structure:

.autochip/
├── env.yaml              # Environment configuration file
└── modules/
    ├── <module_name>.json
    └── <module_name>.json

Environment Configuration

The env.yaml file describing the necessary env.

Module Definitions

Module JSON files are the core metadata for project interaction. Each module must satisfy the Schema definition.

Module Structure

{
  "name": "module_name",
  "filepath": "path/to/rtl.v",
  "docpath": "path/to/doc.md",
  "submodules": [
    { "$ref": "./other_module.json" }
  ],
  "test": {
    "testbench_path": "path/to/testbench.sv",
    "golden_model_path": "path/to/model.py",
    "test_case": [
      {
        "name": "test_basic",
        "run_cmd": "make test",
        "output_log_path": ["logs/test.log"]
      }
    ]
  }
}

Scripts

Located in scripts/ directory. All scripts use named arguments.

validate_schema.py

Validate JSON files against the autochip module schema with $ref support.

python scripts/validate_schema.py --schema <schema_path> --json <json_path> [--no-resolve-refs]
ArgumentTypeDescription
--schemastringPath to the schema JSON file (required)
--jsonstringPath to the JSON file to validate (required)
--no-resolve-refsflagSkip resolving $ref references before validation

Example:

python scripts/validate_schema.py --schema autochip_module_schema.json --json cpu.json

extract_modules.py

Extract all modules from a JSON file, including those referenced via $ref.

python scripts/extract_modules.py --schema <schema_path> --json <json_path> [--format FORMAT] [-o OUTPUT]
ArgumentTypeDescription
--schemastringPath to the schema JSON file (required)
--jsonstringPath to the JSON file to extract from (required)
--formatstringOutput format: table, json, tree (default: table)
-o, --outputstringOutput file path (default: stdout)

Example:

# Tree format
python scripts/extract_modules.py --schema autochip_module_schema.json --json cpu.json --format tree

# JSON format to file
python scripts/extract_modules.py --schema autochip_module_schema.json --json cpu.json --format json -o modules.json

extract_testcases.py

Extract all test cases from a JSON file, including those from referenced modules.

python scripts/extract_testcases.py --schema <schema_path> --json <json_path> [--format FORMAT] [-o OUTPUT] [--filter-module MODULE]
ArgumentTypeDescription
--schemastringPath to the schema JSON file (required)
--jsonstringPath to the JSON file to extract from (required)
--formatstringOutput format: table, json, summary (default: table)
-o, --outputstringOutput file path (default: stdout)
--filter-modulestringOnly show test cases for a specific module

Example:

# Summary format
python scripts/extract_testcases.py --schema autochip_module_schema.json --json cpu.json --format summary

# Filter by module
python scripts/extract_testcases.py --schema autochip_module_schema.json --json cpu.json --filter-module alu

$ref Reference Support

All scripts support resolving $ref references to external JSON files. When a module references another via:

{
  "submodules": [
    { "$ref": "./alu.json" }
  ]
}

The scripts will:

  1. Load the referenced file (./alu.json)
  2. Resolve nested references recursively
  3. Include the referenced module data in the output

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です