ワンクリックで
formal-basic-info
通过脚本把 DUT 基本信息写入 .formal_records.yaml 的 basic_info 字段,并由系统自动渲染 02 基本信息文档。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
通过脚本把 DUT 基本信息写入 .formal_records.yaml 的 basic_info 字段,并由系统自动渲染 02 基本信息文档。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
UCAgent是基于大语言模型的自动化任务执行AI代理,支持通用工作流配置和执行。本技能提供配置文件编写规范、自定义Checker开发指南、--emulate-config配置校验工具使用方法,帮助用户快速创建、验证和运行各类任务工作流。
从 analysis 中提取 RTL_BUG 属性,LLM 通过脚本将 Bug 详细信息写入 .formal_records.yaml。
自动解析环境分析文档和 wrapper.sv,为每个 RTL_BUG 生成 Python 测试函数框架,LLM 填写引脚驱动和断言逻辑。
基于 basic_info.clock_reset 与 extra_config.tcl 渲染 wrapper/checker/formal.tcl。
提取和分析被测模块(DUT)的功能规格和形式化检测点
Internal support skill for formal verification workspaces. This folder carries shared Python helpers and templates used by other formal skills and is not intended for direct user invocation.
| name | formal-basic-info |
| description | 通过脚本把 DUT 基本信息写入 .formal_records.yaml 的 basic_info 字段,并由系统自动渲染 02 基本信息文档。 |
本技能用于维护 .formal_records.yaml 中的 basic_info 字段。
本阶段的唯一事实来源是 .formal_records.yaml.basic_info。
核心规则:
02_{DUT}_basic_info.mdRunSkillScript 调用 update_basic_info.py 修改 YAML02_{DUT}_basic_info.md 是派生产物,Checker 通过后系统会自动重建执行说明:
RunSkillScript 调用技能脚本python3 环境具备所有依赖常用命令:
python3 .ucagent/skills/formal/basic-info/scripts/update_basic_info.py -action show
python3 .ucagent/skills/formal/basic-info/scripts/update_basic_info.py -action set -path module_type -value "加法器"
python3 .ucagent/skills/formal/basic-info/scripts/update_basic_info.py -action append -path ports.inputs -value '{"name":"clk","width":1,"signal_type":"clock","desc":"主时钟"}'
字段清单:
module_type:模块类型,字符串is_top:是否顶层,布尔值design_type:组合/时序/流水线等设计类型,字符串ports.inputs[]:输入端口,每项包含 name/width/signal_type/descports.outputs[]:输出端口,每项包含 name/width/signal_type/desc/potential_issueparameters[]:参数列表,每项包含 name/default/range/desccore_functions[]:核心功能点correctness_requirements[]:正确性要求clock_reset.clock_signal:主时钟信号名;无时钟设计填空字符串clock_reset.clock_count:时钟个数clock_reset.clock_type:单时钟、多时钟等clock_reset.cdc_note:跨时钟说明clock_reset.reset_signal:复位信号名;无复位设计填空字符串clock_reset.reset_type:同步/异步clock_reset.reset_init_state:初始复位行为说明architecture.ascii_diagram:ASCII 结构图architecture.datapath:数据通路说明architecture.control_logic:控制逻辑说明parameter_impact[]:参数变化对设计行为的影响special_units.arithmetic[]:算术单元列表,每项包含 unit_type/exists/notespecial_units.storage[]:存储单元列表,每项包含 unit_type/exists/noteenv_config_notes.clock_constraints[]:时钟约束建议env_config_notes.reset_sequence:复位序列建议env_config_notes.input_constraints[]:输入约束建议conclusion:本阶段结论最小骨架:
basic_info:
module_type: ""
is_top: true
design_type: ""
ports:
inputs: []
outputs: []
parameters: []
core_functions: []
correctness_requirements: []
clock_reset:
clock_signal: ""
clock_count: ""
clock_type: ""
cdc_note: ""
reset_signal: ""
reset_type: ""
reset_init_state: ""
architecture:
ascii_diagram: ""
datapath: ""
control_logic: ""
parameter_impact: []
special_units:
arithmetic: []
storage: []
env_config_notes:
clock_constraints: []
reset_sequence: ""
input_constraints: []
conclusion: ""
推荐填写顺序:
module_type/is_top/design_type 和 ports,把 DUT 轮廓固定下来。parameters、core_functions、correctness_requirements,把后续 SVA 目标对齐。clock_reset、architecture、special_units,这些字段会直接影响环境建模。clock_reset.clock_signal 与 clock_reset.reset_signal 必须写 DUT 实际端口名;如果 DUT 无时钟或无复位,就显式保留空字符串。env_config_notes 与 conclusion,给后续 extra_config 和脚本生成提供约束依据。写入约束:
ports.inputs[] 与 ports.outputs[] 必须是对象数组,width 建议写整数或可读位宽表达式。clock_reset.clock_signal 与 clock_reset.reset_signal 是 Stage 5 渲染时的直接输入,必须显式填写;不要依赖后续阶段自动猜测。ports.inputs[].signal_type 中标注为 clock 或 reset,并在 clock_reset 中写出对应信号名。special_units.*[] 的 exists 必须为布尔值,不要写 "yes" 或 "no"。env_config_notes 只写建议,不直接替代 extra_config 的最终配置。02_{DUT}_basic_info.md 是渲染结果,不要先改文档再回填 YAML。