Chuyển đến nội dung
Skillpedia
Phân tích và bảng tính18k · #10529

dse-loop

Skill này làm gì

Skill này chạy một tìm kiếm tự động qua các cài đặt thiết kế cho công cụ kiến trúc máy tính và thiết kế chip. Dành cho kỹ sư muốn tìm cấu hình tốt nhất cho một chương trình.

Khi nào nên dùng

  • ✓Khi bạn muốn quét các tham số và tìm cấu hình phần cứng tốt nhất.
  • ✓Khi bạn cần tối ưu một thiết kế cho đến khi đạt một mục tiêu đo được.
  • ✓Khi bạn muốn một tìm kiếm tự động dừng sau một giới hạn thời gian đã đặt.

Liên kết skill

https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep/blob/main/skills/dse-loop/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep/blob/main/skills/dse-loop/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tôi cần bạn tìm cài đặt tốt nhất cho mô phỏng chip của tôi và dừng sau hai giờ hoặc khi đạt mục tiêu.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent chạy chương trình, đọc kết quả, chọn bộ tham số kế tiếp và lặp lại. Nó dừng khi đạt mục tiêu đo được, khi chạm giới hạn lặp, hoặc khi hết ngân sách thời gian.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

DSE Loop: Autonomous Design Space Exploration

🔁 Do not wrap this skill in /loop / CronCreate. It already loops internally until its objective is met or it times out. Unlike the verdict-bearing review/audit skills, its stop gate is an objective machine-checkable metric (Type-A), so its self-termination is safe same-model — the reason not to wrap it is scheduler duplication, not the verdict fence. See shared-references/external-cadence.md.

Autonomously explore a design space: run → analyze → pick next parameters → repeat, until the objective is met or timeout is reached. Designed for computer architecture and EDA problems.

Context: $ARGUMENTS

Safety Rules — READ FIRST

NEVER do any of the following:

  • sudo anything
  • rm -rf, rm -r, or any recursive deletion
  • rm any file you did not create in this session
  • Overwrite existing source files without reading them first
  • git push, git reset --hard, or any destructive git operation
  • Kill processes you did not start

If a step requires any of the above, STOP and report to the user.

Constants (override via $ARGUMENTS)

Constant Default Description
TIMEOUT 2h Total wall-clock budget. Stop exploring after this.
MAX_ITERATIONS 50 Hard cap on number of design points evaluated.
PATIENCE 10 Stop early if no improvement for this many consecutive iterations.
OBJECTIVE minimize minimize or maximize the target metric.

Override inline: /dse-loop "task desc — timeout: 4h, max_iterations: 100, patience: 15"

Typical Use Cases

Problem Program Parameters Objective
Microarch DSE gem5 simulation cache size, assoc, pipeline width, ROB size, branch predictor maximize IPC or minimize area×delay
Synthesis tuning yosys/DC script optimization passes, target freq, effort level minimize area at timing closure
RTL parameterization verilator sim data width, FIFO depth, pipeline stages, buffer sizes meet throughput target at min area
Compiler flags gcc/llvm build + benchmark -O levels, unroll factor, vectorization, scheduling minimize runtime or code size
Placement/routing openroad/innovus utilization, aspect ratio, layer config minimize wirelength / timing
Formal verification abc/sby bound depth, engine, timeout per property maximize coverage in time budget
Memory subsystem cacti / ramulator bank count, row buffer policy, scheduling optimize bandwidth/energy

Workflow

Phase 0: Parse Task & Setup

  1. Parse $ARGUMENTS to extract:

    • Program: what to run (command, script, or Makefile target)
    • Parameter space: which knobs to tune and their ranges/options (may be incomplete — see step 2)
    • Objective metric: what to optimize (and how to extract it from output)
    • Constraints: hard limits that must not be violated (e.g., timing must close)
    • Timeout: wall-clock budget
    • Success criteria: when is the result "good enough" to stop early?
  2. Infer missing parameter ranges — If the user provides parameter names but NOT ranges/options, you MUST infer them before exploring:

    a. Read the source code — search for the parameter names in the codebase:

    • Look for argparse/click definitions, config files, Makefile variables, module parameters, #define, parameter (SystemVerilog), localparam, etc.
    • Extract defaults, types, and any comments hinting at valid values

    b. Apply domain knowledge to set reasonable ranges:

    Parameter type Inference strategy
    Cache/memory sizes Powers of 2, typically 1KB–16MB
    Associativity Powers of 2: 1, 2, 4, 8, 16
    Pipeline width / issue width Small integers: 1, 2, 4, 8
    Buffer/queue/FIFO depth Powers of 2: 4, 8, 16, 32, 64
    Clock period / frequency Based on technology node; try ±50% from default
    Bound depth (BMC/formal) Geometric: 5, 10, 20, 50, 100
    Timeout values Geometric: 10s, 30s, 60s, 120s, 300s
    Boolean/enum flags Enumerate all options found in source
    Continuous (learning rate, threshold) Log-scale sweep: 5 points spanning 2 orders of magnitude around default
    Integer counts (threads, cores) Linear: from 1
Câu hỏi thường gặp

Có an toàn khi để nó chạy trên máy tôi không?

Skill có các quy tắc an toàn nghiêm ngặt. Nó tránh xóa tệp mà nó không tạo, không chạy sudo và không thực hiện các thay đổi git phá hủy.

Nó chạy bao lâu?

Ngân sách thời gian mặc định là hai giờ, và cũng có số điểm thiết kế tối đa.

Tôi cần cung cấp gì?

Bạn cung cấp chương trình, các tham số cần thay đổi, và một mục tiêu rõ ràng mà skill có thể đo được.

Chi tiết

Mô tả gốc của tác giả

Autonomous design space exploration loop for computer architecture and EDA. Runs a program, analyzes results, tunes parameters, and iterates until objective is met or timeout. Use when user says \"DSE\", \"design space exploration\", \"sweep parameters\", \"optimize\", \"find best config\", or wants iterative parameter tuning.

repo: wanshuiyin/Auto-claude-code-research-in-sleep

Độ phổ biến

Sao GitHub
18k
Vị trí xếp hạng
#10529
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự