GNU General Public License v3.0

项目介绍

zslwyuan/Basic-SIMD-Processor-Verilog-Tutorial 是一个托管在 GitHub 上的开源项目,主要使用 Verilog 编写,采用 GNU General Public License v3.0 许可证,目前获得 161 个 Star、38 次 Fork。

仓库全名
zslwyuan/Basic-SIMD-Processor-Verilog-Tutorial
开源许可证
GNU General Public License v3.0
Star 数
161
Fork 数
38
未关闭 Issue
3

README 摘要

Basic-SIMD-Processor-Verilog-Tutorial Implementation of a simple SIMD processor in Verilog, core of which is a 16-bit SIMD ALU. 2's compliment calculations are implemented in this ALU. The ALU operation will take two clocks. The first clock cycle will be used to load values into the registers. The second will be for performing the operations. 6-bit opcodes are used to select the functions. The instruction code,…

完整内容见 GitHub 原始 README 或本页 。

常见问题

Basic-SIMD-Processor-Verilog-Tutorial 用什么语言开发?

主要使用 Verilog 编写,采用 GNU General Public License v3.0 许可证,目前有 161 个 Star。

Basic-SIMD-Processor-Verilog-Tutorial 可以免费商用吗?

仓库标注的许可证为 GNU General Public License v3.0,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 Basic-SIMD-Processor-Verilog-Tutorial 的源码?

可以直接克隆仓库:git clone https://github.com/zslwyuan/Basic-SIMD-Processor-Verilog-Tutorial.git,默认分支为 master;安装与运行步骤见仓库 README。

Basic-SIMD-Processor-Verilog-Tutorial 最近还在维护吗?

仓库最近一次更新为 2022年7月17日,当前有 3 个未关闭 Issue;Star 数为 161,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

Implementation of a simple SIMD processor in Verilog, core of which is a 16-bit SIMD ALU. 2's compliment calculations are implemented in this ALU. The ALU operation will take two clocks. The first clock cycle will be used to load values into the registers. The second will be for performing the operations. 6-bit opcodes are used to select the functions. The instruction code, including the opcode, will be 18-bit.

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

语言占比

Verilog

贡献者

README

Basic-SIMD-Processor-Verilog-Tutorial

Implementation of a simple SIMD processor in Verilog, core of which is a 16-bit SIMD ALU. 2’s compliment calculations are implemented in this ALU. The ALU operation will take two clocks. The first clock cycle will be used to load values into the registers. The second will be for performing the operations. 6-bit opcodes are used to select the functions. The instruction code, including the opcode, will be 18-bit.

The ALU will be embedded into a simple processor based on 5-stage, delay of each stage will be 1 cycle, meeting the delay of ALU, as shown in the figure below. The 5 typical stages are IF, ID, EX, MEM and WB, without pipeline. In the stage IF, a 10-bit address will be sent to an instruction Block-RAM (BRAM) to fetch 18-bit instruction. In the stage ID, the instruction will be decoded and some of control registers will be set to control the following stage. In the stage EX, ALU will process data in registers or implement some control commands, e.g. jump. In the stage MEM, if the instruction is “store” or “load”, data would be read from/ written to data BRAM, based on instruction and address. Finally, in the stage WB, data will be written back to register. The pins of clock, reset, address, data and BRAM enable will be exposed on the interface of processor. The architecture of processor is shown in the figure above.

The experiment based on Cadence are shown below and more details can be found in the report. The source code is well-commented and user can easily understanding how it work. This work was implemented as the final project of Digital VLSI System Design and Design Automation, HKUST. Thanks Prof. Tsui and TA Zhu a lot for their patience and time!

评论

暂无评论