Files
mlkem-sync/.trellis/tasks/archive/2026-06/06-27-fix-tb-strict-compare/prd.md

11 lines
358 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# TB 严格数值比较
## Goal
修改 tb 中 PASS/FAIL 逻辑:仅当 pk/sk/ct/ss 与 KAT 期望值**数值匹配**才算 PASSFSM 跑通但数值不匹配算 FAIL。
## Fix
`sync_rtl/top/TB/tb_mlkem_top_xsim.v` 中:
- 删除 "structural pass" 逻辑line 320 附近)
- WARN 分支改为 `kg_fail++` 而非 `kg_pass++`
- Encaps/Decaps 同理