Files
mlkem-sync/sync_rtl/common/defines.vh
FallenSigh 717a9929b6 fix(rtl,scripts): replace combinational divider with Barrett multiplication, add synthesis include_dirs, set 50MHz clock
- Replace / and % operators in comp_decomp_sync with Barrett multiply-by-reciprocal
  (dividend * 5039 >> 24) + correction step. Eliminates ~100 CARRY4 divider chain.
- Add include_dirs for sources_1 fileset so Windows Vivado synthesis finds defines.vh.
- Change CLK_PERIOD from 10.0 (100MHz) to 40.0 (50MHz) to reflect actual target.
2026-06-30 00:23:43 +08:00

7 lines
174 B
Systemverilog

`ifndef DEFINES_VH
`define DEFINES_VH
`define CLK_PERIOD 20.0 // 50MHz
`define Q 3329 // ML-KEM prime modulus
`define N 256 // polynomial degree
`endif