mirror of
https://github.com/handsomezhuzhu/2025-yatcpu.git
synced 2026-02-20 20:10:14 +00:00
add mkdocs
This commit is contained in:
1
docs/.gitignore
vendored
Normal file
1
docs/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
site
|
||||
BIN
docs/docs/asset/devcontainer1.png
Normal file
BIN
docs/docs/asset/devcontainer1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 389 KiB |
BIN
docs/docs/asset/devcontainer2.png
Normal file
BIN
docs/docs/asset/devcontainer2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 133 KiB |
BIN
docs/docs/asset/devcontainer3.png
Normal file
BIN
docs/docs/asset/devcontainer3.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 155 KiB |
BIN
docs/docs/asset/z710.jpg
Normal file
BIN
docs/docs/asset/z710.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 MiB |
@@ -39,6 +39,6 @@ cd vivado/z710
|
||||
|
||||
**如果烧板无误,你会看到黄灯亮起**
|
||||
|
||||

|
||||

|
||||
|
||||
后续将上述 program_device.tcl 换成 generate_and_program.tcl 可以将生成比特流和烧板在一个脚本中完成。
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
在 VSCode 的扩展处搜索 Dev Containers,下载安装
|
||||
|
||||

|
||||

|
||||
|
||||
**使用 Dev Containers 打开项目**
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
在上方的运行选项中选择在容器中重新打开,这个命令会让 Dev container 自动根据 <code>devcontainer.json</code> 里的配置信息来创建 Docker 环境
|
||||
|
||||

|
||||

|
||||
|
||||
如果你是第一次在容器中打开,你可能需要十几分钟的时间等待容器配置完毕,如果在配置过程中发生异常,请检查你的网络情况后再次运行
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
新建终端输入 <code>sbt test</code>,期望你有如下输出
|
||||
|
||||

|
||||

|
||||
|
||||
```bash
|
||||
[info] All tests passed.
|
||||
30
docs/docs/index.md
Normal file
30
docs/docs/index.md
Normal file
@@ -0,0 +1,30 @@
|
||||
本仓库由 [Tokisakix](https://github.com/Tokisakix)、[PurplePower](https://github.com/PurplePower)、[Han Huang](https://github.com/HHTheBest) 在 [2022-fall-yatcpu-repo](https://github.com/hrpccs/2022-fall-yatcpu-repo) 的基础上结合 2023 计组教学实情整理而来,有较多原创内容
|
||||
|
||||
(PS: 能求个 star⭐ 吗 QAQ ~)
|
||||
|
||||
## 为什么创建本仓库?
|
||||
|
||||
1. 开发环境配置困难,为配置开发环境需要付出很多精力,开发效率低
|
||||
2. 学生在运行 <code>build.bat</code> 或 <code>build.sh</code> 时经常遇到问题
|
||||
3. 原教学仓库 [2022-fall-yatcpu-repo](https://github.com/hrpccs/2022-fall-yatcpu-repo) 并不支持 ZYBO-Z710 开发板的烧录
|
||||
4. ZYBO-Z710 烧板流程复杂、为支持烧板脚本的正常运行需要学生手动根据助教增改很多文件,开发效率低
|
||||
|
||||
## 本仓库具有的优势
|
||||
|
||||
- 提供基于 Vscode + Dev Container 一键环境配置工具和配套文档
|
||||
- 已提前用 cmake 编译好测试文件,无须再运行 <code>build.bat</code> 或 <code>build.sh</code>
|
||||
- 完全保留了原教学仓库的代码段填空设置和项目架构,代码迁移便利
|
||||
- 支持 Basys3、Pynq、Verilator、ZYBO-Z710 四款开发板的一键烧录,学生可以专心把精力集中在 CPU 的编写
|
||||
|
||||
## 如何使用本整合仓库?
|
||||
|
||||
下列内容主要讲述如何使用本仓库来完成开发环境的一键配置和一键烧板
|
||||
|
||||
1. [如何使用一键完成环境配置](env.md)
|
||||
2. [如何使用一键烧板脚本](board.md)
|
||||
|
||||
## 外部参考链接
|
||||
|
||||
- [YatCPU 文档地址](https://yatcpu.sysu.tech)
|
||||
- [YatCPU 的 Dev Container 环境配置](http://tokisakix.cn/2023/11/14/%5BDocker%5D%20YatCPU%20%E7%9A%84%20Dev%20container%20%E7%8E%AF%E5%A2%83%E9%85%8D%E7%BD%AE/)
|
||||
- [测试 Tokisakix 的烧板文件](https://blog.skyw.cc/archives/258.html)
|
||||
11
docs/mkdocs.yml
Normal file
11
docs/mkdocs.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
site_name: 2023-Yatcpu-Fall-Docs
|
||||
site_author: Tokisakix
|
||||
copyright: Copyright © 2023 Tokisakix
|
||||
|
||||
nav:
|
||||
- 主页: index.md
|
||||
- 如何一键环境配置: env.md
|
||||
- 如何一键烧板: board.md
|
||||
|
||||
theme:
|
||||
name: material
|
||||
5
docs/requirements.txt
Normal file
5
docs/requirements.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
mkdocs
|
||||
mkdocs-material
|
||||
mkdocs-material-extensions
|
||||
mkdocs-git-revision-date-localized-plugin==0.9.2
|
||||
mkdocs-git-authors-plugin==0.3.3
|
||||
Reference in New Issue
Block a user