... | ... | @@ -28,14 +28,11 @@ ADDMOD |
|
|
|
|
|
core row中的表格设计如下:
|
|
|
|
|
|
| cnt | ver[0-7] | ver[8-15] | ver[16-23] | ver[24-31] | 其他 |
|
|
|
| ---- | ------------------- | --------- | ---------- | ---------- | ---- |
|
|
|
| 2 | ARITH | - | - | - | - |
|
|
|
| 1 | STATE (stack_pop_n) | - | - | - | - |
|
|
|
| 1 | STATE (stack_pop_b) | - | - | - | - |
|
|
|
| 1 | STATE (stack_pop_a) | - | - | - | - |
|
|
|
| 1 | STATE (stack_push) | - | - | - | - |
|
|
|
| 0 | DYNA_SELECTOR | AUX | - | - | - |
|
|
|
| cnt | ver[0-7] | ver[8-15] | ver[16-23] | ver[24-31] | 其他 |
|
|
|
| ---- | ------------------- | ------------------- | ------------------- | ------------------ | ---- |
|
|
|
| 2 | ARITH | - | - | - | - |
|
|
|
| 1 | STATE (stack_pop_n) | STATE (stack_pop_b) | STATE (stack_pop_a) | STATE (stack_push) | - |
|
|
|
| 0 | DYNA_SELECTOR | AUX | - | - | - |
|
|
|
|
|
|
cnt=2,vers[0]~vers[8]的位置用来存放arithmetic table lookup;
|
|
|
|
... | ... | @@ -110,7 +107,7 @@ cnt=1,vers[24]~vers[31]的位置用来存进栈顶的值stack_push。 |
|
|
|
|
|
参考如下代码:
|
|
|
|
|
|
```Rust
|
|
|
```rust
|
|
|
fn get_constraints(
|
|
|
&self,
|
|
|
config: &ExecutionConfig<F, NUM_STATE_HI_COL, NUM_STATE_LO_COL>,
|
... | ... | @@ -161,7 +158,7 @@ fn get_constraints( |
|
|
|
|
|
参考代码如下:
|
|
|
|
|
|
```Rust
|
|
|
```rust
|
|
|
fn get_lookups(
|
|
|
&self,
|
|
|
config: &ExecutionConfig<F, NUM_STATE_HI_COL, NUM_STATE_LO_COL>,
|
... | ... | |