run_tb.sh gains an 'enc' module that shares the 'top' KeyGen tcl compile list (same RTL datapath) and swaps in tb_mlkem_enc_katK_xsim. Usage mirrors 'top': ./run_tb.sh enc [K] [CASE]; no args -> full sweep K=2/3/4 cases 0..2. --list shows enc; per-case summary lines parse PASS (E7). run_enc.sh deleted. tb_mlkem_enc_katK_xsim verify_e7 now dumps the hardware-produced ct (read from ct_bram via the dbg_ct tap) on one line (byte 0 first), same format as ml-kem-r's encaps_io example, so ss/ct can be eyeballed and diffed. On mismatch it re-scans to print the first 8 differing byte positions. Verified: ./run_tb.sh enc -> 9/9 PASS (E7) (ct==KAT.ct && ss==KAT.ss); ./run_tb.sh top 3 0 KeyGen unregressed.
7.4 KiB
Executable File
7.4 KiB
Executable File