dqi_ext_spec_guide

dqi_ext.spec 编写指南

本文档说明如何撰写 dqi_ext.spec 文件,用于从报告文件中自动提取设计质量指标(DQI)。

文件格式概览

  • 每一行代表一个待提取的 DQI 条目。

  • 使用 Tab (\t) 作为字段分隔符。

  • # 开头为注释行,将被忽略。

字段定义(共6列)

Column IndexNameDescription
1<category>/<DQI_ID>Category and DQI ID, used for output path and file naming.
2Report_pathReport file path. TCL variables like $DESIGN are allowed.
3Simple_regexRegex pattern to extract value. Use capture groups ( ... )
4Only_extract_firsttrue/false. Whether to extract only the first match.
5Default_valueValue to use if no match or file not found.
6Complex_match_scriptShell script to override regex extraction.

示例(Example)


编写注意事项(Notes)

注释与空行

  • Lines starting with # are treated as comments.

  • Blank lines will be ignored.

Report_path 中使用变量

  • You may include $TCL_VAR such as $DESIGN, $RPT.

  • The variables will be resolved from sourced Tcl files.

正则表达式字段 Simple_regex

  • Must include capture group ( ... ).

  • Use slashes /.../ to wrap the regex.

  • Common patterns include ^, \s+, \d+, (\S+).

Complex_match_script 字段

  • If not none, this field overrides the regex.

  • The script is executed directly using shell.

  • Script must output a full .val line with 4 columns.

  • TCL variables in the script will be expanded.


.val 输出格式

Example: