Compare commits
18 Commits
main
...
index-reba
Author | SHA1 | Date | |
---|---|---|---|
343eb52856 | |||
74bbf2bfcf | |||
450c879742 | |||
60680bacad | |||
d8774da206 | |||
62a53a4edd | |||
69d34472a8 | |||
2558274afb | |||
58350f50a1 | |||
1a31c909de | |||
10b049a5e6 | |||
35ec32ae70 | |||
89e89b8280 | |||
adbcbf7e43 | |||
3a6167e283 | |||
6437b5a047 | |||
db0235be8d | |||
85c3705ded |
43
.gitea/workflows/label.yml
Normal file
43
.gitea/workflows/label.yml
Normal file
@ -0,0 +1,43 @@
|
||||
name: 自动生成 label
|
||||
|
||||
# main 分支推送
|
||||
on:
|
||||
[push]
|
||||
# push:
|
||||
# branches:
|
||||
# - main
|
||||
|
||||
jobs:
|
||||
Generate-label:
|
||||
runs-on: node-21
|
||||
steps:
|
||||
- name: 获取仓库
|
||||
uses: http://shenjack.top:5100/gitea-server/checkout@v4
|
||||
with:
|
||||
path: main
|
||||
|
||||
# - name: ensure pip
|
||||
# uses: http://shenjack.top:5100/gitea-server/python-packs@1cd32b1235ba23d51524b6870c0735f63efcffc2
|
||||
|
||||
- name: ensurepip
|
||||
uses: http://shenjack.top:5100/gitea-server/checkout@v4
|
||||
with:
|
||||
repository: gitea-server/python-packs
|
||||
with:
|
||||
path: python-packs
|
||||
|
||||
- name: 安装依赖
|
||||
run: |
|
||||
ls -la .
|
||||
ls -la ..
|
||||
ls -la ../..
|
||||
python3 -m ../python-packs/ensurepip
|
||||
python3 -m pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
python3 -m pip install -U pip
|
||||
python3 -m pip install mistune
|
||||
|
||||
- name: 生成 label
|
||||
run: |
|
||||
python3 generate_label.py
|
||||
|
||||
# https://gitea.com/actions/gitea-release-action
|
BIN
modules/10/10.litematic
(Stored with Git LFS)
Normal file
BIN
modules/10/10.litematic
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
modules/10/10.schem
(Stored with Git LFS)
Normal file
BIN
modules/10/10.schem
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
modules/10/10_bottom.nbt
(Stored with Git LFS)
Normal file
BIN
modules/10/10_bottom.nbt
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
modules/10/10_top.nbt
(Stored with Git LFS)
Normal file
BIN
modules/10/10_top.nbt
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
modules/11/11.litematic
(Stored with Git LFS)
Normal file
BIN
modules/11/11.litematic
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
modules/11/11.schem
(Stored with Git LFS)
Normal file
BIN
modules/11/11.schem
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
modules/11/11_bottom.nbt
(Stored with Git LFS)
Normal file
BIN
modules/11/11_bottom.nbt
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
modules/11/11_top.nbt
(Stored with Git LFS)
Normal file
BIN
modules/11/11_top.nbt
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
modules/12/12.litematic
(Stored with Git LFS)
Normal file
BIN
modules/12/12.litematic
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
modules/12/12.nbt
(Stored with Git LFS)
Normal file
BIN
modules/12/12.nbt
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
modules/12/12.schem
(Stored with Git LFS)
Normal file
BIN
modules/12/12.schem
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
modules/13/13.litematic
(Stored with Git LFS)
Normal file
BIN
modules/13/13.litematic
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
modules/13/13.schem
(Stored with Git LFS)
Normal file
BIN
modules/13/13.schem
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
modules/13/13_bottom.nbt
(Stored with Git LFS)
Normal file
BIN
modules/13/13_bottom.nbt
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
modules/13/13_top.nbt
(Stored with Git LFS)
Normal file
BIN
modules/13/13_top.nbt
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
modules/15/15.litematic
(Stored with Git LFS)
Normal file
BIN
modules/15/15.litematic
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
modules/15/15.nbt
(Stored with Git LFS)
Normal file
BIN
modules/15/15.nbt
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
modules/15/15.schem
(Stored with Git LFS)
Normal file
BIN
modules/15/15.schem
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
modules/8/8.litematic
(Stored with Git LFS)
Normal file
BIN
modules/8/8.litematic
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
modules/8/8.schem
(Stored with Git LFS)
Normal file
BIN
modules/8/8.schem
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
modules/8/8_bottom.nbt
(Stored with Git LFS)
Normal file
BIN
modules/8/8_bottom.nbt
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
modules/8/8_top.nbt
(Stored with Git LFS)
Normal file
BIN
modules/8/8_top.nbt
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -23,15 +23,15 @@
|
||||
|
||||
## 标签
|
||||
|
||||
- 小型模块
|
||||
- 运算单元
|
||||
- 加/减法器
|
||||
- 二级模块
|
||||
- java版
|
||||
- 2t流水
|
||||
- 无容器
|
||||
- 静音
|
||||
- 传统红石
|
||||
- `小型模块`
|
||||
- `运算单元`
|
||||
- `加/减法器`
|
||||
- `二级模块`
|
||||
- `java版`
|
||||
- `2t流水`
|
||||
- `无容器`
|
||||
- `静音`
|
||||
- `传统红石`
|
||||
|
||||
## 特性表
|
||||
|
@ -1,51 +0,0 @@
|
||||
# 32位 封闭进位加法器
|
||||
|
||||
## 基本描述
|
||||
|
||||
计算两组32位整数的和。输入输出并不完全同步,每8位为一组(组间具有2rt进位延迟)。同步输入不影响最终结果(但会带来计算毛刺)。总延迟为10rt。含火把。体积小,速度快。建议用于无2rt流水线电路
|
||||
|
||||
## 原视频链接:[点击传送](https://www.bilibili.com/video/BV1Ni4y1M7Qj)
|
||||
|
||||
## 元件信息
|
||||
|
||||
- 适用版本
|
||||
- Java版 1.6+
|
||||
- 作者
|
||||
- Fredbill
|
||||
- 存档位置
|
||||
- `32 4 32`
|
||||
- 电路类型
|
||||
- 算术电路
|
||||
- 电路大小
|
||||
- `6 × 67 × 9`
|
||||
- 总延迟
|
||||
- `4 + 6 = 10`
|
||||
|
||||
### 标签
|
||||
|
||||
- `算术运算模块`
|
||||
- `加/减法器`
|
||||
- `二级模块`
|
||||
- `静音`
|
||||
- `传统红石`
|
||||
|
||||
## 模块参数列表
|
||||
|
||||
| 端口列表 | 位宽 | 位置 | 延迟 | 注释 |
|
||||
| -------- | --- | ----- | -------- | ---- |
|
||||
| 输入数据A | 32 | 1 3 1 | 0+2[N mod 8] | 加数A |
|
||||
| 输入数据B | 32 | 4 3 1 | 0+2[N mod 8] | 加数B |
|
||||
| 输出数据 | 32 | 5 2 9 | 4+2[N mod 8] | 和 |
|
||||
| 进位输入 | 1 | 3 2 6 | 0 | 低位进位 |
|
||||
| 标志位 | 1 | 5 65 9 | 11 | 溢出 |
|
||||
|
||||
## 模块指标列表
|
||||
|
||||
| 指标项目 | 参数 | 指标项目 | 参数 |
|
||||
| ------------------ | --- | ---------------- | --- |
|
||||
| 火把 | 有 | 2rt流水线 | 不支持 |
|
||||
| 活塞 | 无 | 红石粉 | 有 |
|
||||
| 侦测器 | 无 | 容器 | 无 |
|
||||
| 应用漏斗、投掷器 | 无 | 墙电、水电、光电 | 无 | | |
|
||||
|
||||
模块分支:封闭进位加法器
|
74
modules/CCA/CCA-vertial-20gt-32bit/readme.md
Normal file
74
modules/CCA/CCA-vertial-20gt-32bit/readme.md
Normal file
@ -0,0 +1,74 @@
|
||||
---
|
||||
```toml
|
||||
tags = [
|
||||
"小型模块",
|
||||
"算术运算模块",
|
||||
"加/减法器",
|
||||
"二级模块",
|
||||
"静音",
|
||||
"传统红石",
|
||||
"无容器",
|
||||
"Java版"
|
||||
]
|
||||
authors = ["Fredbill"]
|
||||
title = "CCA-vertial-20gt-32bit"
|
||||
description = "竖式 32位 20gt 加法器"
|
||||
[version]
|
||||
java = "1.16+"
|
||||
```
|
||||
---
|
||||
|
||||
# 32位封闭进位加法器
|
||||
|
||||
## 基本描述
|
||||
|
||||
计算两组32位整数的和。输入输出并不完全同步,每8位为一组(组间具有2rt进位延迟)。同步输入不影响最终结果(但会带来计算毛刺)。总延迟为10rt。含火把。体积小,速度快。建议用于无2rt流水线电路
|
||||
|
||||
## 原视频链接:[点击传送](https://www.bilibili.com/video/BV1Ni4y1M7Qj)
|
||||
|
||||
## 元件信息
|
||||
|
||||
- 适用版本
|
||||
- Java版 1.6+
|
||||
- 作者
|
||||
- Fredbill
|
||||
- 存档位置
|
||||
- `32 4 32`
|
||||
- 电路类型
|
||||
- 算术电路
|
||||
- 电路大小
|
||||
- `6 × 67 × 9`
|
||||
- 总延迟
|
||||
- `4 + 6 = 10`
|
||||
|
||||
### 标签
|
||||
|
||||
- `小型模块`
|
||||
- `算术运算模块`
|
||||
- `加/减法器`
|
||||
- `二级模块`
|
||||
- `静音`
|
||||
- `传统红石`
|
||||
- `无容器`
|
||||
- `Java版`
|
||||
|
||||
## 模块参数列表
|
||||
|
||||
| 端口列表 | 位宽 | 位置 | 延迟 | 注释 |
|
||||
| --------- | ---- | ------ | ------------ | -------- |
|
||||
| 输入数据A | 32 | 1 3 1 | 0+2[N mod 8] | 加数A |
|
||||
| 输入数据B | 32 | 4 3 1 | 0+2[N mod 8] | 加数B |
|
||||
| 输出数据 | 32 | 5 2 9 | 4+2[N mod 8] | 和 |
|
||||
| 进位输入 | 1 | 3 2 6 | 0 | 低位进位 |
|
||||
| 标志位 | 1 | 5 65 9 | 11 | 溢出 |
|
||||
|
||||
## 模块指标列表
|
||||
|
||||
| 指标项目 | 参数 | 指标项目 | 参数 |
|
||||
| ---------------- | ---- | ---------------- | ------ |
|
||||
| 火把 | 有 | 2rt流水线 | 不支持 |
|
||||
| 活塞 | 无 | 红石粉 | 有 |
|
||||
| 侦测器 | 无 | 容器 | 无 |
|
||||
| 应用漏斗、投掷器 | 无 | 墙电、水电、光电 | 无 |
|
||||
|
||||
模块分支:封闭进位加法器
|
BIN
modules/CCA/CCA-vertical-8bit/4.litematic
(Stored with Git LFS)
Normal file
BIN
modules/CCA/CCA-vertical-8bit/4.litematic
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
modules/CCA/CCA-vertical-8bit/4.nbt
(Stored with Git LFS)
Normal file
BIN
modules/CCA/CCA-vertical-8bit/4.nbt
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
modules/CCA/CCA-vertical-8bit/4.schem
(Stored with Git LFS)
Normal file
BIN
modules/CCA/CCA-vertical-8bit/4.schem
(Stored with Git LFS)
Normal file
Binary file not shown.
0
modules/CCA/CCA-vertical-8bit/readme.md
Normal file
0
modules/CCA/CCA-vertical-8bit/readme.md
Normal file
@ -6,13 +6,14 @@
|
||||
电路接受最少强度5的输入,且两侧输入强度差距不超过1。之后所有含此类异或门结构的电路均是如此。
|
||||
|
||||
## 标签
|
||||
- 小型模块
|
||||
- 运算单元
|
||||
- 加/减法器
|
||||
- 二级模块
|
||||
- Java版
|
||||
- 静音
|
||||
- 传统红石
|
||||
- `小型模块`
|
||||
- `运算单元`
|
||||
- `加/减法器`
|
||||
- `二级模块`
|
||||
- `Java版`
|
||||
- `静音`
|
||||
- `传统红石`
|
||||
- `无容器`
|
||||
|
||||
## 元件信息
|
||||
|
BIN
modules/CSA/CSA-vertical-4gt-32bit/CSA-vertical-4gt-32bit-bottom.nbt
(Stored with Git LFS)
Normal file
BIN
modules/CSA/CSA-vertical-4gt-32bit/CSA-vertical-4gt-32bit-bottom.nbt
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
modules/CSA/CSA-vertical-4gt-32bit/CSA-vertical-4gt-32bit-top.nbt
(Stored with Git LFS)
Normal file
BIN
modules/CSA/CSA-vertical-4gt-32bit/CSA-vertical-4gt-32bit-top.nbt
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
modules/CSA/CSA-vertical-4gt-32bit/CSA-vertical-4gt-32bit.litematic
(Stored with Git LFS)
Normal file
BIN
modules/CSA/CSA-vertical-4gt-32bit/CSA-vertical-4gt-32bit.litematic
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
modules/CSA/CSA-vertical-4gt-32bit/CSA-vertical-4gt-32bit.schem
(Stored with Git LFS)
Normal file
BIN
modules/CSA/CSA-vertical-4gt-32bit/CSA-vertical-4gt-32bit.schem
(Stored with Git LFS)
Normal file
Binary file not shown.
7
modules/CSA/CSA-vertical-4gt-32bit/readme.md
Normal file
7
modules/CSA/CSA-vertical-4gt-32bit/readme.md
Normal file
@ -0,0 +1,7 @@
|
||||
# CSA
|
||||
|
||||
```text
|
||||
这大概是借助墙电作外围控制的2rtCSA乘,归类:乘法器,串行CSA乘。
|
||||
```
|
||||
|
||||
http://shenjack.top:5100/ARS/ARS-docs/issues/11
|
BIN
modules/DIV/DIV-8gt-flow/9.litematic
(Stored with Git LFS)
Normal file
BIN
modules/DIV/DIV-8gt-flow/9.litematic
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
modules/DIV/DIV-8gt-flow/9.nbt
(Stored with Git LFS)
Normal file
BIN
modules/DIV/DIV-8gt-flow/9.nbt
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
modules/DIV/DIV-8gt-flow/9.schem
(Stored with Git LFS)
Normal file
BIN
modules/DIV/DIV-8gt-flow/9.schem
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
modules/alu.schem
(Stored with Git LFS)
Normal file
BIN
modules/alu.schem
(Stored with Git LFS)
Normal file
Binary file not shown.
28
scripts/parse-label.py
Normal file
28
scripts/parse-label.py
Normal file
@ -0,0 +1,28 @@
|
||||
|
||||
from pathlib import Path
|
||||
from pprint import pprint
|
||||
|
||||
import mistune
|
||||
|
||||
ast_markdown = mistune.create_markdown(renderer='ast')
|
||||
|
||||
def read_files(module_path: Path):
|
||||
with open(module_path, 'r', encoding='utf-8') as f:
|
||||
file = f.read()
|
||||
|
||||
parsed = ast_markdown(file)
|
||||
return parsed
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
module_path = Path('modules')
|
||||
|
||||
# walk through the modules
|
||||
# for every markdown file
|
||||
# parse the label
|
||||
|
||||
for md_file in module_path.rglob('*.md'):
|
||||
print(md_file)
|
||||
parsed = read_files(md_file)
|
||||
pprint(parsed)
|
||||
|
@ -1,10 +1,10 @@
|
||||
# 标签索引
|
||||
![标签索引logo](../assets/image/tag_index.png)
|
||||
### 所有可用标签:
|
||||
##s 所有可用标签:
|
||||
- [小型模块](./tags/small_module.md) : 方块数量小于10000的模块
|
||||
- [中型模块](./tags/middle_size_module.md) : 方块数量在10001-100000之间的模块。
|
||||
- [大型模块](./tags/large_module.md) : 方块数量>100000的模块。
|
||||
- [算数单元](./tags/au.md) : 具有运算功能的模块。
|
||||
- [算术单元](./tags/au.md) : 具有运算功能的模块。
|
||||
- [加/减法器](./tags/adder_or_subtractor.md) : 具有加/减法功能的模块。
|
||||
- [ALU (算逻单元) ](./tags/alu.md) : 算术逻辑单元
|
||||
- [显示模块](./tags/display_module.md) : 具备显示功能的模块。
|
||||
@ -21,6 +21,6 @@
|
||||
- [时序严格](./tags/strict_timing.md) : 对于电路时序要求严格的模块。
|
||||
- [无容器](./tags/no_container.md) : 没有容器的模块。
|
||||
- [静音](./tags/silent.md) : 不会发出响声的模块。
|
||||
- [单片](./tags/single-chip.md) : 1高或1宽的模块。
|
||||
- [单片](./tags/single_chip.md) : 1高或1宽的模块。
|
||||
- [传统红石](./tags/traditional_redstone.md) : 仅使用红石方块特性,不使用墙电,水电,树电,脚电等其他特性的模块。
|
||||
|
||||
|
@ -2,6 +2,6 @@
|
||||
|
||||
### 在此标签下的模块有:
|
||||
|
||||
- [封闭进位加法器 (CCA, Carry Cancel Adder) ](../../modules/CCA-vertical-8gt/)
|
||||
- [借位封闭减法器 (BCS, Borrow Carry Subtractor) ](../../modules/BCS-vertical-10gt-2t/)
|
||||
- [32位封闭进位加法器](../../modules/CCA-vertial-20gt-32bit/)
|
||||
- [封闭进位加法器 (CCA, Carry Cancel Adder) ](../../modules/1_CCA-vertical-8gt/)
|
||||
- [借位封闭减法器 (BCS, Borrow Carry Subtractor) ](../../2_modules/BCS-vertical-10gt-2t/)
|
||||
- [32位封闭进位加法器](../../modules/3_CCA-vertial-20gt-32bit/)
|
@ -2,6 +2,6 @@
|
||||
|
||||
### 在此标签下的模块有:
|
||||
|
||||
- [封闭进位加法器 (CCA, Carry Cancel Adder) ](../../modules/1-CCA-vertical-8gt/)
|
||||
- [借位封闭减法器 (BCS, Borrow Carry Subtractor) ](../../modules/2-BCS-vertical-10gt-2t/)
|
||||
- [32位封闭进位加法器](../../modules/3-CCA-vertial-20gt-32bit/)
|
||||
- [封闭进位加法器 (CCA, Carry Cancel Adder) ](../../modules/1_CCA-vertical-8gt/)
|
||||
- [借位封闭减法器 (BCS, Borrow Carry Subtractor) ](../../modules/2_BCS-vertical-10gt-2t/)
|
||||
- [32位封闭进位加法器](../../modules/3_CCA-vertial-20gt-32bit/)
|
@ -2,6 +2,6 @@
|
||||
|
||||
### 在此标签下的模块有:
|
||||
|
||||
- [封闭进位加法器 (CCA, Carry Cancel Adder) ](../../modules/CCA-vertical-8gt/)
|
||||
- [借位封闭减法器 (BCS, Borrow Carry Subtractor) ](../../modules/BCS-vertical-10gt-2t/)
|
||||
- [32位封闭进位加法器](../../modules/CCA-vertial-20gt-32bit/)
|
||||
- [封闭进位加法器 (CCA, Carry Cancel Adder) ](../../modules/1_CCA-vertical-8gt/)
|
||||
- [借位封闭减法器 (BCS, Borrow Carry Subtractor) ](../../modules/2_BCS-vertical-10gt-2t/)
|
||||
- [32位封闭进位加法器](../../modules/3_CCA-vertial-20gt-32bit/)
|
||||
|
@ -3,3 +3,5 @@
|
||||
### 在此标签下的模块有:
|
||||
|
||||
- [封闭进位加法器 (CCA, Carry Cancel Adder) ](../../modules/CCA-vertical-8gt)
|
||||
- [借位封闭减法器 (BCS, Borrow Carry Subtractor) ](../../modules/2_BCS-vertical-10gt-2t/)
|
||||
[32位 封闭进位加法器](../../modules/3_CCA-vertial-20gt-32bit)
|
Loading…
Reference in New Issue
Block a user