├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .gitlab-ci.yml ├── README.md ├── docs ├── Lab1 │ ├── ALU_RegFile │ │ ├── ALU.md │ │ └── RegFile.md │ ├── FSM │ │ └── FSM.md │ └── Lab1.md ├── Lab2 │ └── Lab2.md ├── Lab3 │ ├── Lab3.md │ ├── attachment │ │ ├── divider_tb.v │ │ ├── multiplier_signed_starter.v │ │ └── multiplier_tb.v │ ├── divider.md │ ├── floating_point_adder.md │ ├── multiplier.md │ └── pic │ │ ├── multiplier_signed.png │ │ ├── multiplier_unsigned.png │ │ └── multiplier_v3.png ├── Lab4 │ ├── DataPath_CtrlUnit.md │ ├── Lab4.md │ ├── attachment │ │ ├── ImmGen.vcd │ │ ├── ImmGen_tb.v │ │ ├── ImmGen_tb_gen.py │ │ ├── Lab4_header.vh │ │ ├── SCPU_ctrl_tb.v │ │ ├── riscv-privileged-20211203.pdf │ │ ├── riscv-spec-20191213.pdf │ │ └── test.s │ ├── exception_interruption.md │ ├── instr_extension.md │ └── pic │ │ ├── 6_0.png │ │ ├── ecall_seg.png │ │ ├── ill_seg.png │ │ ├── int_seg.png │ │ ├── mcause.png │ │ ├── mepc.png │ │ ├── mstatus.png │ │ ├── mtval.png │ │ └── mtvec.png ├── Lab5 │ ├── Lab5.md │ ├── pipeline_basic.md │ └── pipeline_hazard.md ├── Other │ ├── Decoder_and_Testbench.md │ ├── RISC_V.md │ ├── Verilog_Simulation.md │ ├── about_git.md │ ├── attachment │ │ └── testbench_gen.py │ └── pic │ │ ├── 5_0.png │ │ ├── image-20220709133941789.png │ │ ├── image-20220709134207573.png │ │ ├── image-20220709134431211.png │ │ ├── image-20220709135134820.png │ │ ├── image-20220709135829566.png │ │ └── pic0.png ├── _css │ └── style.css ├── attachment │ └── 计组实验报告模板.zip ├── index.md └── warmup │ ├── Lab0.md │ ├── Vivado_installation.md │ └── pic │ ├── 00.png │ ├── 01.png │ ├── 02.png │ └── 03.png └── mkdocs.yml /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitlab-ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/.gitlab-ci.yml -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/README.md -------------------------------------------------------------------------------- /docs/Lab1/ALU_RegFile/ALU.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab1/ALU_RegFile/ALU.md -------------------------------------------------------------------------------- /docs/Lab1/ALU_RegFile/RegFile.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab1/ALU_RegFile/RegFile.md -------------------------------------------------------------------------------- /docs/Lab1/FSM/FSM.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab1/FSM/FSM.md -------------------------------------------------------------------------------- /docs/Lab1/Lab1.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab1/Lab1.md -------------------------------------------------------------------------------- /docs/Lab2/Lab2.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab2/Lab2.md -------------------------------------------------------------------------------- /docs/Lab3/Lab3.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab3/Lab3.md -------------------------------------------------------------------------------- /docs/Lab3/attachment/divider_tb.v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab3/attachment/divider_tb.v -------------------------------------------------------------------------------- /docs/Lab3/attachment/multiplier_signed_starter.v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab3/attachment/multiplier_signed_starter.v -------------------------------------------------------------------------------- /docs/Lab3/attachment/multiplier_tb.v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab3/attachment/multiplier_tb.v -------------------------------------------------------------------------------- /docs/Lab3/divider.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab3/divider.md -------------------------------------------------------------------------------- /docs/Lab3/floating_point_adder.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab3/floating_point_adder.md -------------------------------------------------------------------------------- /docs/Lab3/multiplier.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab3/multiplier.md -------------------------------------------------------------------------------- /docs/Lab3/pic/multiplier_signed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab3/pic/multiplier_signed.png -------------------------------------------------------------------------------- /docs/Lab3/pic/multiplier_unsigned.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab3/pic/multiplier_unsigned.png -------------------------------------------------------------------------------- /docs/Lab3/pic/multiplier_v3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab3/pic/multiplier_v3.png -------------------------------------------------------------------------------- /docs/Lab4/DataPath_CtrlUnit.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab4/DataPath_CtrlUnit.md -------------------------------------------------------------------------------- /docs/Lab4/Lab4.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab4/Lab4.md -------------------------------------------------------------------------------- /docs/Lab4/attachment/ImmGen.vcd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab4/attachment/ImmGen.vcd -------------------------------------------------------------------------------- /docs/Lab4/attachment/ImmGen_tb.v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab4/attachment/ImmGen_tb.v -------------------------------------------------------------------------------- /docs/Lab4/attachment/ImmGen_tb_gen.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab4/attachment/ImmGen_tb_gen.py -------------------------------------------------------------------------------- /docs/Lab4/attachment/Lab4_header.vh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab4/attachment/Lab4_header.vh -------------------------------------------------------------------------------- /docs/Lab4/attachment/SCPU_ctrl_tb.v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab4/attachment/SCPU_ctrl_tb.v -------------------------------------------------------------------------------- /docs/Lab4/attachment/riscv-privileged-20211203.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab4/attachment/riscv-privileged-20211203.pdf -------------------------------------------------------------------------------- /docs/Lab4/attachment/riscv-spec-20191213.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab4/attachment/riscv-spec-20191213.pdf -------------------------------------------------------------------------------- /docs/Lab4/attachment/test.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab4/attachment/test.s -------------------------------------------------------------------------------- /docs/Lab4/exception_interruption.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab4/exception_interruption.md -------------------------------------------------------------------------------- /docs/Lab4/instr_extension.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab4/instr_extension.md -------------------------------------------------------------------------------- /docs/Lab4/pic/6_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab4/pic/6_0.png -------------------------------------------------------------------------------- /docs/Lab4/pic/ecall_seg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab4/pic/ecall_seg.png -------------------------------------------------------------------------------- /docs/Lab4/pic/ill_seg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab4/pic/ill_seg.png -------------------------------------------------------------------------------- /docs/Lab4/pic/int_seg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab4/pic/int_seg.png -------------------------------------------------------------------------------- /docs/Lab4/pic/mcause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab4/pic/mcause.png -------------------------------------------------------------------------------- /docs/Lab4/pic/mepc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab4/pic/mepc.png -------------------------------------------------------------------------------- /docs/Lab4/pic/mstatus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab4/pic/mstatus.png -------------------------------------------------------------------------------- /docs/Lab4/pic/mtval.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab4/pic/mtval.png -------------------------------------------------------------------------------- /docs/Lab4/pic/mtvec.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab4/pic/mtvec.png -------------------------------------------------------------------------------- /docs/Lab5/Lab5.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab5/Lab5.md -------------------------------------------------------------------------------- /docs/Lab5/pipeline_basic.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab5/pipeline_basic.md -------------------------------------------------------------------------------- /docs/Lab5/pipeline_hazard.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Lab5/pipeline_hazard.md -------------------------------------------------------------------------------- /docs/Other/Decoder_and_Testbench.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Other/Decoder_and_Testbench.md -------------------------------------------------------------------------------- /docs/Other/RISC_V.md: -------------------------------------------------------------------------------- 1 | # RISC-V 32I 速查 2 | 3 | ![](./pic/5_0.png) 4 | 5 | 需要强调的是: 6 | 7 | * `slt, slti` 是**有符号数**之间的比较。 8 | -------------------------------------------------------------------------------- /docs/Other/Verilog_Simulation.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Other/Verilog_Simulation.md -------------------------------------------------------------------------------- /docs/Other/about_git.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Other/about_git.md -------------------------------------------------------------------------------- /docs/Other/attachment/testbench_gen.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Other/attachment/testbench_gen.py -------------------------------------------------------------------------------- /docs/Other/pic/5_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Other/pic/5_0.png -------------------------------------------------------------------------------- /docs/Other/pic/image-20220709133941789.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Other/pic/image-20220709133941789.png -------------------------------------------------------------------------------- /docs/Other/pic/image-20220709134207573.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Other/pic/image-20220709134207573.png -------------------------------------------------------------------------------- /docs/Other/pic/image-20220709134431211.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Other/pic/image-20220709134431211.png -------------------------------------------------------------------------------- /docs/Other/pic/image-20220709135134820.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Other/pic/image-20220709135134820.png -------------------------------------------------------------------------------- /docs/Other/pic/image-20220709135829566.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Other/pic/image-20220709135829566.png -------------------------------------------------------------------------------- /docs/Other/pic/pic0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/Other/pic/pic0.png -------------------------------------------------------------------------------- /docs/_css/style.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/_css/style.css -------------------------------------------------------------------------------- /docs/attachment/计组实验报告模板.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/attachment/计组实验报告模板.zip -------------------------------------------------------------------------------- /docs/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/index.md -------------------------------------------------------------------------------- /docs/warmup/Lab0.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/warmup/Lab0.md -------------------------------------------------------------------------------- /docs/warmup/Vivado_installation.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/warmup/Vivado_installation.md -------------------------------------------------------------------------------- /docs/warmup/pic/00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/warmup/pic/00.png -------------------------------------------------------------------------------- /docs/warmup/pic/01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/warmup/pic/01.png -------------------------------------------------------------------------------- /docs/warmup/pic/02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/warmup/pic/02.png -------------------------------------------------------------------------------- /docs/warmup/pic/03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/docs/warmup/pic/03.png -------------------------------------------------------------------------------- /mkdocs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Guahao31/2023_CO/HEAD/mkdocs.yml --------------------------------------------------------------------------------