Skip to content

Commit 32e4f98

Browse files
committed
update comments
1 parent 443e8bf commit 32e4f98

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

prover/src/tables/cpu.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
//!
3737
//! ### Senders (CPU sends to other tables)
3838
//! - DECODE: instruction fetch
39-
//! - IS_BYTE: range checks for rs1, rs2, rd, arg1[i], arg2[i], res[i]
39+
//! - IS_BYTE: range checks for rs1, rs2, rd
40+
//! - IS_BYTE_PAIR: range checks for arg1/arg2/res byte pairs (×12, two bytes per interaction)
4041
//! - IS_BIT: range checks for flags (via templates)
4142
//! - ADD: for ADD, LOAD, JALR operations
4243
//! - STORE ADD: for STORE (res = arg1 + imm, separate from main ADD)
@@ -1944,11 +1945,11 @@ pub fn bus_interactions() -> Vec<BusInteraction> {
19441945
));
19451946

19461947
// -------------------------------------------------------------------------
1947-
// Range checks (15 total: 3 IS_BYTE + 12 IS_HALF)
1948+
// Range checks (15 total: 3 IS_BYTE + 12 IS_BYTE_PAIR)
19481949
// CPU-CR29: IS_BYTE[rs1], CPU-CR30: IS_BYTE[rs2], CPU-CR31: IS_BYTE[rd]
1949-
// CPU-CR32.i: IS_HALF[arg1[2i] + 256*arg1[2i+1]] (i=0..3)
1950-
// CPU-CR33.i: IS_HALF[arg2[2i] + 256*arg2[2i+1]] (i=0..3)
1951-
// CPU-CR34.i: IS_HALF[res[2i] + 256*res[2i+1]] (i=0..3)
1950+
// CPU-CR32.i: IS_BYTE_PAIR[arg1[2i], arg1[2i+1]] (i=0..3)
1951+
// CPU-CR33.i: IS_BYTE_PAIR[arg2[2i], arg2[2i+1]] (i=0..3)
1952+
// CPU-CR34.i: IS_BYTE_PAIR[res[2i], res[2i+1]] (i=0..3)
19521953
// -------------------------------------------------------------------------
19531954
// RS1, RS2, RD are single-byte register indices — checked individually.
19541955
// ARG1/ARG2/RES are 8-byte little-endian values — adjacent byte pairs are

0 commit comments

Comments
 (0)