diff --git a/comm/result.py b/comm/result.py index 0f114c5..d3a8f2b 100644 --- a/comm/result.py +++ b/comm/result.py @@ -196,9 +196,9 @@ node_default_meta_data = { "functions": {"total": 0, "cover": 0}, "lines": {"total": 0, "cover": 0}, "paths": "", - "value": 1, "light": False, "light_count": 0, + "doc_url": "", } @@ -214,6 +214,7 @@ def update_dut_tree_node_meta(tree_data): if "children" in node: meta = copy.deepcopy(node_default_meta_data) meta["paths"] = parent_name + "/" + node["name"] + value = 0 for child in node["children"]: child_meta = _update_node_meta(child, meta["paths"]) meta["cases"]["total"] += child_meta["cases"]["total"] @@ -226,10 +227,10 @@ def update_dut_tree_node_meta(tree_data): meta["lines"]["cover"] += child_meta["lines"]["cover"] meta["lines"]["text"] = "%d/%d (%.2f %%)" % (meta["lines"]["cover"], meta["lines"]["total"], float(meta["lines"]["cover"])/meta["lines"]["total"]*100) if meta["lines"]["total"] > 0 else "0/0 (0.00 %)" - meta["value"] += child_meta["value"] meta["light_count"] += child_meta["light_count"] + value += child.get("value", 1) node["meta"] = meta - node["value"] = node["meta"]["value"] + node["value"] = value else: node["meta"]["paths"] = parent_name + "/" + node["name"] node["meta"]["light_count"] = 1 if node["meta"]["light"] else 0 @@ -244,7 +245,7 @@ def init_dut_tree(tree_data): meta = copy.deepcopy(node_default_meta_data) meta.update(node.get("meta",{})) node["meta"] = meta - node["value"] = node["meta"]["value"] + node["value"] = 1 node.update(copy.deepcopy(node_defaut_extern)) else: for child in node["children"]: @@ -287,7 +288,6 @@ class DutTree(object): warning("Path not found: %s, please check your dut module struct" % path) continue leaf_map[path]["meta"] = {**leaf_map[path]["meta"], **meta} - leaf_map[path]["value"] = leaf_map[path]["meta"]["value"] total = leaf_map[path]["meta"]["cases"]["total"] if total > 0: leaf_map[path]["itemStyle"]["colorAlpha"] = min(1.0, float(total)/10.0) diff --git a/configs/dutree/xiangshan-kmh.yaml b/configs/dutree/xiangshan-kmh.yaml index d17e209..5a1d9cb 100644 --- a/configs/dutree/xiangshan-kmh.yaml +++ b/configs/dutree/xiangshan-kmh.yaml @@ -28,6 +28,8 @@ children: desc: "微操作分支目标缓冲器 (Micro-Op Fetch Target Buffer)" - name: "ittage" desc: "分支目标缓冲器 (Instruction Tagged Target Buffer)" + meta: + doc_url: "https://open-verify.cc/xs-bpu/docs/modules/04_ittage" - name: "tagesc" desc: "分支目标缓冲器+SC预测器 (TAGE-SC)" - name: "ras" diff --git a/documents/content/zh-cn/docs/_index.md b/documents/content/zh-cn/docs/_index.md index bdfd188..a1fec81 100755 --- a/documents/content/zh-cn/docs/_index.md +++ b/documents/content/zh-cn/docs/_index.md @@ -10,6 +10,7 @@ weight: 10 @@ -21,42 +22,36 @@ function update_charts(data_url){ 香山昆明湖架构各个模块验证情况如上图中所示。总统计数据如下: -
- - + + + + - - + + + + - - + + + + - - - - - - - - - - - - - - + +
  • 总测试用例数(Total Cases)
  • -总测试用例数(Total Cases):-测试用例通过数(Passed Cases):-
  • 测试用例通过数(Passed Cases)
  • -测试用例未过数(Failed Cases):-测试用例跳过数(Skipped Cases):-
  • 测试用例未过数(Failed Cases)
  • -总功能覆盖点数(Function Coverage):-覆盖点已覆盖数(Coverage Functions):-
  • 测试用例跳过数(Skipped Cases)
  • -
  • 总功能覆盖点数(Function Coverage)
  • -
  • 覆盖点已覆盖数(Coverage Functions)
  • -
  • 总代码行覆盖率(Line Coverage Rate)
  • -总代码行覆盖率(Line Coverage Rate):-
    *总代码行会随着DUT的增加而不断增加,因此:总代码行覆盖率不是最终覆盖率 + 其他内容快捷连接: - **[DUT文档与功能](https://open-verify.cc/UnityChipForXiangShan/)** @@ -66,9 +61,16 @@ function update_charts(data_url){ - **[正在进行的任务列表](https://github.com/XS-MLVP/UnityChipForXiangShan/labels/task)** - **[已完成的任务列表](https://github.com/XS-MLVP/UnityChipForXiangShan/labels/taskdone)** -注:本项目中的统计信息根据commit等数据自动更新,参与者可以提交issue(写明任务内容,预计完成时间等)同步正在进行的任务。 +
    +
    +

    香山昆明湖的每个DUT验证进展

    +
    +
    +{{}}
    +
    +注:本项目中的统计信息根据commit等数据自动更新,参与者可以提交issue(写明任务内容,预计完成时间等)同步正在进行的任务。
    数据自动更新日期:1970-01-01 00:00:00
    diff --git a/documents/layouts/shortcodes/list-dut-test-status.html b/documents/layouts/shortcodes/list-dut-test-status.html new file mode 100644 index 0000000..e79ea8f --- /dev/null +++ b/documents/layouts/shortcodes/list-dut-test-status.html @@ -0,0 +1,136 @@ + + + +
    + + + + + + + + + + + + + + + +
    IndexNameDocument  Cases   Fail   SKipCsRate (%)Checks + CkRate (%)LinesCvRate (%)
    +
    + + diff --git a/documents/static/js/chart_datatree.js b/documents/static/js/chart_datatree.js index 18b20bb..c96332f 100644 --- a/documents/static/js/chart_datatree.js +++ b/documents/static/js/chart_datatree.js @@ -143,10 +143,10 @@ function show_datatree_chart(chart_id, data_url) { }); // set em data - $("#em_id_report_dut_total").text(graph_data["tree"]["meta"]["value"]) + $("#em_id_report_dut_total").text(graph_data["tree"]["value"]) $("#em_id_report_dut_min_light").text(graph_data["config"]["default_light_min"]) $("#em_id_report_dut_lighted").text(graph_data["tree"]["meta"]["light_count"]) - $("#em_id_report_dut_lighted_no").text(graph_data["tree"]["meta"]["value"] - graph_data["tree"]["meta"]["light_count"]) + $("#em_id_report_dut_lighted_no").text(graph_data["tree"]["value"] - graph_data["tree"]["meta"]["light_count"]) }); option && utChart.setOption(option); }