test: add board FFT validation and VCD capture

This commit is contained in:
2026-07-15 04:13:15 +08:00
parent 2359e7976c
commit d45646342b
10 changed files with 198 additions and 23 deletions

View File

@@ -144,6 +144,7 @@ def update_matmul(metrics: str, log: str) -> str:
def main() -> None:
metrics = METRICS.read_text(encoding="utf-8")
vivado = REPORT_DIR / "evidence" / "vivado"
board = REPORT_DIR / "evidence" / "board"
legacy = ROOT / "fpga" / "vivado_reports_nodsp"
metrics = update_timing(metrics, read_first(vivado / "timing_summary_full.rpt", legacy / "timing_summary_full.rpt"))
metrics = update_util(metrics, read_first(vivado / "utilization.rpt", legacy / "utilization.rpt"))
@@ -153,10 +154,10 @@ def main() -> None:
metrics = update_mlkem(metrics, read_first(soc / "mlkem_test.log", ROOT / "sdk/software/examples/mlkem_test/result.txt"))
metrics = update_fft(
metrics,
read_first(soc / "fft.log", ROOT / "sdk/software/examples/fft/result.txt"),
read_first(soc / "fft_dma.log", ROOT / "sdk/software/examples/fft_dma/result.txt"),
read_first(board / "fft.log", soc / "fft.log", ROOT / "sdk/software/examples/fft/result.txt"),
read_first(board / "fft_dma.log", soc / "fft_dma.log", ROOT / "sdk/software/examples/fft_dma/result.txt"),
)
metrics = update_matmul(metrics, read_first(REPORT_DIR / "evidence" / "board" / "matmul_official.log"))
metrics = update_matmul(metrics, read_first(board / "matmul_official.log"))
try:
revision = subprocess.check_output(