The ultimate goal of this IDE is to provide a visualization platform for CPU design, code debugging, and validation of peripheral circuits. Firstly, design the CPU using the visualization CPU design tool provided by the IDE (architecture visualization, underlying code needs to be implemented through Verilog). After completing the CPU design, debugging tools in the IDE can be used for debugging. The main method is to compile and load code written in C language onto the designed CPU for testing, verifying whether the basic functions of the CPU are normal. After verification, the IDE can also generate a module from the designed CPU, which facilitates the subsequent construction of peripheral circuits for testing. However, due to limited time and capability, only CPU design code written in Verilog has been debugged so far.
[TOC]
List the main features of the IDE:
- Integrated debugger.
-
Required software
-
Qt
-
Install Qt5 components
sudo apt-get install build-essential
-
Install Qt development tools
sudo apt-get install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools
-
Install qtcreator (non essential)
sudo apt-get install qtcreator
-
Install Qt
sudo apt-get install qt5*
-
-
Verilator
sudo apt-get install verilator
Other versions can be found on the Veriltor official website
-
riscv64-linux-gnu-gcc
sudo apt install gcc-riscv64-linux-gnu
-
Cmake
sudo apt-get install cmake
-
-
Clone the repository:
git@github.com:1932287243/NPC_IDE.git
-
Navigate to the project directory:
cd IDE
-
Build the project:
mkdir bin mkdir build cd build cmake .. make
cd bin
./IDE -l your_logfile.txt --d your_NEMU_REF_SO -f your_elf_file_elf