English | 中文
This project aims to perform unit testing (Unit Test, UT) on the Kunminghu architecture of the XiangShan Processor through open-source crowdsourcing. Python is chosen as the primary verification language for this project. By participating in the verification, you will learn the following:
- Circuit Characteristics: Observe the characteristics of circuits from a software perspective and gain an in-depth understanding of circuit design principles.
- High-Performance Processor Design: Learn the Chisel hardware description language, study related code and papers, and master the latest architectural design concepts.
- Chip Verification Process: Familiarize yourself with specification documents (Spec documents), learn how to perform UT verification, and evaluate the rationality of verification results.
- Python Verification: Master advanced programming patterns such as asynchronous programming and callbacks, and use Python for chip verification.
- Linux Environment: Learn basic Linux commands and set up the verification environment.
This project welcomes contributions in various aspects and will provide rewards (such as bonuses, certificates, internship opportunities, etc.) within a certain period. Specific types of contributions include:
- # 1: Write verification documents, including specification documents, instruction documents, functional description documents, etc., for the Design Under Test (DUT).
- # 2: Develop test cases, including test code and comments for each functional point, as well as related instruction documents.
- # 3: Discover and report bugs in the XiangShan Processor, and provide cause analysis and repair suggestions.
- # 4: Other contributions, such as adding new features to the tools provided by this project.
UnityChip project website: https://open-verify.cc
We look forward to your participation!
Refer to the Environment Preparation to set up the basic environment, and then run the following commands:
git clone git@github.com:XS-MLVP/UnityChipForXiangShan.git
cd UnityChipForXiangShan
pip3 install -r requirements.txt
make all
The above commands will automatically perform the following operations:
- Download the RTL code;
- Compile all available modules to be verified;
- Search for all Python files starting with
test_
in theut_*
directories and run the test cases starting withtest_
in them; - Generate test reports (the test reports are located in the
out
directory); - Update statistical data.
*By default, tests that are too time-consuming will be skipped. You can run all test cases by setting CFG=configs/noskip.yaml
, eg:
make all CFG=configs/noskip.yaml
Follow the Documentation Deployment Instructions to set up the hugo
environment, and then execute:
cd UnityChipForXiangShan
make doc
After executing the above commands, you will see output similar to:
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at //localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
At this point, you can access the provided address (http://127.0.0.1:1313) through your browser.
For more documentation, please visit: https://open-verify.cc/UnityChipForXiangShan