|
30 | 30 | (defun (modexp-data---exo-sum) macro/EXO_SUM) |
31 | 31 | (defun (modexp-data---phase) macro/PHASE) |
32 | 32 | (defun (modexp-data---param-byte-size) (modexp-data---size)) |
33 | | -(defun (modexp-data---param-offset) (+ (modexp-data---cdo) (modexp-data---src-offset))) |
34 | | -(defun (modexp-data---leftover-data-size) (- (modexp-data---cds) (modexp-data---src-offset))) |
35 | | -(defun (modexp-data---num-left-padding-bytes) (- 512 (modexp-data---param-byte-size))) |
| 33 | +(defun (modexp-data---param-offset) (+ (modexp-data---cdo) (modexp-data---src-offset))) |
| 34 | +(defun (modexp-data---leftover-data-size) (- (modexp-data---cds) (modexp-data---src-offset))) |
| 35 | +(defun (modexp-data---num-left-padding-bytes) (- EIP_7823_MODEXP_UPPER_BYTE_SIZE_BOUND (modexp-data---param-byte-size))) |
36 | 36 | (defun (modexp-data---data-runs-out) (shift prprc/WCP_RES 2)) |
37 | 37 | (defun (modexp-data---num-right-padding-bytes) (* (- (modexp-data---param-byte-size) (modexp-data---leftover-data-size)) (modexp-data---data-runs-out))) |
38 | 38 | (defun (modexp-data---right-padding-remainder) (shift prprc/EUC_REM 2)) |
39 | 39 | (defun (modexp-data---totnt-is-one) (shift prprc/WCP_RES 3)) |
40 | 40 | (defun (modexp-data---middle-sbo) (shift prprc/EUC_REM 6)) ;; "" |
41 | 41 |
|
42 | 42 |
|
43 | | -(defconstraint modexp-data---setting-TOT (:guard (* MACRO IS_MODEXP_DATA)) |
44 | | - ;; Setting total number of mmio inst |
45 | | - (eq! TOT NB_MICRO_ROWS_TOT_MODEXP_DATA)) |
| 43 | +(defconstraint modexp-data---number-of-preprocessing-rows-ie-setting-TOT (:guard (* MACRO IS_MODEXP_DATA)) |
| 44 | + ;; Setting total number of mmio inst |
| 45 | + (eq! TOT |
| 46 | + NB_MICRO_ROWS_TOT_MODEXP_DATA)) |
46 | 47 |
|
47 | 48 | (defconstraint modexp-data---1st-preprocessing-row (:guard (* MACRO IS_MODEXP_DATA)) |
48 | 49 | (begin |
|
64 | 65 | (modexp-data---num-right-padding-bytes) |
65 | 66 | LLARGE) |
66 | 67 | (eq! TOTRZ (shift prprc/EUC_QUOT 2)) |
67 | | - (debug (eq! TOTNT (- 32 (+ TOTLZ TOTRZ)))))) |
| 68 | + (debug (eq! TOTNT (- NB_MICRO_ROWS_TOT_MODEXP_DATA |
| 69 | + (+ TOTLZ TOTRZ)))))) |
68 | 70 |
|
69 | 71 | (defconstraint modexp-data---3rd-preprocessing-row (:guard (* MACRO IS_MODEXP_DATA)) |
70 | 72 | (begin |
|
0 commit comments