Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
zkevm-circuits
zkevm-circuits
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

新注册的用户请输入邮箱并保存,随后登录邮箱激活账号。后续可直接使用邮箱登录!

  • zkp
  • zkevm-circuitszkevm-circuits
  • Wiki
    • Zkevm docs
  • 11 fixed

11 fixed · Changes

Page history
feat: modify docs --story=1 authored Aug 07, 2024 by gz Xu's avatar gz Xu
Show whitespace changes
Inline Side-by-side
Showing with 24 additions and 22 deletions
+24 -22
  • zkevm-docs/11-fixed.markdown zkevm-docs/11-fixed.markdown +24 -22
  • No files found.
zkevm-docs/11-fixed.markdown
View page @ 66f9a8e9
# Fixed
## 简介 ## 简介
Fixed circuit是在电路初始化阶段预先向fixed_table填入一些cell数据,在后续电路运行过程中进行lookup查表操作; Fixed circuit是在电路初始化阶段预先向fixed_table填入一些cell数据,在后续电路运行过程中进行lookup查表操作;
...@@ -60,24 +62,24 @@ pub enum Tag { ...@@ -60,24 +62,24 @@ pub enum Tag {
###### Fixed电路为不同的场景生成多行Row数据,将它填入Fixed_table表后示例如下: ###### Fixed电路为不同的场景生成多行Row数据,将它填入Fixed_table表后示例如下:
| tag | value_0 | value_1 | value_2 | | tag | value_0 | value_1 | value_2 |
----|----|----|-----| | -------- | ----------------- | ------- | ------- |
| And | 0 | 0 | 0 | | And | 0 | 0 | 0 |
| And | 0 | 1 | 0 | | And | 0 | 1 | 0 |
| And | ...| ...| ...| | And | ... | ... | ... |
| And | 255 | 0 | 0 | | And | 255 | 0 | 0 |
| And | 255 | 1 | 1 | | And | 255 | 1 | 1 |
| Or | 0 | 0 | 0 | | Or | 0 | 0 | 0 |
| Or | 0 | 1 | 1 | | Or | 0 | 1 | 1 |
| Or | ...| ...| ...| | Or | ... | ... | ... |
| Or | 255 | 0 | 255 | | Or | 255 | 0 | 255 |
| Or | 255 | 1 | 255 | | Or | 255 | 1 | 255 |
| Bytecode | MLOAD | 0 | 0 | | Bytecode | MLOAD | 0 | 0 |
| Bytecode | PUSH1 | 1 | 0| | Bytecode | PUSH1 | 1 | 0 |
| Bytecode | PUSH30 | 30 | 1| | Bytecode | PUSH30 | 30 | 1 |
| Bytecode | ...| ...| ...| | Bytecode | ... | ... | ... |
| U16 | 256 (不必从0开始) | U10_TAG | 1| | U16 | 256 (不必从0开始) | U10_TAG | 1 |
| U16 | ... | U10_TAG| ... | | U16 | ... | U10_TAG | ... |
| U16 | 1279 | U10_TAG| 1024| | U16 | 1279 | U10_TAG | 1024 |
| U16 | 1280 | | | | U16 | 1280 | | |
| U16 | .... | | | | U16 | .... | | |
| U16 | 65535 | | | | U16 | 65535 | | |
......
Clone repository
  • basics
    • evm
    • halo2
  • code notes
    • binary_number_with_real_selector
    • how to use macro
    • simple_lt
    • simple_lt_word
  • Home
  • image
  • zkevm docs
    • 1 introduction
    • 10 public
    • 11 fixed
    • 12 exp
    • 13 keccak
    • 14 comparisons
    • 15 differences
View All Pages

Copyright © 2024 ChainWeaver Org. All Rights Reserved. 版权所有。

京ICP备2023035722号-3

京公网安备 11010802044225号