├── .editorconfig ├── .gitattributes ├── .github ├── FUNDING.yml └── workflows │ └── docs.yml ├── .gitignore └── README.md /.editorconfig: -------------------------------------------------------------------------------- 1 | # top-most EditorConfig file 2 | root = true 3 | 4 | # all files 5 | [*] 6 | indent_style = tab 7 | indent_size = 4 8 | end_of_line = lf 9 | charset = utf-8 10 | trim_trailing_whitespace = true 11 | insert_final_newline = true 12 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text =auto 3 | # Standard to msysgit 4 | *.doc diff=astextplain 5 | *.DOC diff=astextplain 6 | *.docx diff=astextplain 7 | *.DOCX diff=astextplain 8 | *.dot diff=astextplain 9 | *.DOT diff=astextplain 10 | *.pdf diff=astextplain 11 | *.PDF diff=astextplain 12 | *.rtf diff=astextplain 13 | *.RTF diff=astextplain 14 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: qitas 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 13 | -------------------------------------------------------------------------------- /.github/workflows/docs.yml: -------------------------------------------------------------------------------- 1 | name: docs 2 | 3 | on: 4 | workflow_dispatch: 5 | schedule: 6 | - cron: '30 18 * * *' 7 | push: 8 | branches: 9 | - master 10 | paths: 11 | - '**.rst' 12 | - '**/docs.yml' 13 | 14 | 15 | env: 16 | DOCS_REPO: SoCXin/web 17 | DOCS_DIR: docs 18 | LATEST_DOCS_DIR: latest 19 | 20 | jobs: 21 | build: 22 | if: github.repository_owner == 'SoCXin' 23 | name: vendor 24 | strategy: 25 | matrix: 26 | REPO: 27 | - wch 28 | runs-on: ubuntu-latest 29 | steps: 30 | - name: Checkout 31 | uses: actions/checkout@v3 32 | with: 33 | submodules: "recursive" 34 | token: ${{ secrets.SOC_XIN_TOCKEN }} 35 | fetch-depth: 1 36 | 37 | - name: Checkout Docs 38 | uses: actions/checkout@v3 39 | with: 40 | repository: SoCXin/${{ matrix.REPO}} 41 | token: ${{ secrets.SOC_XIN_TOCKEN }} 42 | ref: main 43 | fetch-depth: 1 44 | path: www 45 | 46 | - name: Setup Python 47 | uses: actions/setup-python@v4 48 | with: 49 | python-version: 3.9 50 | 51 | - name: Install dependencies 52 | working-directory: www 53 | run: | 54 | python -m pip install --upgrade pip 55 | pip install tox 56 | 57 | - name: Build docs 58 | working-directory: www 59 | run: | 60 | tox -e docs 61 | 62 | - name: Preserve Docs 63 | run: | 64 | tar -czvf ${{ matrix.REPO}}.tar.gz -C www/_build html rtdpage 65 | 66 | - name: Save artifact 67 | uses: actions/upload-artifact@v3 68 | with: 69 | name: ${{ matrix.REPO}} 70 | path: ${{ matrix.REPO}}.tar.gz 71 | 72 | - name: Download artifact 73 | uses: actions/download-artifact@v3 74 | with: 75 | name: ${{ matrix.REPO}} 76 | 77 | - name: Unpack artifact 78 | run: | 79 | mkdir ./${{ env.LATEST_DOCS_DIR }} 80 | tar -xzf ./${{ matrix.REPO}}.tar.gz -C ./${{ env.LATEST_DOCS_DIR }} 81 | 82 | - name: Checkout latest Docs 83 | continue-on-error: true 84 | uses: actions/checkout@v3 85 | with: 86 | repository: ${{ env.DOCS_REPO }} 87 | path: ${{ env.DOCS_DIR }} 88 | ref: gh-pages 89 | 90 | - name: Synchronize Docs 91 | run: | 92 | rm -rf ${{ env.DOCS_DIR }}/.git 93 | rm -rf ${{ env.DOCS_DIR }}/${{ matrix.REPO}}/ 94 | mkdir -p ${{ env.DOCS_DIR }}/${{ matrix.REPO}}/ 95 | cp -rf ${{ env.LATEST_DOCS_DIR }}/html/* ${{ env.DOCS_DIR }}/${{ matrix.REPO}}/ 96 | 97 | - name: Validate Docs 98 | run: | 99 | if [ -z "$(ls -A ${{ env.DOCS_DIR }})" ]; then 100 | echo "Docs folder is empty. Aborting!" 101 | exit 1 102 | fi 103 | 104 | - name: Deploy to Github Pages 105 | uses: peaceiris/actions-gh-pages@v3 106 | with: 107 | personal_token: ${{ secrets.SOC_XIN_TOCKEN }} 108 | external_repository: ${{ env.DOCS_REPO }} 109 | publish_dir: ./${{ env.DOCS_DIR }} 110 | commit_message: Sync Docs 111 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | *.bin 3 | *.out 4 | *.hex 5 | *.log 6 | *.o 7 | ~$* 8 | .pio/ 9 | .vscode/ 10 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # [Level](https://github.com/SoCXin/Level) 2 | 3 | [![Build Status](https://github.com/SoCXin/Level/workflows/docs/badge.svg)](https://github.com/SoCXin/Level/actions/workflows/docs.yml) 4 | 5 | * 性能等级 L 6 | * 价格等级 R 7 | 8 | 9 | | 分级梯度 | 性能梯度 | 价格梯度 | Typical | Representative | 10 | | ------- | -------- | ------ | ------------ | ------------ | 11 | | Level 1 | FreqMax ≤ 60 MHz | ≤ $0.7 | | 12 | | Level 2 | FreqMax ≤ 240 MHz | ≤ $1.5 | | 13 | | Level 3 | [CoreMark](#CoreMark) ≤ 500 | ≤ $2.0 | | 14 | | Level 4 | [CoreMark](#CoreMark) ≤ 5000 | ≤ $5.0 | | 15 | | Level 5 | [CoreMark](#CoreMark) ≤ 30000 | ≤ $10.0 | | 16 | | Level 6 | [Geekbench](#Geekbench) > 500 | | | 17 | | Level 7 | [Geekbench](#Geekbench) > 2000 | | | 18 | | Level 8 | [Geekbench](#Geekbench) > 8000 | | | 19 | | Level 9 | [Geekbench](#Geekbench) > 16000 | | | 20 | 21 | 22 | ## CoreMark 23 | 24 | [CoreMark](https://www.eembc.org/coremark/scores.php) 是用来衡量嵌入式系统中中心处理单元(CPU,或微控制器MCU)性能的标准,该标准于2009年由EEMBC组织的Shay Gla-On提出,并且试图将其发展成为工业标准,从而代替陈旧的Dhrystone标准。 25 | 26 | * BCM2711(1500 MHz) EEMBC CoreMark : [33073 (22.049 CoreMark/MHz)](https://www.eembc.org/viewer/?benchmark_seq=13192) 27 | 28 | | Architecture | DMIPS/MHz | CoreMark/MHz | Representative | Power/MHz | 29 | | --------- | --------- | ------------ | ------------ | ------------ | 30 | | [Cortex-M0+](https://www.soc.xin/Cortex-M0) | 0.95 | 2.39 | [RP2040](https://github.com/SoCXin/RP2040) | 31 | | [Cortex-M23](https://www.arm.com/products/silicon-ip-cpu/cortex-m/cortex-m23) | 1.03 | 2.64 | [GD32E231](https://github.com/SoCXin/GD32E231) | 32 | | Cortex-M3 | 1.24 | 3.45 | [STM32F103](https://github.com/SoCXin/STM32F103) | 33 | | Cortex-M4F | 1.26 | 3.54 | [AT32F437](https://github.com/SoCXin/AT32F437) | 34 | | Cortex-M33 | 1.54 | 4.10 | [GD32W515](https://github.com/SoCXin/GD32W515) | 35 | | Cortex-M55 | 1.69 | 4.40 | 36 | | Cortex-M7 | 2.14 | 5.29 | [STM32H730](https://github.com/SoCXin/STM32H730) | 37 | | Cortex-M85 | 3.13 | 6.28 | 38 | | 24KEc | 1.46 | 3.05 | [MT7628](https://github.com/SoCXin/MT7628) | 39 | | 1004KEc | 1.55 | 3.20 | [MT7621](https://github.com/SoCXin/MT7621) | 40 | | Xtensa LX6 | | 2.07 | [ESP32](https://github.com/SoCXin/ESP32) | 41 | | Xtensa LX7 | | 2.56 | [ESP32-S3](https://github.com/SoCXin/ESP32S3) | 42 | | [Andes D45](http://www.andestech.com/cn/risc-vandes/) | 2.86 | 5.67 | [HPM6750](https://github.com/SoCXin/HPM6750) | 43 | | [Andes N22](http://www.andestech.com/en/products-solutions/andescore-processors/riscv-n22/) | 1.80 | 3.97 | [R9A02G020](https://github.com/SoCXin/R9A02G020) | 44 | | C910 | 5.8 | 7.00 | 45 | | C906 | 2.4 | 3.80 | [BL808](https://github.com/SoCXin/BL808) 46 | | E907 | 2.0 | 3.80 | 47 | | E902 | 1.55 | 2.69 | 48 | | [RISC-V4F](https://doc.soc.xin/wch/riscv) | | 3.19 |[CH32V307](https://github.com/SoCXin/CH32V307) | 49 | | [RISC-V4B](https://doc.soc.xin/wch/riscv) | | 3.19 |[CH32V203](https://github.com/SoCXin/CH32V203) | 44.65uA 50 | | [RISC-V2A](https://doc.soc.xin/wch/riscv) | | |[CH32V003](https://github.com/SoCXin/CH32V003) | 51 | 52 | 53 | ## Geekbench 54 | 55 | [Geekbench5](https://browser.geekbench.com/v5/cpu/search) 是一款多平台的性能测试工具。与同类软件不同的是,它几乎可以运行在所有的已知PC架构系统上,包括了Windows、Mac OSX、以及各种Linux发行版。Geekbench的测试项目重点考察CPU和内存系统的运算能力,在测试完成后会给出具体得分供用户参考比对。 56 | 57 | * BCM2711(1500 MHz) Multi-Core [608 (405/GHz)](https://browser.geekbench.com/v5/cpu/21570099), CoreMark [33073 (22.049/MHz)](https://www.eembc.org/viewer/?benchmark_seq=13192) 58 | --------------------------------------------------------------------------------