feat(tb): add KAT testbench for mlkem_top (ML-KEM-512)
- gen_vectors.py: parse kat_MLKEM_512.rsp, generate hex vectors - tb_mlkem_top_xsim.v: force-inject d/msg/z for KAT testing - mlkem_top_input.hex: 5 vectors (d + msg + z) - mlkem_top_expected.hex: 5 vectors (pk + sk + ct + ss) - xsim_run.tcl: full dependency chain compilation Known issue: mlkem_top FSM has combinational race on rng_valid_i - rng_valid_i driven by state_r (registered) causes rng_sync to miss valid_i pulse when state transitions at posedge - Fix: change rng_valid_i to use state_next pattern (same as sha3_top uses state_next for kc_valid_i)
This commit is contained in:
5
sync_rtl/top/TB/vectors/mlkem_top_expected.hex
Normal file
5
sync_rtl/top/TB/vectors/mlkem_top_expected.hex
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user