... | ... | @@ -26,13 +26,11 @@ ADD |
|
|
|
|
|
core row中的表格设计如下:
|
|
|
|
|
|
| cnt | ver[0-7] | ver[8-15] | ver[16-23] | 其他 |
|
|
|
| ---- | ------------------- | --------- | ---------- | ---- |
|
|
|
| 2 | ARITH | - | - | - |
|
|
|
| 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] | 其他 |
|
|
|
| ---- | ------------------- | ------------------- | ------------------ | ---- |
|
|
|
| 2 | ARITH | - | - | - |
|
|
|
| 1 | STATE (stack_pop_b) | STATE (stack_pop_a) | STATE (stack_push) | - |
|
|
|
| 0 | DYNA_SELECTOR | AUX | - | - |
|
|
|
|
|
|
cnt=2,vers[0]~vers[8]的位置用来存放arithmetic table lookup;
|
|
|
|
... | ... | @@ -102,7 +100,7 @@ cnt=1,vers[16]~vers[23]的位置用来存进栈顶的值stack_push。 |
|
|
|
|
|
参考如下代码:
|
|
|
|
|
|
```Rust
|
|
|
```rust
|
|
|
fn get_constraints(
|
|
|
&self,
|
|
|
config: &ExecutionConfig<F, NUM_STATE_HI_COL, NUM_STATE_LO_COL>,
|
... | ... | @@ -153,7 +151,7 @@ fn get_constraints( |
|
|
|
|
|
参考代码如下:
|
|
|
|
|
|
```Rust
|
|
|
```rust
|
|
|
fn get_lookups(
|
|
|
&self,
|
|
|
config: &ExecutionConfig<F, NUM_STATE_HI_COL, NUM_STATE_LO_COL>,
|
... | ... | |