- 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.
7 lines
174 B
Systemverilog
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
|